#include <hw/i2c.h> #define DCMD_I2C_BUS_RESET __DION (_DCMD_I2C, 12)
The arguments to devctl() are:
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_I2C_BUS_RESET |
dev_data_ptr | NULL |
n_bytes | 0 |
dev_info_ptr | NULL |
The DCMD_I2C_BUS_RESET command resets the bus.
If an error occurs, the command returns: