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 twihs_master_init().

uint8_t twihs_options::smbus

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

uint32_t twihs_options::speed

The baud rate of the TWIHS bus.

Referenced by twihs_master_init().