1 generic, Generic – BECKHOFF ET9300 User Manual

Page 19

Advertising
background image

Application Note ET9300

17

5.2.1

Generic

Prototype:

UINT16 HW_Init(void)

Parameter

void

Return

0 if initialization was successful
> 0 if error has occurred while initialization

Description

Initializes the host controller, process data interface (PDI) and allocates
resources which are required for hardware access.

Prototype:

void HW_Release(void)

Parameter

void

Return

void

Description

Release allocated resources.

Prototype:

UINT16 HW_GetALEventRegister(void)

Parameter

void

Return

Content of register 0x220-0x221

Description

Get the first two bytes of the AL Event register (0x220-0x221).

Prototype:

UINT16 HW_GetALEventRegister_Isr(void)

Parameter

void

Return

Content of register 0x220-0x221

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_GetALEventRegister.
Get the first two bytes of the AL Event register (0x220-0x221).

Prototype:

void HW_ResetALEventMask(UINT16 intMask)

Parameter

“intMask”

Interrupt mask (disabled interrupt shall be zero)

Return

void

Description

Performs a logical AND with the AL Event Mask register (0x0204 : 0x0205).
This function is only required if “AL_EVENT_ENABLED” is set.

NOTE

: This function is only required for SSC 5.10 or older.

Advertising