![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <gpio.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this GPIO. | |
| uint32_t | gpioid |
| Unique Id of this GPIO in the GPIO table. | |
| uint32_t | gpiostate |
| GPIO state (eg GPIO_STATE_ENABLED). | |
| gpio_device_start_proc | devicestart |
| A Device specific DeviceStart method implementing the standard GPIO device interface (Mandatory). | |
| gpio_device_stop_proc | devicestop |
| A Device specific DeviceStop method implementing the standard GPIO device interface (Mandatory). | |
| gpio_device_read_proc | deviceread |
| A Device specific DeviceRead method implementing the standard GPIO device interface (Or nil if the default method is suitable). | |
| gpio_device_write_proc | devicewrite |
| A Device specific DeviceWrite method implementing the standard GPIO device interface (Or nil if the default method is suitable). | |
| gpio_device_input_get_proc | deviceinputget |
| A Device specific DeviceInputGet method implementing the standard GPIO device interface (Mandatory). | |
| gpio_device_input_wait_proc | deviceinputwait |
| A Device specific DeviceInputWait method implementing the standard GPIO device interface (Or nil if the operation is not supported). | |
| gpio_device_input_event_proc | deviceinputevent |
| A Device specific DeviceInputEvent method implementing the standard GPIO device interface (Or nil if the operation is not supported). | |
| gpio_device_input_cancel_proc | deviceinputcancel |
| A Device specific DeviceInputCancel method implementing the standard GPIO device interface (Or nil if the operation is not supported). | |
| gpio_device_output_set_proc | deviceoutputset |
| A Device specific DeviceOutputSet method implementing the standard GPIO device interface (Mandatory). | |
| gpio_device_pull_get_proc | devicepullget |
| A Device specific DevicePullGet method implementing the standard GPIO device interface (Or nil if the operation is not supported). | |
| gpio_device_pull_select_proc | devicepullselect |
| A Device specific DevicePullSelect method implementing the standard GPIO device interface (Or nil if the operation is not supported). | |
| gpio_device_function_get_proc | devicefunctionget |
| A Device specific DeviceFunctionGet method implementing the standard GPIO device interface (Or nil if the operation is not supported). | |
| gpio_device_function_select_proc | devicefunctionselect |
| A Device specific DeviceFunctionSelect method implementing the standard GPIO device interface (Or nil if the operation is not supported). | |
| gpio_device_get_properties_proc | devicegetproperties |
| A Device specific DeviceGetProperties method implementing the standard GPIO device interface (Or nil if the default method is suitable). | |
| MUTEX_HANDLE | lock |
| Device lock. | |
| void * | address |
| Device register base address. | |
| GPIO_PIN * | pins |
| Device pins. | |
| GPIO_PROPERTIES | properties |
| Device properties. | |
| uint32_t | getcount |
| uint32_t | setcount |
| uint32_t | waitcount |
| uint32_t | eventcount |
| GPIO_DEVICE * | prev |
| Previous entry in GPIO table. | |
| GPIO_DEVICE * | next |
| Next entry in GPIO table. | |
| DEVICE device |
The Device entry for this GPIO.
| uint32_t gpioid |
Unique Id of this GPIO in the GPIO table.
| uint32_t gpiostate |
GPIO state (eg GPIO_STATE_ENABLED).
| gpio_device_start_proc devicestart |
A Device specific DeviceStart method implementing the standard GPIO device interface (Mandatory).
| gpio_device_stop_proc devicestop |
A Device specific DeviceStop method implementing the standard GPIO device interface (Mandatory).
| gpio_device_read_proc deviceread |
A Device specific DeviceRead method implementing the standard GPIO device interface (Or nil if the default method is suitable).
| gpio_device_write_proc devicewrite |
A Device specific DeviceWrite method implementing the standard GPIO device interface (Or nil if the default method is suitable).
| gpio_device_input_get_proc deviceinputget |
A Device specific DeviceInputGet method implementing the standard GPIO device interface (Mandatory).
| gpio_device_input_wait_proc deviceinputwait |
A Device specific DeviceInputWait method implementing the standard GPIO device interface (Or nil if the operation is not supported).
| gpio_device_input_event_proc deviceinputevent |
A Device specific DeviceInputEvent method implementing the standard GPIO device interface (Or nil if the operation is not supported).
| gpio_device_input_cancel_proc deviceinputcancel |
A Device specific DeviceInputCancel method implementing the standard GPIO device interface (Or nil if the operation is not supported).
| gpio_device_output_set_proc deviceoutputset |
A Device specific DeviceOutputSet method implementing the standard GPIO device interface (Mandatory).
| gpio_device_pull_get_proc devicepullget |
A Device specific DevicePullGet method implementing the standard GPIO device interface (Or nil if the operation is not supported).
| gpio_device_pull_select_proc devicepullselect |
A Device specific DevicePullSelect method implementing the standard GPIO device interface (Or nil if the operation is not supported).
| gpio_device_function_get_proc devicefunctionget |
A Device specific DeviceFunctionGet method implementing the standard GPIO device interface (Or nil if the operation is not supported).
| gpio_device_function_select_proc devicefunctionselect |
A Device specific DeviceFunctionSelect method implementing the standard GPIO device interface (Or nil if the operation is not supported).
| gpio_device_get_properties_proc devicegetproperties |
A Device specific DeviceGetProperties method implementing the standard GPIO device interface (Or nil if the default method is suitable).
| MUTEX_HANDLE lock |
Device lock.
| void* address |
Device register base address.
| GPIO_PIN* pins |
Device pins.
| GPIO_PROPERTIES properties |
Device properties.
| uint32_t getcount |
| uint32_t setcount |
| uint32_t waitcount |
| uint32_t eventcount |
| GPIO_DEVICE* prev |
Previous entry in GPIO table.
| GPIO_DEVICE* next |
Next entry in GPIO table.