Microchip® Advanced Software Framework

twi_options Struct Reference

Input parameters when initializing the TWI module mode.

#include <twi.h>

Data Fields

uint8_t chip
 The desired address. More...
 
uint32_t master_clk
 MCK for TWI. 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 TWI bus. More...
 

uint8_t twi_options::chip

The desired address.

uint32_t twi_options::master_clk
uint8_t twi_options::smbus

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

Referenced by twi_master_init(), and twi_master_setup().

uint32_t twi_options::speed

The baud rate of the TWI bus.

Referenced by adp_interface_init(), capture_init(), mcp980x_interface_init(), mxt_init(), and twi_master_init().