EVE 1.0

#include <i2c-master.h>

Collaboration diagram for i2c_t:

Data Fields

NRF_TWIM_Type * Dev
 
uint32_t IrqPriority
 
struct i2c_state_tState
 
uint32_t Baudrate
 
uint8_t Scl
 
uint8_t Sda
 

Detailed Description

i2c_t structure is used for configuration of I2C. The structure must be initialized before the I2C driver may be used.

Definition at line 112 of file i2c-master.h.

Field Documentation

NRF_TWIM_Type* i2c_t::Dev

Hardware interface

Definition at line 114 of file i2c-master.h.

uint32_t i2c_t::IrqPriority

HW IRQ priority (see enum EVE_IRQ_PRIORITIES)

Definition at line 115 of file i2c-master.h.

struct i2c_state_t* i2c_t::State

Pointer to state structure allocated in RAM

Definition at line 116 of file i2c-master.h.

uint32_t i2c_t::Baudrate

Rate in bit/s

Definition at line 117 of file i2c-master.h.

uint8_t i2c_t::Scl

SCL pin location.

Definition at line 120 of file i2c-master.h.

uint8_t i2c_t::Sda

SDA pin location

Definition at line 121 of file i2c-master.h.