| Updated: October 28, 2024 |
The driver_info function returns information about the driver. The prototype for this function is:
int driver_info(
void *hdl,
i2c_driver_info_t *info );
The arguments are:
typedef struct {
uint32_t speed_mode;
uint32_t addr_mode;
uint32_t reserved[2];
} i2c_driver_info_t;
For the speed_mode member, OR together the appropriate values from the following list to indicate the supported speeds:
Set the addr_mode to one of the following to indicate the supported address format:
The function must return: