API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Types

Data Structures

struct  tsmart_i2c_config_t
 I2C bus configuration. More...
 
struct  tsmart_i2c_t
 I2C handler structure. More...
 

Enumerations

enum  tsmart_i2c_clock_speed_t { TSMART_I2C_SPEED = I2C_SPEED }
 Label to select clock speed. More...
 
enum  tsmart_i2c_mode_t { TSMART_I2C_MODE = I2C_Mode_I2C, TSMART_I2C_MODE_SMBUS_DEVICE = I2C_Mode_SMBusDevice, TSMART_I2C_MODE_SMBUS_HOST = I2C_Mode_SMBusHost }
 Label to select mode. More...
 
enum  tsmart_i2c_duty_cycle_t { TSMART_I2C_DUTYCYCLE_16_9 = I2C_DutyCycle_16_9, TSMART_I2C_DUTYCYCLE_2 = I2C_DutyCycle_2 }
 Label to select duty cycle. More...
 
enum  tsmart_i2c_ack_mode_t { TSMART_I2C_ACK_ENABLE = I2C_Ack_Enable, TSMART_I2C_ACK_DISABLE = I2C_Ack_Disable }
 Label to select acknowledgment mode. More...
 
enum  tsmart_i2c_ack_address_t { TSMART_I2C_ACK_ADDRESS_7BIT = I2C_AcknowledgedAddress_7bit, TSMART_I2C_ACK_ADDRESS_10BIT = I2C_AcknowledgedAddress_10bit }
 Label to select acknowledgment address. More...
 

Detailed Description

Enumeration Type Documentation

Label to select acknowledgment address.

Enumerator
TSMART_I2C_ACK_ADDRESS_7BIT 

7 bit acknowledgment address

TSMART_I2C_ACK_ADDRESS_10BIT 

10 bit acknowledgment address

Label to select acknowledgment mode.

Enumerator
TSMART_I2C_ACK_ENABLE 

Enables acknowledgment mode

TSMART_I2C_ACK_DISABLE 

Disables acknowledgment mode

Label to select clock speed.

Enumerator
TSMART_I2C_SPEED 

I2C bus speed internally set to 100 KHz

Label to select duty cycle.

Enumerator
TSMART_I2C_DUTYCYCLE_16_9 

I2C fast mode Tlow/Thigh = 16/9

TSMART_I2C_DUTYCYCLE_2 

I2C fast mode Tlow/Thigh = 2

Label to select mode.

Enumerator
TSMART_I2C_MODE 

I2C mode by default

TSMART_I2C_MODE_SMBUS_DEVICE 

Not supported yet

TSMART_I2C_MODE_SMBUS_HOST 

Not supported yet