Microchip® Advanced Software Framework

twis_config Struct Reference

Input parameters when initializing the TWIS module mode.

#include <twis.h>

Data Fields

bool ack_general_call
 Acknowledge the general call address. More...
 
bool ack_slave_addr
 Acknowledge the specified slave address. More...
 
bool ack_smbus_default_addr
 Acknowledge the SMBus default address. More...
 
bool ack_smbus_host_header
 Acknowledge the SMBus host header. More...
 
uint32_t chip
 The desired address. More...
 
bool enable_pec
 Enable packet error checking. More...
 
uint8_t exp
 Clock Prescaler. More...
 
uint8_t fs_dadrivel
 Data Drive Strength Low in F/S mode. More...
 
uint8_t fs_daslew
 Data Slew Limit in F/S mode. More...
 
uint8_t fs_filter
 Input Spike Filter Control in F/S mode. More...
 
uint8_t hddat
 Data Hold Cycles. More...
 
uint8_t hs_dadrivel
 Data Drive Strength Low in HS mode. More...
 
uint8_t hs_daslew
 Data Slew Limit in HS mode. More...
 
uint8_t hs_filter
 Input Spike Filter Control in HS mode. More...
 
bool smbus
 SMBUS mode. More...
 
bool stretch_clk_addr
 Stretch clock on address match. More...
 
bool stretch_clk_data
 Stretch clock on data byte reception. More...
 
bool stretch_clk_hr
 Stretch clock if RHR is full or THR is empty. More...
 
uint8_t sudat
 Data Setup Cycles. More...
 
bool ten_bit
 Ten-bit addressing. More...
 
uint8_t tlows
 SMBus Low:Sext Cycles. More...
 
uint8_t ttouts
 SMBus TIMEOUT Cycles. More...
 

bool twis_config::ack_general_call

Acknowledge the general call address.

Referenced by twis_get_config_defaults(), and twis_set_config().

bool twis_config::ack_slave_addr

Acknowledge the specified slave address.

Referenced by twis_get_config_defaults(), and twis_set_config().

bool twis_config::ack_smbus_default_addr

Acknowledge the SMBus default address.

Referenced by twis_get_config_defaults(), and twis_set_config().

bool twis_config::ack_smbus_host_header

Acknowledge the SMBus host header.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint32_t twis_config::chip

The desired address.

Referenced by main(), twis_get_config_defaults(), and twis_set_config().

bool twis_config::enable_pec

Enable packet error checking.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::exp

Clock Prescaler.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::fs_dadrivel

Data Drive Strength Low in F/S mode.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::fs_daslew

Data Slew Limit in F/S mode.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::fs_filter

Input Spike Filter Control in F/S mode.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::hddat

Data Hold Cycles.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::hs_dadrivel

Data Drive Strength Low in HS mode.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::hs_daslew

Data Slew Limit in HS mode.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::hs_filter

Input Spike Filter Control in HS mode.

Referenced by twis_get_config_defaults(), and twis_set_config().

bool twis_config::smbus

SMBUS mode.

Referenced by twis_get_config_defaults(), and twis_set_config().

bool twis_config::stretch_clk_addr

Stretch clock on address match.

Referenced by twis_get_config_defaults(), and twis_set_config().

bool twis_config::stretch_clk_data

Stretch clock on data byte reception.

Referenced by twis_get_config_defaults(), and twis_set_config().

bool twis_config::stretch_clk_hr

Stretch clock if RHR is full or THR is empty.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::sudat

Data Setup Cycles.

Referenced by twis_get_config_defaults(), and twis_set_config().

bool twis_config::ten_bit

Ten-bit addressing.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::tlows

SMBus Low:Sext Cycles.

Referenced by twis_get_config_defaults(), and twis_set_config().

uint8_t twis_config::ttouts

SMBus TIMEOUT Cycles.

Referenced by twis_get_config_defaults(), and twis_set_config().