Driverlib ESCSS API
Module: Driverlib (AM13E232X) APIs
Structures
Name |
|
|---|---|
struct |
DL_ESCSS_Config |
struct |
DL_ESCSS_IOConfig |
Types
Name |
|
|---|---|
enum |
DL_ESCSS_GPIN_GRP_CAP_TRIGGER { DL_ESCSS_GPIN_GRP_CAP_TRIGGER_NONE = 0U, DL_ESCSS_GPIN_GRP_CAP_TRIGGER_SYNC0 = 1U, DL_ESCSS_GPIN_GRP_CAP_TRIGGER_SYNC1 = 2U, DL_ESCSS_GPIN_GRP_CAP_TRIGGER_LATCH0 = 3U, DL_ESCSS_GPIN_GRP_CAP_TRIGGER_LATCH1 = 4U, DL_ESCSS_GPIN_GRP_CAP_TRIGGER_SOF = 5U, DL_ESCSS_GPIN_GRP_CAP_TRIGGER_EOF = 6U} |
enum |
DL_ESCSS_GPOUT_GRP_CAP_TRIGGER { DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_NONE = 0U, DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_SYNC0 = 1U, DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_SYNC1 = 2U, DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_LATCH0 = 3U} |
enum |
DL_ESCSS_GPIN_GRP_CAP_GROUP { DL_ESCSS_GPIN_GRP_CAP_GROUP_0 = 0U, DL_ESCSS_GPIN_GRP_CAP_GROUP_1 = 1U, DL_ESCSS_GPIN_GRP_CAP_GROUP_2 = 2U, DL_ESCSS_GPIN_GRP_CAP_GROUP_3 = 3U} |
enum |
DL_ESCSS_GPOUT_GRP_CAP_GROUP { DL_ESCSS_GPOUT_GRP_CAP_GROUP_0 = 0U, DL_ESCSS_GPOUT_GRP_CAP_GROUP_1 = 1U, DL_ESCSS_GPOUT_GRP_CAP_GROUP_2 = 2U, DL_ESCSS_GPOUT_GRP_CAP_GROUP_3 = 3U} |
enum |
DL_ESCSS_LATCH_SOURCE { DL_ESCSS_LATCH_SOURCE_PIN_LATCH0 = 0U, DL_ESCSS_LATCH_SOURCE_PIN_LATCH1 = 1U, DL_ESCSS_LATCH_SOURCE_CPU_NMI = 2U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_1 = 3U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_2 = 4U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_3 = 5U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_4 = 6U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_5 = 7U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_6 = 8U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_7 = 9U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_8 = 10U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_9 = 11U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_10 = 12U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_11 = 13U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_12 = 14U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_13 = 15U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_14 = 16U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_15 = 17U, DL_ESCSS_LATCH_SOURCE_INPUTXBAR_16 = 18U, DL_ESCSS_LATCH_SOURCE_PWMXBAR_1 = 19U, DL_ESCSS_LATCH_SOURCE_PWMXBAR_2 = 20U, DL_ESCSS_LATCH_SOURCE_PWMXBAR_3 = 21U, DL_ESCSS_LATCH_SOURCE_PWMXBAR_4 = 22U, DL_ESCSS_LATCH_SOURCE_PWMXBAR_5 = 23U, DL_ESCSS_LATCH_SOURCE_PWMXBAR_6 = 24U, DL_ESCSS_LATCH_SOURCE_PWMXBAR_7 = 25U, DL_ESCSS_LATCH_SOURCE_PWMXBAR_8 = 26U} |
enum |
DL_ESCSS_EEPROM_SIZE { DL_ESCSS_EEPROM_SIZE_LESS_THAN_16K = 0U, DL_ESCSS_EEPROM_SIZE_16K_OR_GREATER = 1U} |
enum |
DL_ESCSS_PHY_PORT_COUNT { DL_ESCSS_PHY_PORT_COUNT_ONE = 0U, DL_ESCSS_PHY_PORT_COUNT_TWO = 1U} |
Functions
Name |
|
|---|---|
__STATIC_INLINE ESCSS_CONFIG_Regs * |
DL_ESCSS_getConfigRegs(ESCSS_Regs * escss) |
__STATIC_INLINE const ESCSS_CONFIG_Regs * |
DL_ESCSS_getConfigRegsConst(const ESCSS_Regs * escss) |
void |
DL_ESCSS_initParamsSetDefault(DL_ESCSS_Config * config) |
void |
DL_ESCSS_init(ESCSS_Regs * escss, const DL_ESCSS_Config * config) |
void |
DL_ESCSS_ioConfigParamsSetDefault(DL_ESCSS_IOConfig * config) |
void |
DL_ESCSS_ioConfigInit(ESCSS_Regs * escss, const DL_ESCSS_IOConfig * config) |
void |
DL_ESCSS_lockConfig(ESCSS_Regs * escss) |
void |
DL_ESCSS_enableIOConfig(ESCSS_Regs * escss) |
void |
DL_ESCSS_disableIOConfig(ESCSS_Regs * escss) |
__STATIC_INLINE void |
DL_ESCSS_initiateMemoryInit(ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_isMemoryInitDone(const ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_waitMemoryInitDone(const ESCSS_Regs * escss, uint32_t timeout) |
__STATIC_INLINE uint32_t |
DL_ESCSS_readEscReg(uint32_t escBaseAddr, uint32_t regOffset) |
__STATIC_INLINE void |
DL_ESCSS_writeEscReg(uint32_t escBaseAddr, uint32_t regOffset, uint32_t value) |
__STATIC_INLINE bool |
DL_ESCSS_isEepromLoadComplete(uint32_t escBaseAddr) |
__STATIC_INLINE bool |
DL_ESCSS_waitEepromLoad(uint32_t escBaseAddr, uint32_t timeoutIterations) |
__STATIC_INLINE bool |
DL_ESCSS_isConfigRegistersLocked(const ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_isIOConfigEnabled(const ESCSS_Regs * escss) |
__STATIC_INLINE void |
DL_ESCSS_setAccessWaitStates(ESCSS_Regs * escss, uint32_t waitStates) |
__STATIC_INLINE void |
DL_ESCSS_enableAccessTimeout(ESCSS_Regs * escss) |
__STATIC_INLINE void |
DL_ESCSS_disableAccessTimeout(ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_isAccessTimeoutEnabled(const ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_isDebugAccessEnabled(const ESCSS_Regs * escss) |
__STATIC_INLINE void |
DL_ESCSS_enableDebugAccess(ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_enableDebugAccessWithTimeout(ESCSS_Regs * escss, uint32_t timeoutIterations) |
__STATIC_INLINE void |
DL_ESCSS_disableDebugAccess(ESCSS_Regs * escss) |
__STATIC_INLINE void |
DL_ESCSS_enableInterrupt(ESCSS_Regs * escss, uint32_t interruptMask) |
__STATIC_INLINE void |
DL_ESCSS_disableInterrupt(ESCSS_Regs * escss, uint32_t interruptMask) |
__STATIC_INLINE uint32_t |
DL_ESCSS_getEnabledInterrupts(const ESCSS_Regs * escss, uint32_t interruptMask) |
__STATIC_INLINE uint32_t |
DL_ESCSS_getRawInterruptStatus(const ESCSS_Regs * escss, uint32_t interruptMask) |
__STATIC_INLINE uint32_t |
DL_ESCSS_getEnabledInterruptStatus(const ESCSS_Regs * escss, uint32_t interruptMask) |
__STATIC_INLINE void |
DL_ESCSS_clearInterruptStatus(ESCSS_Regs * escss, uint32_t interruptMask) |
void |
DL_ESCSS_forceInterruptStatus(ESCSS_Regs * escss, uint32_t interruptMask) |
__STATIC_INLINE void |
DL_ESCSS_setLatch0Source(ESCSS_Regs * escss, DL_ESCSS_LATCH_SOURCE source) |
__STATIC_INLINE void |
DL_ESCSS_setLatch1Source(ESCSS_Regs * escss, DL_ESCSS_LATCH_SOURCE source) |
__STATIC_INLINE uint32_t |
DL_ESCSS_getGPINData(const ESCSS_Regs * escss) |
__STATIC_INLINE void |
DL_ESCSS_setGPINData(ESCSS_Regs * escss, uint32_t data) |
__STATIC_INLINE void |
DL_ESCSS_clearGPINData(ESCSS_Regs * escss, uint32_t pinMask) |
__STATIC_INLINE void |
DL_ESCSS_enableGPINPipelineCapture(ESCSS_Regs * escss, uint32_t pipelineMask) |
__STATIC_INLINE void |
DL_ESCSS_disableGPINPipelineCapture(ESCSS_Regs * escss, uint32_t pipelineMask) |
void |
DL_ESCSS_setGPINGroupCaptureTrigger(ESCSS_Regs * escss, DL_ESCSS_GPIN_GRP_CAP_GROUP group, DL_ESCSS_GPIN_GRP_CAP_TRIGGER trigger) |
__STATIC_INLINE uint32_t |
DL_ESCSS_getGPOUTData(const ESCSS_Regs * escss) |
__STATIC_INLINE void |
DL_ESCSS_enableGPOUTPipelineCapture(ESCSS_Regs * escss, uint32_t pipelineMask) |
__STATIC_INLINE void |
DL_ESCSS_disableGPOUTPipelineCapture(ESCSS_Regs * escss, uint32_t pipelineMask) |
void |
DL_ESCSS_setGPOUTGroupCaptureTrigger(ESCSS_Regs * escss, DL_ESCSS_GPOUT_GRP_CAP_GROUP group, DL_ESCSS_GPOUT_GRP_CAP_TRIGGER trigger) |
void |
DL_ESCSS_configureResetDestination(ESCSS_Regs * escss, uint32_t destMask) |
__STATIC_INLINE uint32_t |
DL_ESCSS_getResetDestinationConfig(const ESCSS_Regs * escss) |
void |
DL_ESCSS_enableSync0NVICRoute(ESCSS_Regs * escss) |
void |
DL_ESCSS_enableSync1NVICRoute(ESCSS_Regs * escss) |
void |
DL_ESCSS_enableSync0DMATrigger(ESCSS_Regs * escss) |
void |
DL_ESCSS_enableSync1DMATrigger(ESCSS_Regs * escss) |
void |
DL_ESCSS_disableSync0NVICRoute(ESCSS_Regs * escss) |
void |
DL_ESCSS_disableSync1NVICRoute(ESCSS_Regs * escss) |
void |
DL_ESCSS_disableSync0DMATrigger(ESCSS_Regs * escss) |
void |
DL_ESCSS_disableSync1DMATrigger(ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_isSync0NVICRouteEnabled(const ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_isSync1NVICRouteEnabled(const ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_isSync0DMATriggerEnabled(const ESCSS_Regs * escss) |
__STATIC_INLINE bool |
DL_ESCSS_isSync1DMATriggerEnabled(const ESCSS_Regs * escss) |
void |
DL_ESCSS_setTX0ShiftConfig(ESCSS_Regs * escss, uint32_t shiftConfig) |
void |
DL_ESCSS_setTX1ShiftConfig(ESCSS_Regs * escss, uint32_t shiftConfig) |
void |
DL_ESCSS_setEEPROMSize(ESCSS_Regs * escss, DL_ESCSS_EEPROM_SIZE size) |
void |
DL_ESCSS_setPHYAddress(ESCSS_Regs * escss, uint32_t phyAddr) |
__STATIC_INLINE uint32_t |
DL_ESCSS_getIPRevision(const ESCSS_Regs * escss) |
__STATIC_INLINE uint8_t |
DL_ESCSS_readByte(uint16_t address) |
__STATIC_INLINE uint16_t |
DL_ESCSS_readWord(uint16_t address) |
__STATIC_INLINE uint32_t |
DL_ESCSS_readDWord(uint16_t address) |
__STATIC_INLINE void |
DL_ESCSS_writeByte(uint8_t byteVal, uint16_t address) |
__STATIC_INLINE void |
DL_ESCSS_writeWord(uint16_t wordVal, uint16_t address) |
__STATIC_INLINE void |
DL_ESCSS_writeDWord(uint32_t dwordVal, uint16_t address) |
void |
DL_ESCSS_setGPINIOSelect(ESCSS_Regs * escss, uint32_t pinMask, bool enable) |
__STATIC_INLINE uint32_t |
DL_ESCSS_getGPINIOSelect(const ESCSS_Regs * escss) |
__STATIC_INLINE void |
DL_ESCSS_enableGPINIOPad(ESCSS_Regs * escss, uint32_t pinMask) |
__STATIC_INLINE void |
DL_ESCSS_disableGPINIOPad(ESCSS_Regs * escss, uint32_t pinMask) |
void |
DL_ESCSS_enableEcatInterrupts(void ) |
void |
DL_ESCSS_disableEcatInterrupts(void ) |
void |
DL_ESCSS_setEcatClock(bool enablePhyClk, bool enableEcat100Clk, DL_SYSCTL_ETHERCAT_CLK_DIV divider) |
Defines
Name |
|
|---|---|
DL_ESCSS_INTERRUPT_SYNC0 |
|
DL_ESCSS_INTERRUPT_SYNC1 |
|
DL_ESCSS_INTERRUPT_PDI_IRQ |
|
DL_ESCSS_INTERRUPT_DMA_DONE |
|
DL_ESCSS_INTERRUPT_TIMEOUT_ERR |
|
DL_ESCSS_INTERRUPT_MASTER_RESET |
|
DL_ESCSS_INTERRUPT_ALL |
|
DL_ESCSS_RESET_DEST_CPU_RESET |
|
DL_ESCSS_RESET_DEST_CPU_NMI |
|
DL_ESCSS_RESET_DEST_CPU_INT |
|
DL_ESCSS_RESET_DEST_DEVICE_RESET |
|
DL_ESCSS_GPIN_PIN_0 |
|
DL_ESCSS_GPIN_PIN_1 |
|
DL_ESCSS_GPIN_PIN_2 |
|
DL_ESCSS_GPIN_PIN_3 |
|
DL_ESCSS_GPIN_PIN_ALL |
|
DL_ESCSS_GPOUT_PIN_0 |
|
DL_ESCSS_GPOUT_PIN_1 |
|
DL_ESCSS_GPOUT_PIN_2 |
|
DL_ESCSS_GPOUT_PIN_3 |
|
DL_ESCSS_GPOUT_PIN_ALL |
|
DL_ESCSS_WRITE_KEY_UNLOCK |
|
DL_ESCSS_CONFIG_LOCK_LOCK_ENABLE_SET |
|
DL_ESCSS_CONFIG_LOCK_IO_CONFIG_ENABLE_SET |
|
DL_ESCSS_MISC_IO_CONFIG_EEPROM_I2C_IO_EN_SET |
|
DL_ESCSS_PHY_IO_CONFIG_TX_CLK_AUTO_COMP_SET |
|
DL_ESCSS_ACCESS_CTRL_EN_TIMEOUT_SET |
|
DL_ESCSS_ACCESS_CTRL_EN_TIMEOUT_CLR |
|
DL_ESCSS_ACCESS_CTRL_ENABLE_DEBUG_ACCESS_SET |
|
DL_ESCSS_ACCESS_CTRL_ENABLE_DEBUG_ACCESS_CLR |
|
DL_ESCSS_MEM_TEST_MEM_INIT_DONE_SET |
|
DL_ESCSS_MEM_TEST_INITIATE_MEM_INIT_START |
|
DL_ESCSS_ESC_DL_STATUS_OFFSET |
|
DL_ESCSS_EEPROM_LOAD_COMPLETE_MASK |
|
DL_ESCSS_CONFIG_REGS_OFFSET |
|
DL_ESCSS_PDRAM_SIZE_BYTES |
|
DL_ESCSS_PDI_ADDR_SPACE_SIZE_BYTES |
|
DL_ESCSS_WAIT_STATES_MAX |
|
DL_ESCSS_SYNC0_CONFIG_CPUX_INT_EN_SET |
|
DL_ESCSS_SYNC0_CONFIG_DMAX_TRIG_EN_SET |
|
DL_ESCSS_SYNC1_CONFIG_CPUX_INT_EN_SET |
|
DL_ESCSS_SYNC1_CONFIG_DMAX_TRIG_EN_SET |
|
DL_ESCSS_GPIN_GRP_CAP_TRIGGER_TYPE_COUNT |
|
DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_TYPE_COUNT |
|
DL_ESCSS_GPIN_GRP_CAP_GROUP_TYPE_COUNT |
|
DL_ESCSS_GPOUT_GRP_CAP_GROUP_TYPE_COUNT |
|
DL_ESCSS_LATCH_SOURCE_TYPE_COUNT |
|
DL_ESCSS_EEPROM_SIZE_TYPE_COUNT |
|
DL_ESCSS_PHY_PORT_COUNT_TYPE_COUNT |
Detailed Description
The ESCSS Driver Library configures the EtherCAT Subdevice SubSystem peripheral. It provides APIs for interrupt routing, SYNC/LATCH signal mapping, PHY interface configuration, GPI/GPO control, and PDI access management for EtherCAT Subdevice applications.
Types Documentation
enum DL_ESCSS_GPIN_GRP_CAP_TRIGGER
Enumerator |
Value |
Description |
|---|---|---|
DL_ESCSS_GPIN_GRP_CAP_TRIGGER_NONE |
0U |
No capture trigger (register follows GPIN directly) |
DL_ESCSS_GPIN_GRP_CAP_TRIGGER_SYNC0 |
1U |
Capture on SYNC0 pulse |
DL_ESCSS_GPIN_GRP_CAP_TRIGGER_SYNC1 |
2U |
Capture on SYNC1 pulse |
DL_ESCSS_GPIN_GRP_CAP_TRIGGER_LATCH0 |
3U |
Capture on LATCH0 event |
DL_ESCSS_GPIN_GRP_CAP_TRIGGER_LATCH1 |
4U |
Capture on LATCH1 event |
DL_ESCSS_GPIN_GRP_CAP_TRIGGER_SOF |
5U |
Capture on SOF (Start-of-Frame) |
DL_ESCSS_GPIN_GRP_CAP_TRIGGER_EOF |
6U |
Capture on EOF (End-of-Frame) |
GPI group pipeline capture trigger select.
Selects the event that latches GPI data into the pipelined capture register. Used with DL_ESCSS_setGPINGroupCaptureTrigger.
enum DL_ESCSS_GPOUT_GRP_CAP_TRIGGER
Enumerator |
Value |
Description |
|---|---|---|
DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_NONE |
0U |
No capture trigger (GPO follows EtherCAT master writes directly) |
DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_SYNC0 |
1U |
Capture on SYNC0 pulse |
DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_SYNC1 |
2U |
Capture on SYNC1 pulse |
DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_LATCH0 |
3U |
Capture on LATCH0 event |
GPO group pipeline capture trigger select.
Used with DL_ESCSS_setGPOUTGroupCaptureTrigger.
enum DL_ESCSS_GPIN_GRP_CAP_GROUP
Enumerator |
Value |
Description |
|---|---|---|
DL_ESCSS_GPIN_GRP_CAP_GROUP_0 |
0U |
Configure capture trigger for GPI[7:0] (SEL0, bits[2:0]) |
DL_ESCSS_GPIN_GRP_CAP_GROUP_1 |
1U |
Configure capture trigger for GPI[15:8] (SEL1, bits[6:4]) |
DL_ESCSS_GPIN_GRP_CAP_GROUP_2 |
2U |
Configure capture trigger for GPI[23:16] (SEL2, bits[10:8]) |
DL_ESCSS_GPIN_GRP_CAP_GROUP_3 |
3U |
Configure capture trigger for GPI[31:24] (SEL3, bits[14:12]) |
GPI pipeline capture group selection.
GPIN_GRP_CAP_SEL has four independent 3-bit fields, one per byte group of the 32-bit GPI bus: SEL0 for GPI[7:0], SEL1 for GPI[15:8], SEL2 for GPI[23:16], SEL3 for GPI[31:24]. Only GPI[3:0] are available on this device, which belong to group 0.
enum DL_ESCSS_GPOUT_GRP_CAP_GROUP
Enumerator |
Value |
Description |
|---|---|---|
DL_ESCSS_GPOUT_GRP_CAP_GROUP_0 |
0U |
Configure capture trigger for GPO[7:0] (SEL0, bits[1:0]) |
DL_ESCSS_GPOUT_GRP_CAP_GROUP_1 |
1U |
Configure capture trigger for GPO[15:8] (SEL1, bits[5:4]) |
DL_ESCSS_GPOUT_GRP_CAP_GROUP_2 |
2U |
Configure capture trigger for GPO[23:16] (SEL2, bits[9:8]) |
DL_ESCSS_GPOUT_GRP_CAP_GROUP_3 |
3U |
Configure capture trigger for GPO[31:24] (SEL3, bits[13:12]) |
GPO pipeline capture group selection.
GPOUT_GRP_CAP_SEL has four independent 2-bit fields, one per byte group of the 32-bit GPO bus: SEL0 for GPO[7:0], SEL1 for GPO[15:8], SEL2 for GPO[23:16], SEL3 for GPO[31:24]. Only GPO[3:0] are available on this device, which belong to group 0.
enum DL_ESCSS_LATCH_SOURCE
Enumerator |
Value |
Description |
|---|---|---|
DL_ESCSS_LATCH_SOURCE_PIN_LATCH0 |
0U |
ECAT_LATCH0 physical input pad |
DL_ESCSS_LATCH_SOURCE_PIN_LATCH1 |
1U |
ECAT_LATCH1 physical input pad |
DL_ESCSS_LATCH_SOURCE_CPU_NMI |
2U |
CPU NMI signal |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_1 |
3U |
Input XBAR output 1 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_2 |
4U |
Input XBAR output 2 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_3 |
5U |
Input XBAR output 3 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_4 |
6U |
Input XBAR output 4 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_5 |
7U |
Input XBAR output 5 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_6 |
8U |
Input XBAR output 6 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_7 |
9U |
Input XBAR output 7 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_8 |
10U |
Input XBAR output 8 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_9 |
11U |
Input XBAR output 9 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_10 |
12U |
Input XBAR output 10 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_11 |
13U |
Input XBAR output 11 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_12 |
14U |
Input XBAR output 12 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_13 |
15U |
Input XBAR output 13 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_14 |
16U |
Input XBAR output 14 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_15 |
17U |
Input XBAR output 15 |
DL_ESCSS_LATCH_SOURCE_INPUTXBAR_16 |
18U |
Input XBAR output 16 |
DL_ESCSS_LATCH_SOURCE_PWMXBAR_1 |
19U |
PWM XBAR output 1 |
DL_ESCSS_LATCH_SOURCE_PWMXBAR_2 |
20U |
PWM XBAR output 2 |
DL_ESCSS_LATCH_SOURCE_PWMXBAR_3 |
21U |
PWM XBAR output 3 |
DL_ESCSS_LATCH_SOURCE_PWMXBAR_4 |
22U |
PWM XBAR output 4 |
DL_ESCSS_LATCH_SOURCE_PWMXBAR_5 |
23U |
PWM XBAR output 5 |
DL_ESCSS_LATCH_SOURCE_PWMXBAR_6 |
24U |
PWM XBAR output 6 |
DL_ESCSS_LATCH_SOURCE_PWMXBAR_7 |
25U |
PWM XBAR output 7 |
DL_ESCSS_LATCH_SOURCE_PWMXBAR_8 |
26U |
PWM XBAR output 8 |
LATCH input signal source selection.
Selects the signal routed to ECAT_LATCH0 or ECAT_LATCH1 through the 5-bit LATCH_SEL multiplexer.
enum DL_ESCSS_EEPROM_SIZE
Enumerator |
Value |
Description |
|---|---|---|
DL_ESCSS_EEPROM_SIZE_LESS_THAN_16K |
0U |
EEPROM size is less than 16 Kbit |
DL_ESCSS_EEPROM_SIZE_16K_OR_GREATER |
1U |
EEPROM size is 16 Kbit or greater |
EEPROM size bound selection.
enum DL_ESCSS_PHY_PORT_COUNT
Enumerator |
Value |
Description |
|---|---|---|
DL_ESCSS_PHY_PORT_COUNT_ONE |
0U |
One port operation (Port0) |
DL_ESCSS_PHY_PORT_COUNT_TWO |
1U |
Two port operation (Port0, Port1) |
Number of PHY ports in operation.
Informational; the value does not change the port configuration. The three-port and four-port encodings of PHY_PORT_CNT are reserved and are not available.
Functions Documentation
function DL_ESCSS_getConfigRegs
__STATIC_INLINE ESCSS_CONFIG_Regs * DL_ESCSS_getConfigRegs(
ESCSS_Regs * escss
)
Get the ESCSS_CONFIG register overlay of an ESCSS instance.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: Pointer to the ESCSS_CONFIG register overlay
function DL_ESCSS_getConfigRegsConst
__STATIC_INLINE const ESCSS_CONFIG_Regs * DL_ESCSS_getConfigRegsConst(
const ESCSS_Regs * escss
)
Get the read-only ESCSS_CONFIG register overlay of an ESCSS instance.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: Pointer to the ESCSS_CONFIG register overlay
function DL_ESCSS_initParamsSetDefault
void DL_ESCSS_initParamsSetDefault(
DL_ESCSS_Config * config
)
Set ESCSS runtime configuration to safe defaults.
Parameters:
config Pointer to the ESCSS configuration structure
function DL_ESCSS_init
void DL_ESCSS_init(
ESCSS_Regs * escss,
const DL_ESCSS_Config * config
)
Initialize ESCSS with runtime configuration.
Parameters:
escss Pointer to the register overlay for the peripheral
config Pointer to the populated ESCSS configuration structure
Programs PDI access control, LATCH source selection, the interrupt mask, ResetOut routing and SYNC routing from config. ACCESS_CTRL is updated with read-modify-write, so the debug access enable is preserved. LATCH_SEL, INTR_MASK, RESET_DEST_CONFIG, SYNC0_CONFIG and SYNC1_CONFIG are written in full, so any bit not requested in config is cleared.
Writes to RESET_DEST_CONFIG, SYNC0_CONFIG and SYNC1_CONFIG require the write key, which this function supplies.
function DL_ESCSS_ioConfigParamsSetDefault
void DL_ESCSS_ioConfigParamsSetDefault(
DL_ESCSS_IOConfig * config
)
Set ESCSS I/O configuration to safe defaults.
Parameters:
config Pointer to the ESCSS I/O configuration structure
function DL_ESCSS_ioConfigInit
void DL_ESCSS_ioConfigInit(
ESCSS_Regs * escss,
const DL_ESCSS_IOConfig * config
)
Initialize ESCSS I/O configuration (one-time)
Parameters:
escss Pointer to the register overlay for the peripheral
config Pointer to the populated ESCSS I/O configuration
Applies all fields of config to PHY_IO_CONFIG, MISC_IO_CONFIG and MISC_CONFIG.
These registers are protected by the configuration lock: writes are ignored once DL_ESCSS_lockConfig has been called, until the next ECAT.XRSn reset. Call this function before locking; it asserts if called while locked. Use DL_ESCSS_isConfigRegistersLocked to check the lock state.
function DL_ESCSS_lockConfig
void DL_ESCSS_lockConfig(
ESCSS_Regs * escss
)
Lock the ESCSS configuration registers.
Parameters:
escss Pointer to the register overlay for the peripheral
Sets CONFIG_LOCK LOCK_ENABLE using the write key. The bit can be set only once and is cleared only by the next ECAT.XRSn reset. IO_CONFIG_ENABLE is not modified; see DL_ESCSS_enableIOConfig.
Complete all configuration register writes before calling this function. Writes to the following registers are ignored while locked:
MISC_IO_CONFIG
PHY_IO_CONFIG
GPIN_SEL
MISC_CONFIG
The ESCSS APIs that write these registers assert that the lock is not set.
All other ESCSS registers remain writable. Use DL_ESCSS_isConfigRegistersLocked to query the lock state.
function DL_ESCSS_enableIOConfig
void DL_ESCSS_enableIOConfig(
ESCSS_Regs * escss
)
Connect the EtherCAT ports to the IO pads.
Parameters:
escss Pointer to the register overlay for the peripheral
Sets CONFIG_LOCK IO_CONFIG_ENABLE using the write key. Until this bit is set the EtherCAT ports are not connected to the IO pads. Complete all IO selection and IO configuration writes (MISC_IO_CONFIG, PHY_IO_CONFIG, GPIN_SEL) before calling this function; changing them afterwards can cause unpredictable IO behavior on the device IOs.
This bit is not affected by DL_ESCSS_lockConfig.
function DL_ESCSS_disableIOConfig
void DL_ESCSS_disableIOConfig(
ESCSS_Regs * escss
)
Disconnect the EtherCAT ports from the IO pads.
Parameters:
escss Pointer to the register overlay for the peripheral
Clears CONFIG_LOCK IO_CONFIG_ENABLE using the write key.
function DL_ESCSS_initiateMemoryInit
__STATIC_INLINE void DL_ESCSS_initiateMemoryInit(
ESCSS_Regs * escss
)
Initiate ESC internal memory initialization.
Parameters:
escss Pointer to the register overlay for the peripheral
Initiate memory initialization after the ESC EEPROM load has completed; see DL_ESCSS_waitEepromLoad. Completion is reported by DL_ESCSS_isMemoryInitDone.
function DL_ESCSS_isMemoryInitDone
__STATIC_INLINE bool DL_ESCSS_isMemoryInitDone(
const ESCSS_Regs * escss
)
Check if ESC memory initialization is complete (non-blocking)
Parameters:
escss Pointer to the register overlay for the peripheral
Return: true if memory initialization is complete, false otherwise
function DL_ESCSS_waitMemoryInitDone
__STATIC_INLINE bool DL_ESCSS_waitMemoryInitDone(
const ESCSS_Regs * escss,
uint32_t timeout
)
Poll for ESC memory initialization with timeout (blocking)
Parameters:
escss Pointer to the register overlay for the peripheral
timeout Maximum number of poll iterations (not a time value); 0 returns false immediately
Return: true if initialization completed within timeout, false otherwise
function DL_ESCSS_readEscReg
__STATIC_INLINE uint32_t DL_ESCSS_readEscReg(
uint32_t escBaseAddr,
uint32_t regOffset
)
Read a 32-bit value from the Beckhoff ESC register space.
Parameters:
escBaseAddr Base address of the Beckhoff ESC register space (ETHERCATA_BASE)
regOffset Offset of the register from the base address
Return: 32-bit value at the specified offset
function DL_ESCSS_writeEscReg
__STATIC_INLINE void DL_ESCSS_writeEscReg(
uint32_t escBaseAddr,
uint32_t regOffset,
uint32_t value
)
Write a 32-bit value to the Beckhoff ESC register space.
Parameters:
escBaseAddr Base address of the Beckhoff ESC register space (ETHERCATA_BASE)
regOffset Offset of the register from the base address
value 32-bit value to write
function DL_ESCSS_isEepromLoadComplete
__STATIC_INLINE bool DL_ESCSS_isEepromLoadComplete(
uint32_t escBaseAddr
)
Check if Beckhoff ESC EEPROM (SII) load is complete.
Parameters:
escBaseAddr Base address of the Beckhoff ESC register space
Return: true if EEPROM load completed, false otherwise
Note: Non-blocking; use DL_ESCSS_waitEepromLoad() for blocking wait
function DL_ESCSS_waitEepromLoad
__STATIC_INLINE bool DL_ESCSS_waitEepromLoad(
uint32_t escBaseAddr,
uint32_t timeoutIterations
)
Wait for Beckhoff ESC EEPROM (SII) load to complete with timeout.
Parameters:
escBaseAddr Base address of the Beckhoff ESC register
timeoutIterations Maximum number of poll iterations (not a time value); 0 returns false
Return: true if EEPROM load completed within timeout, false if timeout
function DL_ESCSS_isConfigRegistersLocked
__STATIC_INLINE bool DL_ESCSS_isConfigRegistersLocked(
const ESCSS_Regs * escss
)
Check if ESCSS configuration registers are locked.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: true if configuration registers are locked, false otherwise
Reports the CONFIG_LOCK LOCK_ENABLE bit only; IO_CONFIG_ENABLE is not considered.
function DL_ESCSS_isIOConfigEnabled
__STATIC_INLINE bool DL_ESCSS_isIOConfigEnabled(
const ESCSS_Regs * escss
)
Check if the EtherCAT ports are connected to the IO pads.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: true if IO_CONFIG_ENABLE is set, false otherwise
Reports the CONFIG_LOCK IO_CONFIG_ENABLE bit.
function DL_ESCSS_setAccessWaitStates
__STATIC_INLINE void DL_ESCSS_setAccessWaitStates(
ESCSS_Regs * escss,
uint32_t waitStates
)
Set the minimum PDI wait states.
Parameters:
escss Pointer to the register overlay for the peripheral
waitStates Wait state count, 0 to DL_ESCSS_WAIT_STATES_MAX
function DL_ESCSS_enableAccessTimeout
__STATIC_INLINE void DL_ESCSS_enableAccessTimeout(
ESCSS_Regs * escss
)
Enable PDI bus timeout detection.
Parameters:
escss Pointer to the register overlay for the peripheral
function DL_ESCSS_disableAccessTimeout
__STATIC_INLINE void DL_ESCSS_disableAccessTimeout(
ESCSS_Regs * escss
)
Disable PDI bus timeout detection.
Parameters:
escss Pointer to the register overlay for the peripheral
function DL_ESCSS_isAccessTimeoutEnabled
__STATIC_INLINE bool DL_ESCSS_isAccessTimeoutEnabled(
const ESCSS_Regs * escss
)
Check if PDI bus timeout detection is enabled.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: true if PDI bus timeout detection is enabled, false otherwise
function DL_ESCSS_isDebugAccessEnabled
__STATIC_INLINE bool DL_ESCSS_isDebugAccessEnabled(
const ESCSS_Regs * escss
)
Check if ESC debug register access via PDI is enabled.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: true if ESC debug register access is enabled, false otherwise
function DL_ESCSS_enableDebugAccess
__STATIC_INLINE void DL_ESCSS_enableDebugAccess(
ESCSS_Regs * escss
)
Enable ESC debug register access via PDI (blocking, no timeout)
Parameters:
escss Pointer to the register overlay for the peripheral
See: DL_ESCSS_enableDebugAccessWithTimeout, DL_ESCSS_isDebugAccessEnabled, DL_ESCSS_disableDebugAccess
Writes the ENABLE_DEBUG_ACCESS bit and polls until hardware confirms it is set. Blocks indefinitely until successful. Use this for initialization where failure is not recoverable.
function DL_ESCSS_enableDebugAccessWithTimeout
__STATIC_INLINE bool DL_ESCSS_enableDebugAccessWithTimeout(
ESCSS_Regs * escss,
uint32_t timeoutIterations
)
Enable ESC debug register access with timeout (blocking)
Parameters:
escss Pointer to the register overlay for the peripheral
timeoutIterations Maximum number of poll iterations (not a time value); 0 returns false
See: DL_ESCSS_enableDebugAccess, DL_ESCSS_isDebugAccessEnabled, DL_ESCSS_disableDebugAccess
Return: true if debug access enabled within timeout, false if timeout
Writes the ENABLE_DEBUG_ACCESS bit and polls until hardware confirms it is set, with a bounded timeout for safety. Returns false if hardware does not acknowledge within the specified timeout iterations. Use this for production code where timeout verification is required.
function DL_ESCSS_disableDebugAccess
__STATIC_INLINE void DL_ESCSS_disableDebugAccess(
ESCSS_Regs * escss
)
Disable ESC debug register access via PDI.
Parameters:
escss Pointer to the register overlay for the peripheral
Clears the ENABLE_DEBUG_ACCESS bit. No verification is performed.
function DL_ESCSS_enableInterrupt
__STATIC_INLINE void DL_ESCSS_enableInterrupt(
ESCSS_Regs * escss,
uint32_t interruptMask
)
Enable ESCSS interrupts.
Parameters:
escss Pointer to the register overlay for the peripheral
interruptMask Bitwise OR of [DL_ESCSS_INTERRUPT]
function DL_ESCSS_disableInterrupt
__STATIC_INLINE void DL_ESCSS_disableInterrupt(
ESCSS_Regs * escss,
uint32_t interruptMask
)
Disable ESCSS interrupts.
Parameters:
escss Pointer to the register overlay for the peripheral
interruptMask Bitwise OR of [DL_ESCSS_INTERRUPT]
function DL_ESCSS_getEnabledInterrupts
__STATIC_INLINE uint32_t DL_ESCSS_getEnabledInterrupts(
const ESCSS_Regs * escss,
uint32_t interruptMask
)
Check which ESCSS interrupts are currently enabled.
Parameters:
escss Pointer to the register overlay for the peripheral
interruptMask Bitwise OR of [DL_ESCSS_INTERRUPT]
Return: Bitwise OR of enabled [DL_ESCSS_INTERRUPT] values
function DL_ESCSS_getRawInterruptStatus
__STATIC_INLINE uint32_t DL_ESCSS_getRawInterruptStatus(
const ESCSS_Regs * escss,
uint32_t interruptMask
)
Check raw (unmasked) interrupt status.
Parameters:
escss Pointer to the register overlay for the peripheral
interruptMask Bitwise OR of [DL_ESCSS_INTERRUPT]
Return: Bitwise OR of pending [DL_ESCSS_INTERRUPT] values
function DL_ESCSS_getEnabledInterruptStatus
__STATIC_INLINE uint32_t DL_ESCSS_getEnabledInterruptStatus(
const ESCSS_Regs * escss,
uint32_t interruptMask
)
Check masked interrupt status.
Parameters:
escss Pointer to the register overlay for the peripheral
interruptMask Bitwise OR of [DL_ESCSS_INTERRUPT]
Return: Bitwise OR of pending and enabled [DL_ESCSS_INTERRUPT] values
function DL_ESCSS_clearInterruptStatus
__STATIC_INLINE void DL_ESCSS_clearInterruptStatus(
ESCSS_Regs * escss,
uint32_t interruptMask
)
Clear pending ESCSS interrupt flags.
Parameters:
escss Pointer to the register overlay for the peripheral
interruptMask Bitwise OR of [DL_ESCSS_INTERRUPT]
function DL_ESCSS_forceInterruptStatus
void DL_ESCSS_forceInterruptStatus(
ESCSS_Regs * escss,
uint32_t interruptMask
)
Force ESCSS interrupt flags (write-key protected)
Parameters:
escss Pointer to the register overlay for the peripheral
interruptMask Bitwise OR of [DL_ESCSS_INTERRUPT]
A forced flag is treated like a hardware event. If the source is enabled, install the corresponding interrupt handler before forcing it.
function DL_ESCSS_setLatch0Source
__STATIC_INLINE void DL_ESCSS_setLatch0Source(
ESCSS_Regs * escss,
DL_ESCSS_LATCH_SOURCE source
)
Set the LATCH0 input signal source.
Parameters:
escss Pointer to the register overlay for the peripheral
source LATCH0 source. One of DL_ESCSS_LATCH_SOURCE.
Selects the signal routed to the ECAT_LATCH0 input via a 5-bit mux.
function DL_ESCSS_setLatch1Source
__STATIC_INLINE void DL_ESCSS_setLatch1Source(
ESCSS_Regs * escss,
DL_ESCSS_LATCH_SOURCE source
)
Set the LATCH1 input signal source.
Parameters:
escss Pointer to the register overlay for the peripheral
source LATCH1 source. One of DL_ESCSS_LATCH_SOURCE.
Selects the signal routed to the ECAT_LATCH1 input via a 5-bit mux.
function DL_ESCSS_getGPINData
__STATIC_INLINE uint32_t DL_ESCSS_getGPINData(
const ESCSS_Regs * escss
)
Read the GPI data captured by the ESC.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: Current GPIN_DAT register value
function DL_ESCSS_setGPINData
__STATIC_INLINE void DL_ESCSS_setGPINData(
ESCSS_Regs * escss,
uint32_t data
)
Write the GPI data register.
Parameters:
escss Pointer to the register overlay for the peripheral
data GPI data value to write
The written value drives only the GPI pins whose GPIN_SEL bit is 0; see DL_ESCSS_setGPINIOSelect.
function DL_ESCSS_clearGPINData
__STATIC_INLINE void DL_ESCSS_clearGPINData(
ESCSS_Regs * escss,
uint32_t pinMask
)
Clear specific GPI data bits.
Parameters:
escss Pointer to the register overlay for the peripheral
pinMask Bitmask of GPI pins to clear
function DL_ESCSS_enableGPINPipelineCapture
__STATIC_INLINE void DL_ESCSS_enableGPINPipelineCapture(
ESCSS_Regs * escss,
uint32_t pipelineMask
)
Enable GPI pipelined register capture on event.
Parameters:
escss Pointer to the register overlay for the peripheral
pipelineMask Bitmask of GPI pins to enable pipeline capture
function DL_ESCSS_disableGPINPipelineCapture
__STATIC_INLINE void DL_ESCSS_disableGPINPipelineCapture(
ESCSS_Regs * escss,
uint32_t pipelineMask
)
Disable GPI pipelined register capture on event.
Parameters:
escss Pointer to the register overlay for the peripheral
pipelineMask Bitmask of GPI pins to disable pipeline capture
function DL_ESCSS_setGPINGroupCaptureTrigger
void DL_ESCSS_setGPINGroupCaptureTrigger(
ESCSS_Regs * escss,
DL_ESCSS_GPIN_GRP_CAP_GROUP group,
DL_ESCSS_GPIN_GRP_CAP_TRIGGER trigger
)
Set the GPI pipeline capture trigger for a specific byte group.
Parameters:
escss Pointer to the register overlay for the peripheral
group Which GPI byte group to configure. One of DL_ESCSS_GPIN_GRP_CAP_GROUP.
trigger Capture trigger. One of DL_ESCSS_GPIN_GRP_CAP_TRIGGER.
Configures which event latches GPI data into the pipeline capture register for the selected group. GPIN_GRP_CAP_SEL has four 3-bit fields: SEL0 for GPI[7:0], SEL1 for GPI[15:8], SEL2 for GPI[23:16], SEL3 for GPI[31:24].
function DL_ESCSS_getGPOUTData
__STATIC_INLINE uint32_t DL_ESCSS_getGPOUTData(
const ESCSS_Regs * escss
)
Read the GPO data driven by the ESC.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: Current GPOUT_DAT register value
function DL_ESCSS_enableGPOUTPipelineCapture
__STATIC_INLINE void DL_ESCSS_enableGPOUTPipelineCapture(
ESCSS_Regs * escss,
uint32_t pipelineMask
)
Enable GPO pipelined register capture on event.
Parameters:
escss Pointer to the register overlay for the peripheral
pipelineMask Bitmask of GPO pins to enable pipeline capture
function DL_ESCSS_disableGPOUTPipelineCapture
__STATIC_INLINE void DL_ESCSS_disableGPOUTPipelineCapture(
ESCSS_Regs * escss,
uint32_t pipelineMask
)
Disable GPO pipelined register capture on event.
Parameters:
escss Pointer to the register overlay for the peripheral
pipelineMask Bitmask of GPO pins to disable pipeline capture
function DL_ESCSS_setGPOUTGroupCaptureTrigger
void DL_ESCSS_setGPOUTGroupCaptureTrigger(
ESCSS_Regs * escss,
DL_ESCSS_GPOUT_GRP_CAP_GROUP group,
DL_ESCSS_GPOUT_GRP_CAP_TRIGGER trigger
)
Set the GPO pipeline capture trigger for a specific byte group.
Parameters:
escss Pointer to the register overlay for the peripheral
group Which GPO byte group to configure. One of DL_ESCSS_GPOUT_GRP_CAP_GROUP.
trigger Capture trigger. One of DL_ESCSS_GPOUT_GRP_CAP_TRIGGER.
Configures which event latches GPO data into the pipeline capture register for the selected group. GPOUT_GRP_CAP_SEL has four 2-bit fields: SEL0 for GPO[7:0], SEL1 for GPO[15:8], SEL2 for GPO[23:16], SEL3 for GPO[31:24].
function DL_ESCSS_configureResetDestination
void DL_ESCSS_configureResetDestination(
ESCSS_Regs * escss,
uint32_t destMask
)
Configure EtherCAT ResetOut routing destinations.
Parameters:
escss Pointer to the register overlay for the peripheral
destMask Bitwise OR of [DL_ESCSS_RESET_DEST] values, or 0 to disable all reset routing
RESET_DEST_CONFIG writes require the write key, which this function supplies.
function DL_ESCSS_getResetDestinationConfig
__STATIC_INLINE uint32_t DL_ESCSS_getResetDestinationConfig(
const ESCSS_Regs * escss
)
Get current EtherCAT ResetOut routing configuration.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: Bitwise OR of [DL_ESCSS_RESET_DEST] values currently enabled
function DL_ESCSS_enableSync0NVICRoute
void DL_ESCSS_enableSync0NVICRoute(
ESCSS_Regs * escss
)
Enable routing of SYNC0 to the CPU NVIC.
Parameters:
escss Pointer to the register overlay for the peripheral
SYNC0_CONFIG writes require the write key, which this function supplies.
function DL_ESCSS_enableSync1NVICRoute
void DL_ESCSS_enableSync1NVICRoute(
ESCSS_Regs * escss
)
Enable routing of SYNC1 to the CPU NVIC.
Parameters:
escss Pointer to the register overlay for the peripheral
SYNC1_CONFIG writes require the write key, which this function supplies.
function DL_ESCSS_enableSync0DMATrigger
void DL_ESCSS_enableSync0DMATrigger(
ESCSS_Regs * escss
)
Enable SYNC0 as a DMA trigger.
Parameters:
escss Pointer to the register overlay for the peripheral
SYNC0_CONFIG writes require the write key, which this function supplies.
function DL_ESCSS_enableSync1DMATrigger
void DL_ESCSS_enableSync1DMATrigger(
ESCSS_Regs * escss
)
Enable SYNC1 as a DMA trigger.
Parameters:
escss Pointer to the register overlay for the peripheral
SYNC1_CONFIG writes require the write key, which this function supplies.
function DL_ESCSS_disableSync0NVICRoute
void DL_ESCSS_disableSync0NVICRoute(
ESCSS_Regs * escss
)
Disable routing of SYNC0 to the CPU NVIC.
Parameters:
escss Pointer to the register overlay for the peripheral
SYNC0_CONFIG writes require the write key, which this function supplies.
function DL_ESCSS_disableSync1NVICRoute
void DL_ESCSS_disableSync1NVICRoute(
ESCSS_Regs * escss
)
Disable routing of SYNC1 to the CPU NVIC.
Parameters:
escss Pointer to the register overlay for the peripheral
SYNC1_CONFIG writes require the write key, which this function supplies.
function DL_ESCSS_disableSync0DMATrigger
void DL_ESCSS_disableSync0DMATrigger(
ESCSS_Regs * escss
)
Disable SYNC0 as a DMA trigger.
Parameters:
escss Pointer to the register overlay for the peripheral
SYNC0_CONFIG writes require the write key, which this function supplies.
function DL_ESCSS_disableSync1DMATrigger
void DL_ESCSS_disableSync1DMATrigger(
ESCSS_Regs * escss
)
Disable SYNC1 as a DMA trigger.
Parameters:
escss Pointer to the register overlay for the peripheral
SYNC1_CONFIG writes require the write key, which this function supplies.
function DL_ESCSS_isSync0NVICRouteEnabled
__STATIC_INLINE bool DL_ESCSS_isSync0NVICRouteEnabled(
const ESCSS_Regs * escss
)
Check whether SYNC0 is routed to CPU NVIC.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: true if SYNC0 NVIC routing is enabled, false otherwise
function DL_ESCSS_isSync1NVICRouteEnabled
__STATIC_INLINE bool DL_ESCSS_isSync1NVICRouteEnabled(
const ESCSS_Regs * escss
)
Check whether SYNC1 is routed to CPU NVIC.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: true if SYNC1 NVIC routing is enabled, false otherwise
function DL_ESCSS_isSync0DMATriggerEnabled
__STATIC_INLINE bool DL_ESCSS_isSync0DMATriggerEnabled(
const ESCSS_Regs * escss
)
Check whether SYNC0 is enabled as a DMA trigger.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: true if SYNC0 DMA trigger is enabled, false otherwise
function DL_ESCSS_isSync1DMATriggerEnabled
__STATIC_INLINE bool DL_ESCSS_isSync1DMATriggerEnabled(
const ESCSS_Regs * escss
)
Check whether SYNC1 is enabled as a DMA trigger.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: true if SYNC1 DMA trigger is enabled, false otherwise
function DL_ESCSS_setTX0ShiftConfig
void DL_ESCSS_setTX0ShiftConfig(
ESCSS_Regs * escss,
uint32_t shiftConfig
)
Set TX shift configuration for MII Port 0.
Parameters:
escss Pointer to the register overlay for the peripheral
shiftConfig TX0 shift value (2-bit, range 0-3)
MISC_CONFIG is protected by the configuration lock: writes are ignored once DL_ESCSS_lockConfig has been called, until the next ECAT.XRSn reset. The function asserts if called while locked.
function DL_ESCSS_setTX1ShiftConfig
void DL_ESCSS_setTX1ShiftConfig(
ESCSS_Regs * escss,
uint32_t shiftConfig
)
Set TX shift configuration for MII Port 1.
Parameters:
escss Pointer to the register overlay for the peripheral
shiftConfig TX1 shift value (2-bit, range 0-3)
MISC_CONFIG is protected by the configuration lock: writes are ignored once DL_ESCSS_lockConfig has been called, until the next ECAT.XRSn reset. The function asserts if called while locked.
function DL_ESCSS_setEEPROMSize
void DL_ESCSS_setEEPROMSize(
ESCSS_Regs * escss,
DL_ESCSS_EEPROM_SIZE size
)
Set the EEPROM size bound.
Parameters:
escss Pointer to the register overlay for the peripheral
size EEPROM size bound. One of DL_ESCSS_EEPROM_SIZE.
MISC_CONFIG is protected by the configuration lock: writes are ignored once DL_ESCSS_lockConfig has been called, until the next ECAT.XRSn reset. The function asserts if called while locked.
function DL_ESCSS_setPHYAddress
void DL_ESCSS_setPHYAddress(
ESCSS_Regs * escss,
uint32_t phyAddr
)
Set the PHY address offset for MII management.
Parameters:
escss Pointer to the register overlay for the peripheral
phyAddr PHY address offset (5-bit, range 0-31)
MISC_CONFIG is protected by the configuration lock: writes are ignored once DL_ESCSS_lockConfig has been called, until the next ECAT.XRSn reset. The function asserts if called while locked.
function DL_ESCSS_getIPRevision
__STATIC_INLINE uint32_t DL_ESCSS_getIPRevision(
const ESCSS_Regs * escss
)
Read the ESCSS IP revision register.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: Masked IPREVNUM value. Major revision in bits[7:4], minor in bits[3:0].
function DL_ESCSS_readByte
__STATIC_INLINE uint8_t DL_ESCSS_readByte(
uint16_t address
)
Read a single byte from the ESC address space via PDI.
Parameters:
address ESC address space offset from ETHERCATA_BASE
Return: Byte value read from the ESC address space
Accesses the ESC address space (registers and DPRAM) through the PDI interface.
function DL_ESCSS_readWord
__STATIC_INLINE uint16_t DL_ESCSS_readWord(
uint16_t address
)
Read a 16-bit word from the ESC address space via PDI.
Parameters:
address ESC address space offset from ETHERCATA_BASE (must be 2-byte aligned)
Return: 16-bit word value read from the ESC address space
Accesses the ESC address space through the PDI interface (must be 2-byte aligned).
function DL_ESCSS_readDWord
__STATIC_INLINE uint32_t DL_ESCSS_readDWord(
uint16_t address
)
Read a 32-bit double-word from the ESC address space via PDI.
Parameters:
address ESC address space offset from ETHERCATA_BASE (must be 4-byte aligned)
Return: 32-bit double-word value read from the ESC address space
Accesses the ESC address space through the PDI interface (must be 4-byte aligned).
function DL_ESCSS_writeByte
__STATIC_INLINE void DL_ESCSS_writeByte(
uint8_t byteVal,
uint16_t address
)
Write a single byte to the ESC address space via PDI.
Parameters:
byteVal Byte value to write
address ESC address space offset from ETHERCATA_BASE
Accesses the ESC address space through the PDI interface.
function DL_ESCSS_writeWord
__STATIC_INLINE void DL_ESCSS_writeWord(
uint16_t wordVal,
uint16_t address
)
Write a 16-bit word to the ESC address space via PDI.
Parameters:
wordVal 16-bit word value to write
address ESC address space offset from ETHERCATA_BASE (must be 2-byte aligned)
Accesses the ESC address space through the PDI interface (must be 2-byte aligned).
function DL_ESCSS_writeDWord
__STATIC_INLINE void DL_ESCSS_writeDWord(
uint32_t dwordVal,
uint16_t address
)
Write a 32-bit double-word to the ESC address space via PDI.
Parameters:
dwordVal 32-bit double-word value to write
address ESC address space offset from ETHERCATA_BASE (must be 4-byte aligned)
Accesses the ESC address space through the PDI interface (must be 4-byte aligned).
function DL_ESCSS_setGPINIOSelect
void DL_ESCSS_setGPINIOSelect(
ESCSS_Regs * escss,
uint32_t pinMask,
bool enable
)
Configure which GPI pins connect to external IO pads.
Parameters:
escss Pointer to the register overlay for the peripheral
pinMask Bitmap of GPI pins to modify. Bitwise OR of [DL_ESCSS_GPIN_PIN]
enable true to connect the selected pins to IO pads, false to drive them from GPIN_DAT
Each bit in the mask selects whether the corresponding GPI pin connects to an external IO pad (1) or is driven by GPIN_DAT (0). Only the pins set in pinMask are modified. Bits outside DL_ESCSS_GPIN_PIN_ALL are ignored and remain 0, as required for unallocated GPI pads.
GPIN_SEL is protected by the configuration lock: writes are ignored once DL_ESCSS_lockConfig has been called, until the next ECAT.XRSn reset. The function asserts if called while locked.
function DL_ESCSS_getGPINIOSelect
__STATIC_INLINE uint32_t DL_ESCSS_getGPINIOSelect(
const ESCSS_Regs * escss
)
Read current GPI to IO pad selection.
Parameters:
escss Pointer to the register overlay for the peripheral
Return: Bitmap of GPI pins connected to IO pads (1) or driven by GPIN_DAT (0)
function DL_ESCSS_enableGPINIOPad
__STATIC_INLINE void DL_ESCSS_enableGPINIOPad(
ESCSS_Regs * escss,
uint32_t pinMask
)
Connect specific GPI pins to external IO pads.
Parameters:
escss Pointer to the register overlay for the peripheral
pinMask Bitmap of GPI pins to connect to IO pads. Bitwise OR of [DL_ESCSS_GPIN_PIN]
Sets the GPIN_SEL bits in pinMask; other pins are unchanged. Bits outside DL_ESCSS_GPIN_PIN_ALL are ignored.
GPIN_SEL is protected by the configuration lock: writes are ignored once DL_ESCSS_lockConfig has been called, until the next ECAT.XRSn reset. The function asserts if called while locked.
function DL_ESCSS_disableGPINIOPad
__STATIC_INLINE void DL_ESCSS_disableGPINIOPad(
ESCSS_Regs * escss,
uint32_t pinMask
)
Drive specific GPI pins from GPIN_DAT instead of IO pads.
Parameters:
escss Pointer to the register overlay for the peripheral
pinMask Bitmap of GPI pins to disconnect from IO pads. Bitwise OR of [DL_ESCSS_GPIN_PIN]
Clears the GPIN_SEL bits in pinMask; other pins are unchanged. Bits outside DL_ESCSS_GPIN_PIN_ALL are ignored.
GPIN_SEL is protected by the configuration lock: writes are ignored once DL_ESCSS_lockConfig has been called, until the next ECAT.XRSn reset. The function asserts if called while locked.
function DL_ESCSS_enableEcatInterrupts
void DL_ESCSS_enableEcatInterrupts(
void
)
Enable EtherCAT CPU interrupts.
Enables the following interrupt sources at the NVIC level:
ECAT_INTn_INT_IRQn (PDI IRQ)
ECAT_SYNC0_INT_IRQn (SYNC0 pulse)
ECAT_SYNC1_INT_IRQn (SYNC1 pulse)
Install handlers for these interrupts before calling this function. Pending requests are not cleared, so a request that is already pending is taken as soon as the interrupt is enabled.
ECAT_RST_INT_IRQn is not controlled by this API.
function DL_ESCSS_disableEcatInterrupts
void DL_ESCSS_disableEcatInterrupts(
void
)
Disable EtherCAT CPU interrupts.
Disables the following interrupt sources at the NVIC level:
ECAT_INTn_INT_IRQn (PDI IRQ)
ECAT_SYNC0_INT_IRQn (SYNC0 pulse)
ECAT_SYNC1_INT_IRQn (SYNC1 pulse)
ECAT_RST_INT_IRQn is not controlled by this API.
function DL_ESCSS_setEcatClock
void DL_ESCSS_setEcatClock(
bool enablePhyClk,
bool enableEcat100Clk,
DL_SYSCTL_ETHERCAT_CLK_DIV divider
)
Configure EtherCAT clock sources and divider.
Parameters:
enablePhyClk true to enable the EtherCAT PHY clock, false to disable it
enableEcat100Clk true to enable the 100 MHz EtherCAT core clock, false to disable it
divider EtherCAT clock divider. One of DL_SYSCTL_ETHERCAT_CLK_DIV
Enables or disables the two EtherCAT-specific clock enables and sets the EtherCAT clock divider in a single call.
The PHY clock gates the 25 MHz MII PHY reference clock.
The 100 MHz clock gates the EtherCAT core clock derived from MCLK.
The divider sets how MCLK is divided to produce the EtherCAT core clock; use DL_SYSCTL_ETHERCAT_CLK_DIV_2 when MCLK is 200 MHz to obtain the required 100 MHz.
All three settings are applied in a single function to ensure they are always configured together and to reduce the chance of partially enabled clock states.
Macros Documentation
define DL_ESCSS_INTERRUPT_SYNC0
#define DL_ESCSS_INTERRUPT_SYNC0 (ESCSS_INTR_MASK_SYNC0_MASK_MASK)
ESCSS SYNC0 interrupt.
define DL_ESCSS_INTERRUPT_SYNC1
#define DL_ESCSS_INTERRUPT_SYNC1 (ESCSS_INTR_MASK_SYNC1_MASK_MASK)
ESCSS SYNC1 interrupt.
define DL_ESCSS_INTERRUPT_PDI_IRQ
#define DL_ESCSS_INTERRUPT_PDI_IRQ (ESCSS_INTR_MASK_IRQ_MASK_MASK)
ESCSS PDI/AL IRQ interrupt.
define DL_ESCSS_INTERRUPT_DMA_DONE
#define DL_ESCSS_INTERRUPT_DMA_DONE (ESCSS_INTR_MASK_DMA_DONE_MASK_MASK)
ESCSS DMA transfer complete interrupt.
define DL_ESCSS_INTERRUPT_TIMEOUT_ERR
#define DL_ESCSS_INTERRUPT_TIMEOUT_ERR (ESCSS_INTR_MASK_TIMEOUT_ERR_MASK_MASK)
ESCSS PDI bus timeout error interrupt.
define DL_ESCSS_INTERRUPT_MASTER_RESET
#define DL_ESCSS_INTERRUPT_MASTER_RESET (ESCSS_INTR_MASK_MASTER_RESET_MASK_MASK)
ESCSS EtherCAT master reset interrupt.
define DL_ESCSS_INTERRUPT_ALL
#define DL_ESCSS_INTERRUPT_ALL (DL_ESCSS_INTERRUPT_SYNC0 | DL_ESCSS_INTERRUPT_SYNC1 | DL_ESCSS_INTERRUPT_PDI_IRQ | DL_ESCSS_INTERRUPT_DMA_DONE | \
DL_ESCSS_INTERRUPT_TIMEOUT_ERR | DL_ESCSS_INTERRUPT_MASTER_RESET)
Bitmask of all ESCSS interrupt sources.
define DL_ESCSS_RESET_DEST_CPU_RESET
#define DL_ESCSS_RESET_DEST_CPU_RESET (ESCSS_RESET_DEST_CONFIG_CPU_RESET_EN_MASK)
Route EtherCAT ResetOut to CPU reset.
define DL_ESCSS_RESET_DEST_CPU_NMI
#define DL_ESCSS_RESET_DEST_CPU_NMI (ESCSS_RESET_DEST_CONFIG_CPU_NMI_EN_MASK)
Route EtherCAT ResetOut to CPU NMI.
define DL_ESCSS_RESET_DEST_CPU_INT
#define DL_ESCSS_RESET_DEST_CPU_INT (ESCSS_RESET_DEST_CONFIG_CPU_INT_EN_MASK)
Route EtherCAT ResetOut to CPU interrupt.
define DL_ESCSS_RESET_DEST_DEVICE_RESET
#define DL_ESCSS_RESET_DEST_DEVICE_RESET (ESCSS_RESET_DEST_CONFIG_DEVICE_RESET_EN_MASK)
Route EtherCAT ResetOut to device reset.
define DL_ESCSS_GPIN_PIN_0
#define DL_ESCSS_GPIN_PIN_0 ((uint32_t)0x00000001U)
GPI pin 0 bitmask.
define DL_ESCSS_GPIN_PIN_1
#define DL_ESCSS_GPIN_PIN_1 ((uint32_t)0x00000002U)
GPI pin 1 bitmask.
define DL_ESCSS_GPIN_PIN_2
#define DL_ESCSS_GPIN_PIN_2 ((uint32_t)0x00000004U)
GPI pin 2 bitmask.
define DL_ESCSS_GPIN_PIN_3
#define DL_ESCSS_GPIN_PIN_3 ((uint32_t)0x00000008U)
GPI pin 3 bitmask.
define DL_ESCSS_GPIN_PIN_ALL
#define DL_ESCSS_GPIN_PIN_ALL (DL_ESCSS_GPIN_PIN_0 | DL_ESCSS_GPIN_PIN_1 | DL_ESCSS_GPIN_PIN_2 | DL_ESCSS_GPIN_PIN_3)
Bitmask of all GPI pins allocated on this device.
define DL_ESCSS_GPOUT_PIN_0
#define DL_ESCSS_GPOUT_PIN_0 ((uint32_t)0x00000001U)
GPO pin 0 bitmask.
define DL_ESCSS_GPOUT_PIN_1
#define DL_ESCSS_GPOUT_PIN_1 ((uint32_t)0x00000002U)
GPO pin 1 bitmask.
define DL_ESCSS_GPOUT_PIN_2
#define DL_ESCSS_GPOUT_PIN_2 ((uint32_t)0x00000004U)
GPO pin 2 bitmask.
define DL_ESCSS_GPOUT_PIN_3
#define DL_ESCSS_GPOUT_PIN_3 ((uint32_t)0x00000008U)
GPO pin 3 bitmask.
define DL_ESCSS_GPOUT_PIN_ALL
#define DL_ESCSS_GPOUT_PIN_ALL (DL_ESCSS_GPOUT_PIN_0 | DL_ESCSS_GPOUT_PIN_1 | DL_ESCSS_GPOUT_PIN_2 | DL_ESCSS_GPOUT_PIN_3)
Bitmask of all GPO pins allocated on this device.
define DL_ESCSS_WRITE_KEY_UNLOCK
#define DL_ESCSS_WRITE_KEY_UNLOCK ((uint32_t)0x0000A500U)
Write-key value written to bits[15:8] of all write-key-protected registers (key value 0xA5)
define DL_ESCSS_CONFIG_LOCK_LOCK_ENABLE_SET
#define DL_ESCSS_CONFIG_LOCK_LOCK_ENABLE_SET (ESCSS_CONFIG_LOCK_LOCK_ENABLE_MASK)
Set value for LOCK_ENABLE field in CONFIG_LOCK register.
define DL_ESCSS_CONFIG_LOCK_IO_CONFIG_ENABLE_SET
#define DL_ESCSS_CONFIG_LOCK_IO_CONFIG_ENABLE_SET (ESCSS_CONFIG_LOCK_IO_CONFIG_ENABLE_MASK)
Set value for IO_CONFIG_ENABLE field in CONFIG_LOCK register.
define DL_ESCSS_MISC_IO_CONFIG_EEPROM_I2C_IO_EN_SET
#define DL_ESCSS_MISC_IO_CONFIG_EEPROM_I2C_IO_EN_SET (ESCSS_MISC_IO_CONFIG_EEPROM_I2C_IO_EN_MASK)
Set value to connect EEPROM I2C to I/O pads (MISC_IO_CONFIG)
define DL_ESCSS_PHY_IO_CONFIG_TX_CLK_AUTO_COMP_SET
#define DL_ESCSS_PHY_IO_CONFIG_TX_CLK_AUTO_COMP_SET (ESCSS_PHY_IO_CONFIG_TX_CLK_AUTO_COMP_MASK)
Set value to enable TX_CLK I/O pad auto-compensation (PHY_IO_CONFIG)
define DL_ESCSS_ACCESS_CTRL_EN_TIMEOUT_SET
#define DL_ESCSS_ACCESS_CTRL_EN_TIMEOUT_SET (ESCSS_ACCESS_CTRL_EN_TIMEOUT_MASK)
Set value to enable PDI bus timeout detection (ACCESS_CTRL)
define DL_ESCSS_ACCESS_CTRL_EN_TIMEOUT_CLR
#define DL_ESCSS_ACCESS_CTRL_EN_TIMEOUT_CLR (0U)
Clear value to disable PDI bus timeout detection (ACCESS_CTRL)
define DL_ESCSS_ACCESS_CTRL_ENABLE_DEBUG_ACCESS_SET
#define DL_ESCSS_ACCESS_CTRL_ENABLE_DEBUG_ACCESS_SET (ESCSS_ACCESS_CTRL_ENABLE_DEBUG_ACCESS_MASK)
Set value to enable ESC debug register access via PDI (ACCESS_CTRL)
define DL_ESCSS_ACCESS_CTRL_ENABLE_DEBUG_ACCESS_CLR
#define DL_ESCSS_ACCESS_CTRL_ENABLE_DEBUG_ACCESS_CLR (0U)
Clear value to disable ESC debug register access via PDI (ACCESS_CTRL)
define DL_ESCSS_MEM_TEST_MEM_INIT_DONE_SET
#define DL_ESCSS_MEM_TEST_MEM_INIT_DONE_SET (ESCSS_MEM_TEST_MEM_INIT_DONE_MASK)
Set value indicating ESC memory initialization is complete (MEM_TEST)
define DL_ESCSS_MEM_TEST_INITIATE_MEM_INIT_START
#define DL_ESCSS_MEM_TEST_INITIATE_MEM_INIT_START (ESCSS_MEM_TEST_INITIATE_MEM_INIT_MASK)
Write value to start ESC internal memory initialization (MEM_TEST)
define DL_ESCSS_ESC_DL_STATUS_OFFSET
#define DL_ESCSS_ESC_DL_STATUS_OFFSET ((uint32_t)0x0110U)
Beckhoff ESC ESC_DL_STATUS register offset (EEPROM load complete indicator)
define DL_ESCSS_EEPROM_LOAD_COMPLETE_MASK
#define DL_ESCSS_EEPROM_LOAD_COMPLETE_MASK ((uint32_t)0x0001U)
Beckhoff ESC EEPROM load complete bit mask (ESC_DL_STATUS[0])
define DL_ESCSS_CONFIG_REGS_OFFSET
#define DL_ESCSS_CONFIG_REGS_OFFSET ((uint32_t)0x200U)
ESCSS_CONFIG registers offset from ESCSS base (relative to ESCSS_Regs)
define DL_ESCSS_PDRAM_SIZE_BYTES
#define DL_ESCSS_PDRAM_SIZE_BYTES ((uint32_t)16384U)
Size of the ESC process data RAM in bytes.
define DL_ESCSS_PDI_ADDR_SPACE_SIZE_BYTES
#define DL_ESCSS_PDI_ADDR_SPACE_SIZE_BYTES ((uint32_t)20480U)
Size of the ESC PDI address space in bytes (registers + process data RAM)
define DL_ESCSS_WAIT_STATES_MAX
#define DL_ESCSS_WAIT_STATES_MAX (ESCSS_ACCESS_CTRL_WAIT_STATES_MASK >> ESCSS_ACCESS_CTRL_WAIT_STATES_OFS)
Maximum PDI bus wait state count (ACCESS_CTRL WAIT_STATES)
define DL_ESCSS_SYNC0_CONFIG_CPUX_INT_EN_SET
#define DL_ESCSS_SYNC0_CONFIG_CPUX_INT_EN_SET (ESCSS_SYNC0_CONFIG_CPUX_INT_EN_MASK)
Set value to route SYNC0 to CPU interrupt (SYNC0_CONFIG CPUX_INT_EN)
define DL_ESCSS_SYNC0_CONFIG_DMAX_TRIG_EN_SET
#define DL_ESCSS_SYNC0_CONFIG_DMAX_TRIG_EN_SET (ESCSS_SYNC0_CONFIG_DMAX_TRIG_EN_MASK)
Set value to route SYNC0 to DMA trigger (SYNC0_CONFIG DMAX_TRIG_EN)
define DL_ESCSS_SYNC1_CONFIG_CPUX_INT_EN_SET
#define DL_ESCSS_SYNC1_CONFIG_CPUX_INT_EN_SET (ESCSS_SYNC1_CONFIG_CPUX_INT_EN_MASK)
Set value to route SYNC1 to CPU interrupt (SYNC1_CONFIG CPUX_INT_EN)
define DL_ESCSS_SYNC1_CONFIG_DMAX_TRIG_EN_SET
#define DL_ESCSS_SYNC1_CONFIG_DMAX_TRIG_EN_SET (ESCSS_SYNC1_CONFIG_DMAX_TRIG_EN_MASK)
Set value to route SYNC1 to DMA trigger (SYNC1_CONFIG DMAX_TRIG_EN)
define DL_ESCSS_GPIN_GRP_CAP_TRIGGER_TYPE_COUNT
#define DL_ESCSS_GPIN_GRP_CAP_TRIGGER_TYPE_COUNT ((uint32_t)DL_ESCSS_GPIN_GRP_CAP_TRIGGER_EOF + 1U)
Number of GPIN group capture trigger options.
define DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_TYPE_COUNT
#define DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_TYPE_COUNT ((uint32_t)DL_ESCSS_GPOUT_GRP_CAP_TRIGGER_LATCH0 + 1U)
Number of GPOUT group capture trigger options.
define DL_ESCSS_GPIN_GRP_CAP_GROUP_TYPE_COUNT
#define DL_ESCSS_GPIN_GRP_CAP_GROUP_TYPE_COUNT ((uint32_t)DL_ESCSS_GPIN_GRP_CAP_GROUP_3 + 1U)
Number of GPI group capture group options.
define DL_ESCSS_GPOUT_GRP_CAP_GROUP_TYPE_COUNT
#define DL_ESCSS_GPOUT_GRP_CAP_GROUP_TYPE_COUNT ((uint32_t)DL_ESCSS_GPOUT_GRP_CAP_GROUP_3 + 1U)
Number of GPO group capture group options.
define DL_ESCSS_LATCH_SOURCE_TYPE_COUNT
#define DL_ESCSS_LATCH_SOURCE_TYPE_COUNT ((uint32_t)DL_ESCSS_LATCH_SOURCE_PWMXBAR_8 + 1U)
Number of LATCH source options.
define DL_ESCSS_EEPROM_SIZE_TYPE_COUNT
#define DL_ESCSS_EEPROM_SIZE_TYPE_COUNT ((uint32_t)DL_ESCSS_EEPROM_SIZE_16K_OR_GREATER + 1U)
Number of EEPROM size options.
define DL_ESCSS_PHY_PORT_COUNT_TYPE_COUNT
#define DL_ESCSS_PHY_PORT_COUNT_TYPE_COUNT ((uint32_t)DL_ESCSS_PHY_PORT_COUNT_TWO + 1U)
Number of PHY port count options.