I2C bus control.
More...
#include <i2c.h>
โ destroy
void(* i2c_bus::destroy) (i2c_bus *bus) |
โ set_clock
int(* i2c_bus::set_clock) (i2c_bus *bus, unsigned long clock) |
Sets the bus clock.
- Parameters
-
[in] | bus | The bus control. |
[in] | clock | The desired bus clock in Hz. |
- Return values
-
0 | Successful operation. |
negative | Negative error number in case of an error. |
โ transfer
int(* i2c_bus::transfer) (i2c_bus *bus, i2c_msg *msgs, uint32_t msg_count) |
Transfers I2C messages.
- Parameters
-
[in] | bus | The bus control. |
[in] | msgs | The messages to transfer. |
[in] | msg_count | The count of messages to transfer. It must be positive. |
- Return values
-
0 | Successful operation. |
negative | Negative error number in case of an error. |
The documentation for this struct was generated from the following file:
- /mnt/data0/chrisj/rtems/releases/rtems-release.git/4.11.3/ws-rtems/rtems-4.11.3/cpukit/dev/include/dev/i2c/i2c.h