![]() |
Contiki-NG
|
Board-specific I2C driver for the Sensortags. More...
#include "contiki.h"#include "ti-lib.h"#include "board-i2c.h"#include "lpm.h"#include "rtimer.h"#include <string.h>#include <stdbool.h>Go to the source code of this file.
Functions | |
| void | board_i2c_wakeup (void) |
| Enables the I2C peripheral with defaults. | |
| void | board_i2c_shutdown (void) |
| Stops the I2C peripheral and restores pins to s/w control. | |
| bool | board_i2c_write (uint8_t *buf, uint8_t len) |
| Burst write to an I2C device. | |
| bool | board_i2c_write_single (uint8_t data) |
| Single write to an I2C device. | |
| bool | board_i2c_read (uint8_t *buf, uint8_t len) |
| Burst read from an I2C device. | |
| bool | board_i2c_write_read (uint8_t *wdata, uint8_t wlen, uint8_t *rdata, uint8_t rlen) |
| Write and read in one operation. | |
| void | board_i2c_select (uint8_t interface, uint8_t slave_addr) |
| Select an I2C slave. | |
Board-specific I2C driver for the Sensortags.
Definition in file board-i2c.c.