FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
i2c.h File Reference
+ Include dependency graph for i2c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  i2c_msg_t
 
struct  i2c_bus_t
 

Macros

#define I2C_MSG_FLAG_WRITE   0
 
#define I2C_MSG_FLAG_READ   1
 

Typedefs

typedef struct i2c_bus_t i2c_bus_t
 

Functions

void vlib_i2c_init (i2c_bus_t *bus)
 
void vlib_i2c_xfer (i2c_bus_t *bus, i2c_msg_t *msgs)
 
void vlib_i2c_read_eeprom (i2c_bus_t *bus, u8 i2c_addr, u16 start_addr, u16 length, u8 *data)
 
static int vlib_i2c_bus_timed_out (i2c_bus_t *bus)
 

Macro Definition Documentation

#define I2C_MSG_FLAG_READ   1

Definition at line 23 of file i2c.h.

#define I2C_MSG_FLAG_WRITE   0

Definition at line 22 of file i2c.h.

Typedef Documentation

typedef struct i2c_bus_t i2c_bus_t

Function Documentation

static int vlib_i2c_bus_timed_out ( i2c_bus_t bus)
inlinestatic

Definition at line 54 of file i2c.h.

+ Here is the caller graph for this function:

void vlib_i2c_init ( i2c_bus_t bus)

Definition at line 150 of file i2c.c.

+ Here is the caller graph for this function:

void vlib_i2c_read_eeprom ( i2c_bus_t bus,
u8  i2c_addr,
u16  start_addr,
u16  length,
u8 data 
)

Definition at line 201 of file i2c.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_i2c_xfer ( i2c_bus_t bus,
i2c_msg_t msgs 
)

Definition at line 168 of file i2c.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: