RTEMS  5.0.0
Functions

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. More...
 
void i2c_bus_release (i2c_bus *bus)
 Releases the bus. More...
 
int i2c_bus_transfer (i2c_bus *bus, i2c_msg *msgs, uint32_t msg_count)
 Transfers I2C messages. More...
 
int i2c_bus_register (i2c_bus *bus, const char *bus_path)
 Registers a bus control. More...
 
void i2c_bus_destroy (i2c_bus *bus)
 Destroys a bus control. More...
 
void i2c_bus_destroy_and_free (i2c_bus *bus)
 Destroys a bus control and frees its memory. More...
 
int i2c_bus_init (i2c_bus *bus)
 Initializes a bus control. More...
 
i2c_busi2c_bus_alloc_and_init (size_t size)
 Allocates a bus control from the heap and initializes it. More...
 

Detailed Description

Inter-Integrated Circuit (I2C) Bus Implementation.