Keapigpiosetlevel, Watchdog, Keapiwatchdogenable – Kontron KEAPI User Manual

Page 35: Keapiwatchdogtrigger, 17 watchdog, 6 keapigpiosetlevel, 1 keapiwatchdogenable, 2 keapiwatchdogtrigger

Advertising
background image

Software specification for Kontron EAPI

35

in

gpioNr

Number of an input GPIO. From 0 to (GpioCount - 1) returned
by KEApiGpioGetCount.

out

pLevel

Pointer to a variable where the GPIO level (0

– low, 1- high)

is saved

2.16.6 KEApiGpioSetLevel

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGpioSetLevel (

KEAPI_UINT32

boardHandle,

KEAPI_UINT32

gpioNr,

KEAPI_UCHAR

level

);

Description:

Function for setting level of selected GPIO pin.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board.

in

gpioNr

Number of an output GPIO. From 0 to (GpioCount - 1)
returned by KEApiGpioGetCount.

in

level

Level to be set (0 - low, 1 - high)

2.17 Watchdog

2.17.1 KEApiWatchdogEnable

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiWatchdogEnable (

KEAPI_UINT32

boardHandle,

KEAPI_INT32

timeout

);

Description:

Enables the watchdog.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board

in

timeout

Watchdog timeout interval in milliseconds

2.17.2 KEApiWatchdogTrigger

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiWatchdogTrigger (

KEAPI_UINT32

boardHandle

);

Description:

Triggers the WatchDog timer.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board

Advertising