BT_RegisterGpioController()

Kernel Mode API

This API is only available in kernel-mode code. It is used to register a GPIO driver implementation.

Registers a GPIO driver with the GPIO sub-system via a driver generated BT_HANDLE.

Parameters

Parameter Description

ulBaseGPIO

GPIO base number, from which this GPIO controller will respond to. I.e. for the driver this is GPIO.0.

ulTotalGPIOs

The total number of GPIO lines that this driver instance will manage.

hGPIO

The GPIO driver/controller handle, and generated in the driver's probe function.

Returns

BT_ERR_NONE on success.

Further Reading

The full API is defined under:

os/include/gpio/bt_gpio.h

See the implementation under:

os/src/gpio/bt_gpio.c

See the driver interface under:

os/include/interfaces/bt_dev_if_gpio.h

Back
Next