2 read access, Read access – BECKHOFF ET9300 User Manual

Page 22

Advertising
background image

20

Application Note ET9300

5.2.2

Read Access

Prototype:

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

Parameter

“pData”

Pointer to local destination 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 from the EtherCAT Slave Controller. This function is used to access
ESC registers and the DPRAM area.

Prototype:

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

Parameter

“pData”

Pointer to local destination 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

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_EscRead”.
Reads from the EtherCAT Slave Controller. This function is used to access
ESC registers and the DPRAM area.

Prototype:

void HW_EscReadDWord(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

Reads two words from the specified address of the EtherCAT Slave Controller.

Advertising