32 #ifndef __SMBUS_PHY_H__ 33 #define __SMBUS_PHY_H__ 53 #include "smbus_phy.h" 62 #define SMB_SW_TIMEOUT (10000) 64 #define SMB_TIMEOUT_WAIT_CYCLES (200) 66 #define SMB_POWER_STARTUP_DELAY (16) 379 #endif //__SMBUS_PHY_H__ void SMBus_PHY_targetSetPECCount(SMBus *smbus, uint16_t length)
Sets the number of bytes left to be counted.
Definition: smbus_phy.c:229
SMBus_Auto_Ack
List of auto ack codes used within the NWK and PHY layers.
Definition: smbus.h:286
SMBus_State SMBus_PHY_targetProcessInt(SMBus *smbus)
I2C Interrupt Service routine for SMBus Target.
Definition: smbus_phy.c:138
void SMBus_PHY_controllerEnable(SMBus *smbus)
Enables the PHY and Data Link layer.
Definition: smbus_phy.c:267
void SMBus_PHY_controllerEnableHostNotify(SMBus *smbus)
Enable the hardware functionality to respond to Host Default address (0b000_1000) ...
Definition: smbus_phy.c:492
void SMBus_PHY_targetEnable(SMBus *smbus)
Enables the PHY and Data Link layer for target operation.
Definition: smbus_phy.c:52
void SMBus_PHY_targetInit(SMBus *smbus, I2C_Regs *i2cAddr)
Initializes the I2C Target module supporting SMBus functionality.
Definition: smbus_phy.c:68
SMBus_State SMBus_PHY_controllerProcessInt(SMBus *smbus)
I2C Interrupt Service routine for SMBus Controller.
Definition: smbus_phy.c:503
void SMBus_PHY_controllerDisableHostNotify(SMBus *smbus)
Disable the hardware functionality to respond to Host Default address (0b000_1000) ...
Definition: smbus_phy.c:497
uint8_t SMBus_Phy_ARP_Get_Write_Status(SMBus *smbus)
Returns the Write Bus direction of the ARP transaction.
Definition: smbus_phy.c:259
void SMBus_PHY_controllerEnableInt(SMBus *smbus)
Enables the I2C interrupts for Controller.
Definition: smbus_phy.c:284
void SMBus_PHY_targetManualACK(SMBus *smbus, bool ackVal)
Send a Manual ACK or NACK depending on data validity.
Definition: smbus_phy.c:233
void SMBus_PHY_controllerSendStop(SMBus *smbus)
Generate Stop condition if it hasn't been sent.
Definition: smbus_phy.c:359
void SMBus_Phy_ARP_TARGET_ADDR_Reset(SMBus *smbus)
Resets the Target's Address based on the ARP Status.
Definition: smbus_phy.c:247
void SMBus_PHY_targetDisableInt(SMBus *smbus)
Disables the I2C interrupts.
Definition: smbus_phy.c:115
SMBus_State
SMBus state sent to application layer.
Definition: smbus.h:512
void SMBus_PHY_controllerStartTx(SMBus *smbus, uint8_t targetaddr, uint16_t length, SMBus_Stop stopFlag, uint8_t setPEC)
Start a TX transfer.
Definition: smbus_phy.c:370
void SMBus_PHY_controllerInit(SMBus *smbus, I2C_Regs *i2cAddr, uint32_t busClk)
Initializes the I2C Controller module supporting SMBus functionality.
Definition: smbus_phy.c:344
void SMBus_PHY_targetEnableInt(SMBus *smbus)
Enables the I2C interrupts.
Definition: smbus_phy.c:81
void SMBus_PHY_disable(SMBus *smbus)
Disables the PHY and Data Link layer.
Definition: smbus_phy.c:43
uint8_t SMBus_Phy_ARP_Get_Read_Status(SMBus *smbus)
Returns the Read Bus direction of the ARP transaction.
Definition: smbus_phy.c:263
void SMBus_PHY_controllerStartRx(SMBus *smbus, uint8_t targetaddr, uint16_t length, SMBus_Start startFlag, SMBus_Stop stopFlag, SMBus_Auto_Ack ackFlag, uint8_t setPEC)
Start a RX transfer.
Definition: smbus_phy.c:422
Main SMBus object.
Definition: smbus.h:617
SMBus_Stop
List of stop codes used within the NWK and PHY layers.
Definition: smbus.h:262
void SMBus_PHY_controllerDisableInt(SMBus *smbus)
Disables the I2C interrupts for Controller.
Definition: smbus_phy.c:321
SMBus_Start
List of start codes used within the NWK and PHY layers.
Definition: smbus.h:273