Go to the source code of this file.
Functions | |
int | knet_i2c_init (knet_bus_t *bus, int argc, char *argv[]) |
int knet_i2c_init | ( | knet_bus_t * | bus, | |
int | argc, | |||
char * | argv[] | |||
) |
This function initializes the I²C bus.
bus | KNet Bus Handle | |
argc | number of elements in argv | |
argv | string used as initialization parameters |
Definition at line 80 of file knet_i2c.c.
References knet_bus_s::bus_info, knet_bus_s::close, device, knet_bus_s::exit, i2c_close(), i2c_open(), i2c_scan(), KB_ALLOC, kb_error(), KB_ERROR_OPENBUS, KB_ERROR_SCANBUS, kb_free, knet_i2c_exit(), knet_i2c_open(), knet_i2c_read(), knet_i2c_scan_callback(), knet_i2c_transfer(), knet_i2c_write(), knet_bus_s::open, knet_bus_s::read, knet_bus_s::transfer, and knet_bus_s::write.
Referenced by knet_init().