3 write access, Write access – BECKHOFF ET9300 User Manual

Page 25

Advertising
background image

Application Note ET9300

23

5.2.3

Write Access

Prototype:

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

Parameter

“pData”

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

Writes from the EtherCAT Slave Controller. This function is used to access
ESC registers and the DPRAM area.

Prototype:

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

Parameter

“pData”

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

Prototype:

void HW_EscWriteDWord(UINT32 DWordValue, UINT16 Address)

Parameter

“DWordValue”

Local 32Bit variable which contains the data to be written to
the ESC memory area.

“Address”

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

Return

void

Description

Writes one word to the EtherCAT Slave Controller.

Advertising