Contiki-NG
Loading...
Searching...
No Matches

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.
 
I2C_Handle i2c_arch_acquire (uint_least8_t index)
 Open and lock the I2C Peripheral for use.
 
void i2c_arch_release (I2C_Handle i2c_handle)
 Release the I2C Peripheral for other modules to use.
 
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.
 
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.
 
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.
 

Detailed Description

Implementation of the I2C HAL driver for CC13xx/CC26xx.

Author
Edvard Pettersen e.pet.nosp@m.ters.nosp@m.en@ti.nosp@m..com
George Oikonomou georg.nosp@m.e@co.nosp@m.ntiki.nosp@m.-ng..nosp@m.org

Definition in file i2c-arch.h.