1 #ifndef __SMBUS_PHY_H__
2 #define __SMBUS_PHY_H__
22 #include "smbus_phy.h"
34 #define TAxCCR0 TA0CCR0
36 #define TAxCCTL0 TA0CCTL0
38 #define TAxSCLTIMEOUT (12000 / 33)
265 #endif //__SMBUS_PHY_H__
SMBus_State SMBus_PHY_slaveProcessTimeoutInt(SMBus *smbus)
Timer interrupt service routine.
Definition: smbus_phy.c:176
void SMBus_PHY_masterStartTx(SMBus *smbus, uint8_t targetaddr, SMBus_Stop stopFlag)
Start a TX transfer.
Definition: smbus_phy.c:284
void SMBus_PHY_masterEnableInt(SMBus *smbus)
Enables the I2C interrupts.
Definition: smbus_phy.c:205
void SMBus_PHY_slaveInit(SMBus *smbus, uint16_t unused)
Initializes the I2C Slave module supporting SMBus functionality.
Definition: smbus_phy.c:85
void SMBus_PHY_slaveEnableInt(SMBus *smbus)
Enables the I2C interrupts.
Definition: smbus_phy.c:67
void SMBus_PHY_disable(SMBus *smbus)
Disables the PHY and Data Link layer.
Definition: smbus_phy.c:21
SMBus_State SMBus_PHY_slaveProcessInt(SMBus *smbus)
I2C Interrupt Service routine.
Definition: smbus_phy.c:109
SMBus_State SMBus_PHY_masterProcessTimeoutInt(SMBus *smbus)
Timer interrupt service routine.
Definition: smbus_phy.c:435
void SMBus_PHY_masterSendPreStop(SMBus *smbus)
Prepare to send stop at next byte.
Definition: smbus_phy.c:279
void SMBus_PHY_enable(SMBus *smbus)
Enables the PHY and Data Link layer.
Definition: smbus_phy.c:31
SMBus_State
SMBus state sent to application layer.
Definition: smbus.h:224
void SMBus_PHY_masterInit(SMBus *smbus, uint16_t unused, uint32_t busClk)
Initializes the I2C Master module supporting SMBus functionality.
Definition: smbus_phy.c:223
void SMBus_PHY_slaveEnable(SMBus *smbus)
Enables the PHY and Data Link layer for slave operation.
Definition: smbus_phy.c:43
Main SMBus object.
Definition: smbus.h:274
SMBus_State SMBus_PHY_masterProcessInt(SMBus *smbus)
I2C Interrupt Service routine.
Definition: smbus_phy.c:359
SMBus_Stop
List of stop codes used within the NWK and PHY layers.
Definition: smbus.h:110
void SMBus_PHY_masterStartRx(SMBus *smbus, uint8_t targetaddr, SMBus_Stop stopFlag)
Start a RX transfer.
Definition: smbus_phy.c:313
void SMBus_PHY_masterSendStop(SMBus *smbus)
Generate Stop condition if it hasn't been sent.
Definition: smbus_phy.c:259
void SMBus_PHY_masterEnable(SMBus *smbus)
Enables the PHY and Data Link layer.
Definition: smbus_phy.c:181