PHiLIP
i2c_mode_t Struct Reference

I2C mode settings. More...

#include <PHiLIP_typedef.h>

Data Fields

uint8_t init: 1
 
uint8_t disable: 1
 
uint8_t addr_10_bit: 1
 
uint8_t general_call: 1
 
uint8_t no_clk_stretch: 1
 
uint8_t reg_16_bit: 1
 
uint8_t reg_16_big_endian: 1
 
uint8_t nack_data: 1
 

Detailed Description

I2C mode settings.

Field Documentation

uint8_t i2c_mode_t::addr_10_bit

0:i2c address is 7 bit mode - 1:10 i2c address is 10 bit mode

uint8_t i2c_mode_t::disable

0:periph is enabled - 1:periph is disabled

uint8_t i2c_mode_t::general_call

0:disable general call - 1:enable general call

uint8_t i2c_mode_t::init

0:periph will initialize on execute - 1:periph initialized

uint8_t i2c_mode_t::nack_data

0:all data will ACK - 1:all data will NACK

uint8_t i2c_mode_t::no_clk_stretch

0:slave can clock stretch - 1:disables clock stretch

uint8_t i2c_mode_t::reg_16_big_endian

0:little endian if 16 bit register access - 1:big endian if 16 bit register access

uint8_t i2c_mode_t::reg_16_bit

0:8 bit register access - 1:16 bit register access mode


The documentation for this struct was generated from the following file: