Contiki-NG
|
Implementation of the I2C HAL driver for CC13xx/CC26xx. More...
#include "contiki.h"
#include "board-conf.h"
#include <Board.h>
#include <ti/devices/DeviceFamily.h>
#include <DeviceFamily_constructPath(driverlib/cpu.h)>
#include <ti/drivers/I2C.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
static void | i2c_arch_init (void) |
One-time initialisation of the I2C Driver. More... | |
I2C_Handle | i2c_arch_acquire (uint_least8_t index) |
Open and lock the I2C Peripheral for use. More... | |
void | i2c_arch_release (I2C_Handle i2c_handle) |
Release the I2C Peripheral for other modules to use. More... | |
bool | i2c_arch_write_read (I2C_Handle i2c_handle, uint_least8_t slave_addr, void *wbuf, size_t wcount, void *rbuf, size_t rcount) |
Setup and peform an I2C transaction. More... | |
static bool | i2c_arch_write (I2C_Handle i2c_handle, uint_least8_t slave_addr, void *wbuf, size_t wcount) |
Perform a write-only I2C transaction. More... | |
static bool | i2c_arch_read (I2C_Handle i2c_handle, uint_least8_t slave_addr, void *rbuf, size_t rcount) |
Perform a read-only I2C transaction. More... | |
Implementation of the I2C HAL driver for CC13xx/CC26xx.
Definition in file i2c-arch.h.