BECKHOFF ET9300 User Manual

Page 24

Advertising
background image

22

Application Note ET9300

Prototype:

void HW_EscReadByte(UINT8 ByteValue, UINT16 Address)

Parameter

“ByteValue”

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

“Address”

EtherCAT Slave Controller address. Specifies the offset within
the ESC memory area in Bytes.

Return

void

Description

Reads one byte from the EtherCAT Slave Controller.
Only required if “ESC_16BIT_ACCESS” and “ESC_32BIT_ACCESS” are not
set.

Prototype:

void HW_EscReadByteIsr(UINT8 ByteValue, UINT16 Address)

Parameter

“ByteValue”

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

“Address”

EtherCAT Slave Controller address. Specifies the offset within
the ESC memory area in Bytes.

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_EscReadByte”.
Reads one byte from the EtherCAT Slave Controller.
Only required if “ESC_16BIT_ACCESS” and “ESC_32BIT_ACCESS” are not
set.

Prototype:

void HW_EscReadMbxMem(MEM_ADDR *pData, UINT16 Address,
UINT16 Len )

Parameter

“pData”

Pointer to local destination mailbox buffer. Type of the pointer
depends on the host controller architecture (specified in
ecat_def.h or the SSC Tool).

“Address”

EtherCAT Slave Controller address. Specifies the offset within
the ESC memory area in Bytes. Only valid addresses are
used depending on 8Bit/16Bit or 32 Bit ESC access (specified
in ecat_def.h or the SSC Tool).

“Len”

Access size in Bytes

Return

void

Description

Reads data from the ESC and copies to slave mailbox memory. If the local
mailbox memory is also located in the application memory this function is equal
to “HW_EscRead”.

Advertising