Keapigpiogetdirection, Keapigpiosetdirection, Keapigpiogetlevel – Kontron KEAPI User Manual

Page 34: 3 keapigpiogetdirection, 4 keapigpiosetdirection, 5 keapigpiogetlevel

Advertising
background image

Software specification for Kontron EAPI

34

by KEApiGpioGetCount.

out

pIsInput

If TRUE then pin can be input

out

pIsOutput

If TRUE then pin can be output

2.16.3 KEApiGpioGetDirection

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGpioGetDirection (

KEAPI_UINT32

boardHandle,

KEAPI_UINT32

gpioNr,

KEAPI_PUCHAR

pDirection

);

Description:

Function for getting current direction of selected GPIO pin.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board.

in

gpioNr

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

out

pDirection

Pointer to a variable where the GPIO direction (0

– in, 1- out)

is saved

2.16.4 KEApiGpioSetDirection

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGpioSetDirection (

KEAPI_UINT32

boardHandle,

KEAPI_UINT32

gpioNr,

KEAPI_UCHAR

direction

);

Description:

Function for setting direction of selected GPIO pin.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board.

in

gpioNr

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

in

direction

GPIO direction to set (0

– in, 1- out)

2.16.5 KEApiGpioGetLevel

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGpioGetLevel (

KEAPI_UINT32

boardHandle,

KEAPI_UINT32

gpioNr,

KEAPI_PUCHAR

pLevel

);

Description:

Function for getting level of selected GPIO pin.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board.

Advertising