BT_GpioGet()

Gets the current state of the specified GPIO.

Notes

This function will always succeed when given a valid GPIO number. The provided pError value can be optionally provided and checked.

Parameters

Parameter Description

ulGPIO

GPIO number of the GPIO line to be tested.

pError

Pointer to a BT_ERROR variable. Can be NULL.

Returns

BT_TRUE or BT_FALSE. On error, BT_FALSE will be returned, and the BT_ERROR code can be tested from the optionally provided pError variable.

Further Reading

The full API is defined under:

os/include/gpio/bt_gpio.h

See the implementation under: os/src/gpio/bt_gpio.c

Back