RTEMS: cpukit/dev/i2c/i2c-bus.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions
i2c-bus.c File Reference
Device Drivers » Inter-Integrated Circuit (I2C) Driver » I2C Bus Driver

Inter-Integrated Circuit (I2C) Bus Implementation. More...

`#include <dev/i2c/i2c.h>`
`#include <rtems/imfs.h>`
`#include <stdlib.h>`
`#include <string.h>`

## Functions
void | i2c_bus_obtain (i2c_bus *bus)
| Obtains the bus.
void | i2c_bus_release (i2c_bus *bus)
| Releases the bus.
int | i2c_bus_transfer (i2c_bus *bus, i2c_msg *msgs, uint32_t msg_count)
| Transfers I2C messages.
int | i2c_bus_register (i2c_bus *bus, const char *bus_path)
| Registers a bus control.
void | i2c_bus_destroy (i2c_bus *bus)
| Destroys a bus control.
void | i2c_bus_destroy_and_free (i2c_bus *bus)
| Destroys a bus control and frees its memory.
int | i2c_bus_init (i2c_bus *bus)
| Initializes a bus control.
i2c_bus * | i2c_bus_alloc_and_init (size_t size)
| Allocates a bus control from the heap and initializes it.

## Detailed Description

Inter-Integrated Circuit (I2C) Bus Implementation.