
Software specification for Kontron EAPI
34
If TRUE then pin can be input
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:
Handle of the selected board.
Number of an input GPIO. From 0 to (GpioCount - 1) returned
by KEApiGpioGetCount.
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:
Handle of the selected board.
Number of an input GPIO. From 0 to (GpioCount - 1) returned
by KEApiGpioGetCount.
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:
Handle of the selected board.
Comentarios a estos manuales