SMBusLibrary
1.0
|
SMBus control register. More...
#include <smbus.h>
Data Fields | |
struct { | |
uint8_t pecEn: 1 | |
uint8_t swackEn: 1 | |
uint8_t intEn: 1 | |
uint8_t phyEn: 1 | |
uint8_t controller: 1 | |
uint8_t reserved2: 3 | |
} | bits |
Defines the control bit fields. | |
struct { | |
uint8_t writeBits: 1 | |
uint8_t reserved: 7 | |
} | writeableBits |
Allows access to the writeable bits on the structure. | |
uint8_t | u8byte |
SMBus control register.
uint8_t SMBus_Ctrl::pecEn |
Enables PEC functionality
Referenced by SMBus_disablePEC(), SMBus_enablePEC(), SMBus_NWK_controllerProcessRx(), SMBus_NWK_controllerProcessStop(), SMBus_NWK_controllerProcessTx(), SMBus_NWK_getRxPayloadSize(), SMBus_NWK_startRxTransfer(), SMBus_NWK_startTxTransfer(), SMBus_NWK_targetProcessRx(), and SMBus_NWK_targetProcessTx().
uint8_t SMBus_Ctrl::swackEn |
SW_ACK is enabled (read only)
uint8_t SMBus_Ctrl::intEn |
Interupts are enabled (read only)
Referenced by SMBus_PHY_controllerEnable(), SMBus_PHY_controllerEnableInt(), SMBus_PHY_targetEnable(), and SMBus_PHY_targetEnableInt().
uint8_t SMBus_Ctrl::phyEn |
SMBus PHY is enabled (read only)
Referenced by SMBus_PHY_controllerEnable(), SMBus_PHY_disable(), and SMBus_PHY_targetEnable().
uint8_t SMBus_Ctrl::controller |
Acting in Controller mode (read only)
Referenced by SMBus_controllerInit(), SMBus_PHY_enable(), and SMBus_targetInit().
uint8_t SMBus_Ctrl::reserved2 |
Reserved
uint8_t SMBus_Ctrl::writeBits |
Control bits that are writable
Referenced by SMBus_targetWriteCtrlReg().
uint8_t SMBus_Ctrl::reserved |
Masks the read only control
uint8_t SMBus_Ctrl::u8byte |
Whole Control byte access
Referenced by SMBus_controllerInit(), SMBus_targetInit(), and SMBus_targetWriteCtrlReg().