Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
i2c.c File Reference

Architecture independent I2C (Inter-Integrated Circuit Bus) API. More...

#include "mcu_periph/i2c.h"
+ Include dependency graph for i2c.c:

Go to the source code of this file.

Functions

void i2c_init (struct i2c_periph *p)
 Initialize I2C peripheral. More...
 
bool_t i2c_transmit (struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
 Submit a write only transaction. More...
 
bool_t i2c_receive (struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
 Submit a read only transaction. More...
 
bool_t i2c_transceive (struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len_w, uint16_t len_r)
 Submit a write/read transaction. More...
 

Detailed Description

Architecture independent I2C (Inter-Integrated Circuit Bus) API.

Definition in file i2c.c.