![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <devices.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this Timer device. | |
| uint32_t | timerid |
| Unique Id of this Timer device in the Timer device table. | |
| uint32_t | timerstate |
| Timer device state (eg TIMER_STATE_ENABLED). | |
| timer_device_start_proc | devicestart |
| A device specific DeviceStart method implementing a standard timer device interface (Mandatory). | |
| timer_device_stop_proc | devicestop |
| A device specific DeviceStop method implementing a standard timer device interface (Mandatory). | |
| timer_device_read_proc | deviceread |
| A device specific DeviceRead method implementing a standard timer device interface (One of Read or Read64 is Mandatory). | |
| timer_device_read64_proc | deviceread64 |
| A device specific DeviceRead64 method implementing a standard timer device interface (One of Read or Read64 is Mandatory. | |
| timer_device_wait_proc | devicewait |
| A device specific DeviceWait method implementing a standard timer device interface (Or nil if the operation is not supported). | |
| timer_device_event_proc | deviceevent |
| A device specific DeviceEvent method implementing a standard timer device interface (Or nil if the operation is not supported). | |
| timer_device_cancel_proc | devicecancel |
| A device specific DeviceCancel method implementing a standard timer device interface (Or nil if the operation is not supported). | |
| timer_device_get_rate_proc | devicegetrate |
| A device specific DeviceGetRate method implementing a standard timer device interface (Or nil if the default method is suitable). | |
| timer_device_set_rate_proc | devicesetrate |
| A device specific DeviceSetRate method implementing a standard timer device interface (Or nil if the default method is suitable). | |
| timer_device_get_interval_proc | devicegetinterval |
| A device specific DeviceGetInterval method implementing a standard timer device interface (Or nil if the default method is suitable). | |
| timer_device_set_interval_proc | devicesetinterval |
| A device specific DeviceSetInterval method implementing a standard timer device interface (Or nil if the default method is suitable). | |
| timer_device_get_properties_proc | devicegetproperties |
| A device specific DeviceGetProperties method implementing a standard timer device interface (Or nil if the default method is suitable). | |
| uint32_t | readcount |
| uint32_t | waitcount |
| uint32_t | eventcount |
| MUTEX_HANDLE | lock |
| Device lock. | |
| void * | address |
| Device register base address. | |
| uint32_t | rate |
| Device rate (Hz). | |
| uint32_t | interval |
| Device interval (Ticks). | |
| TIMER_PROPERTIES | properties |
| Device properties. | |
| uint32_t | flags |
| Event flags for this timer (eg TIMER_EVENT_FLAG_REPEAT). | |
| uint32_t | count |
| Count of threads and events waiting for this timer. | |
| EVENT_HANDLE | event |
| Event for threads waiting for this timer. | |
| TIMER_WAITER * | waiters |
| List of events waiting for this timer. | |
| TIMER_DEVICE * | prev |
| Previous entry in Timer device table. | |
| TIMER_DEVICE * | next |
| Next entry in Timer device table. | |
| DEVICE device |
The Device entry for this Timer device.
| uint32_t timerid |
Unique Id of this Timer device in the Timer device table.
| uint32_t timerstate |
Timer device state (eg TIMER_STATE_ENABLED).
| timer_device_start_proc devicestart |
A device specific DeviceStart method implementing a standard timer device interface (Mandatory).
| timer_device_stop_proc devicestop |
A device specific DeviceStop method implementing a standard timer device interface (Mandatory).
| timer_device_read_proc deviceread |
A device specific DeviceRead method implementing a standard timer device interface (One of Read or Read64 is Mandatory).
| timer_device_read64_proc deviceread64 |
A device specific DeviceRead64 method implementing a standard timer device interface (One of Read or Read64 is Mandatory.
| timer_device_wait_proc devicewait |
A device specific DeviceWait method implementing a standard timer device interface (Or nil if the operation is not supported).
| timer_device_event_proc deviceevent |
A device specific DeviceEvent method implementing a standard timer device interface (Or nil if the operation is not supported).
| timer_device_cancel_proc devicecancel |
A device specific DeviceCancel method implementing a standard timer device interface (Or nil if the operation is not supported).
| timer_device_get_rate_proc devicegetrate |
A device specific DeviceGetRate method implementing a standard timer device interface (Or nil if the default method is suitable).
| timer_device_set_rate_proc devicesetrate |
A device specific DeviceSetRate method implementing a standard timer device interface (Or nil if the default method is suitable).
| timer_device_get_interval_proc devicegetinterval |
A device specific DeviceGetInterval method implementing a standard timer device interface (Or nil if the default method is suitable).
| timer_device_set_interval_proc devicesetinterval |
A device specific DeviceSetInterval method implementing a standard timer device interface (Or nil if the default method is suitable).
| timer_device_get_properties_proc devicegetproperties |
A device specific DeviceGetProperties method implementing a standard timer device interface (Or nil if the default method is suitable).
| uint32_t readcount |
| uint32_t waitcount |
| uint32_t eventcount |
| MUTEX_HANDLE lock |
Device lock.
| void* address |
Device register base address.
| uint32_t rate |
Device rate (Hz).
| uint32_t interval |
Device interval (Ticks).
| TIMER_PROPERTIES properties |
Device properties.
| uint32_t flags |
Event flags for this timer (eg TIMER_EVENT_FLAG_REPEAT).
| uint32_t count |
Count of threads and events waiting for this timer.
| EVENT_HANDLE event |
Event for threads waiting for this timer.
| TIMER_WAITER* waiters |
List of events waiting for this timer.
| TIMER_DEVICE* prev |
Previous entry in Timer device table.
| TIMER_DEVICE* next |
Next entry in Timer device table.