i2c.h File Reference

Go to the source code of this file.

Data Structures

struct  i2c_frame_s
 

Macros

#define E_NO_ERR   -1
 
#define I2C_MTU   256
 
#define I2C_MASTER   0
 
#define I2C_SLAVE   1
 

Typedefs

typedef struct i2c_frame_s i2c_frame_t
 
typedef void(* i2c_callback_t) (i2c_frame_t *frame, void *pxTaskWoken)
 

Functions

int i2c_init (int handle, int mode, uint8_t addr, uint16_t speed, int queue_len_tx, int queue_len_rx, i2c_callback_t callback)
 
int i2c_send (int handle, i2c_frame_t *frame, uint16_t timeout)
 

Detailed Description

Common I2C interface, This file is derived from the Gomspace I2C driver,