DCMD_I2C_DRIVER_INFO
QNX SDP8.0Customizing a BSPConfigurationDeveloper
#include <hw/i2c.h>
#define DCMD_I2C_DRIVER_INFO (__DIOF (_DCMD_I2C, 8, i2c_driver_info_t))
The arguments to devctl() are:
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_I2C_DRIVER_INFO |
dev_data_ptr | A pointer to a i2c_driver_info_t |
n_bytes | sizeof(i2c_driver_info_t) |
dev_info_ptr | NULL |
The DCMD_I2C_DRIVER_INFO command returns information about the hardware library.
- Input
- None.
- Output
- An i2c_driver_info_t structure that contains driver information; see the description of the driver_info function, earlier in this technote.
If an error occurs, the command returns:
- EIO
- The driver query failed.
Page updated: