Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_GPIO_DEVICE Struct Reference

#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_PINpins
 Device pins.
GPIO_PROPERTIES properties
 Device properties.
uint32_t getcount
uint32_t setcount
uint32_t waitcount
uint32_t eventcount
GPIO_DEVICEprev
 Previous entry in GPIO table.
GPIO_DEVICEnext
 Next entry in GPIO table.

Field Documentation

◆ device

DEVICE device

The Device entry for this GPIO.

◆ gpioid

uint32_t gpioid

Unique Id of this GPIO in the GPIO table.

◆ gpiostate

uint32_t gpiostate

GPIO state (eg GPIO_STATE_ENABLED).

◆ devicestart

A Device specific DeviceStart method implementing the standard GPIO device interface (Mandatory).

◆ devicestop

A Device specific DeviceStop method implementing the standard GPIO device interface (Mandatory).

◆ deviceread

A Device specific DeviceRead method implementing the standard GPIO device interface (Or nil if the default method is suitable).

◆ devicewrite

A Device specific DeviceWrite method implementing the standard GPIO device interface (Or nil if the default method is suitable).

◆ deviceinputget

A Device specific DeviceInputGet method implementing the standard GPIO device interface (Mandatory).

◆ deviceinputwait

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).

◆ deviceinputevent

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).

◆ deviceinputcancel

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).

◆ deviceoutputset

gpio_device_output_set_proc deviceoutputset

A Device specific DeviceOutputSet method implementing the standard GPIO device interface (Mandatory).

◆ devicepullget

A Device specific DevicePullGet method implementing the standard GPIO device interface (Or nil if the operation is not supported).

◆ devicepullselect

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).

◆ devicefunctionget

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).

◆ devicefunctionselect

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).

◆ devicegetproperties

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).

◆ lock

Device lock.

◆ address

void* address

Device register base address.

◆ pins

GPIO_PIN* pins

Device pins.

◆ properties

GPIO_PROPERTIES properties

Device properties.

◆ getcount

uint32_t getcount

◆ setcount

uint32_t setcount

◆ waitcount

uint32_t waitcount

◆ eventcount

uint32_t eventcount

◆ prev

GPIO_DEVICE* prev

Previous entry in GPIO table.

◆ next

GPIO_DEVICE* next

Next entry in GPIO table.


The documentation for this struct was generated from the following file: