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

#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_WAITERwaiters
 List of events waiting for this timer.
TIMER_DEVICEprev
 Previous entry in Timer device table.
TIMER_DEVICEnext
 Next entry in Timer device table.

Field Documentation

◆ device

DEVICE device

The Device entry for this Timer device.

◆ timerid

uint32_t timerid

Unique Id of this Timer device in the Timer device table.

◆ timerstate

uint32_t timerstate

Timer device state (eg TIMER_STATE_ENABLED).

◆ devicestart

A device specific DeviceStart method implementing a standard timer device interface (Mandatory).

◆ devicestop

A device specific DeviceStop method implementing a standard timer device interface (Mandatory).

◆ deviceread

A device specific DeviceRead method implementing a standard timer device interface (One of Read or Read64 is Mandatory).

◆ deviceread64

A device specific DeviceRead64 method implementing a standard timer device interface (One of Read or Read64 is Mandatory.

◆ devicewait

A device specific DeviceWait method implementing a standard timer device interface (Or nil if the operation is not supported).

◆ deviceevent

A device specific DeviceEvent method implementing a standard timer device interface (Or nil if the operation is not supported).

◆ devicecancel

A device specific DeviceCancel method implementing a standard timer device interface (Or nil if the operation is not supported).

◆ devicegetrate

A device specific DeviceGetRate method implementing a standard timer device interface (Or nil if the default method is suitable).

◆ devicesetrate

A device specific DeviceSetRate method implementing a standard timer device interface (Or nil if the default method is suitable).

◆ devicegetinterval

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

◆ devicesetinterval

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

◆ devicegetproperties

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

◆ readcount

uint32_t readcount

◆ waitcount

uint32_t waitcount

◆ eventcount

uint32_t eventcount

◆ lock

Device lock.

◆ address

void* address

Device register base address.

◆ rate

uint32_t rate

Device rate (Hz).

◆ interval

uint32_t interval

Device interval (Ticks).

◆ properties

TIMER_PROPERTIES properties

Device properties.

◆ flags

uint32_t flags

Event flags for this timer (eg TIMER_EVENT_FLAG_REPEAT).

◆ count

uint32_t count

Count of threads and events waiting for this timer.

◆ event

EVENT_HANDLE event

Event for threads waiting for this timer.

◆ waiters

TIMER_WAITER* waiters

List of events waiting for this timer.

◆ prev

TIMER_DEVICE* prev

Previous entry in Timer device table.

◆ next

TIMER_DEVICE* next

Next entry in Timer device table.


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