Comtrol eCos User Manual
Page 368
Advertising

Chapter 15. User API
data retrieved is placed in
*len
. The appropriate key values differ for each driver and are all listed in the file
<
cyg/io/config_keys.h
>
.
// Change the configuration of a device
Cyg_ErrNo
cyg_io_set_config
(
cyg_io_handle_t handle,
cyg_uint32 key ,
const void *buf,
cyg_uint32 *len )
This function is used to manipulate or change the run-time configuration of a device. The type of information is
specified by the
key
. The data will be obtained from the given buffer. The value of
*len
should contain the
amount of data provided, which must match the size appropriate to the selected key. The appropriate key values
differ for each driver and are all listed in the file
<
cyg/io/config_keys.h
>
.
264
Advertising