I2C bus control.
More...
#include <i2c.h>
◆ destroy
void(* i2c_bus::destroy) (i2c_bus *bus) |
Destroys the bus.
- Parameters
-
◆ 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:
- cpukit/include/dev/i2c/i2c.h