Microchip® Advanced Software Framework

twihs_options Struct Reference

Input parameters when initializing the TWIHS module mode.

#include <twihs.h>

Data Fields

uint8_t chip
 The desired address. More...
 
uint32_t master_clk
 MCK for TWIHS. More...
 
uint8_t smbus
 SMBUS mode (set 1 to use SMBUS quick command, otherwise don't). More...
 
uint32_t speed
 The baud rate of the TWIHS bus. More...
 

uint8_t twihs_options::chip

The desired address.

uint32_t twihs_options::master_clk

MCK for TWIHS.

Referenced by main(), twihs_master_init(), and twihs_master_setup().

uint8_t twihs_options::smbus

SMBUS mode (set 1 to use SMBUS quick command, otherwise don't).

Referenced by twihs_master_setup().

uint32_t twihs_options::speed

The baud rate of the TWIHS bus.

Referenced by main(), and twihs_master_init().