Contiki-NG
|
Header file for the Sensortag I2C Driver. More...
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Macros | |
#define | board_i2c_deselect() board_i2c_select(BOARD_I2C_INTERFACE_0, 0) |
Put the I2C controller in a known state. More... | |
Functions | |
void | board_i2c_select (uint8_t interface, uint8_t slave_addr) |
Select an I2C slave. More... | |
bool | board_i2c_read (uint8_t *buf, uint8_t len) |
Burst read from an I2C device. More... | |
bool | board_i2c_write (uint8_t *buf, uint8_t len) |
Burst write to an I2C device. More... | |
bool | board_i2c_write_single (uint8_t data) |
Single write to an I2C device. More... | |
bool | board_i2c_write_read (uint8_t *wdata, uint8_t wlen, uint8_t *rdata, uint8_t rlen) |
Write and read in one operation. More... | |
void | board_i2c_wakeup (void) |
Enables the I2C peripheral with defaults. More... | |
void | board_i2c_shutdown (void) |
Stops the I2C peripheral and restores pins to s/w control. More... | |
Header file for the Sensortag I2C Driver.
Definition in file board-i2c.h.