BECKHOFF ET9300 User Manual

Page 23

Advertising
background image

Application Note ET9300

21

Prototype:

void HW_EscReadDWordIsr(UINT32 DWordValue, UINT16 Address)

Parameter

“DWordValue”

Local 32Bit variable where the register value shall be stored.

“Address”

EtherCAT Slave Controller address. Specifies the offset within
the ESC memory area in Bytes. Only valid 32Bit addresses
are used.

Return

void

Description

This function should be implemented if a special function for ESC access from
interrupt service routines is required; otherwise this function is defined as
“HW_EscReadWord”.
Reads two words from the specified address of the EtherCAT Slave Controller.

Prototype:

void HW_EscReadWord(UINT16 WordValue, UINT16 Address)

Parameter

“WordValue”

Local 16Bit variable where the register value shall be stored.

“Address”

EtherCAT Slave Controller address. Specifies the offset within
the ESC memory area in Bytes. Only valid 16Bit addresses
are used.

Return

void

Description

Reads one word from the specified address of the EtherCAT Slave Controller.
Only required if “ESC_32BIT_ACCESS” is not set.

Prototype:

void HW_EscReadWordIsr(UINT16 WordValue, UINT16 Address)

Parameter

“WordValue”

Local 16Bit variable where the register value shall be stored.

“Address”

EtherCAT Slave Controller address. Specifies the offset within
the ESC memory area in Bytes. Only valid 16Bit addresses
are used.

Return

void

Description

This function should be implemented if a special function for ESC access from
interrupt service routines is required; otherwise this function is defined as
“HW_EscReadWord”.
Reads one word from the specified address of the EtherCAT Slave Controller.
Only required if “ESC_32_BIT_ACCESS” is not set.

Advertising