![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <devices.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this Clock device. | |
| uint32_t | clockid |
| Unique Id of this Clock device in the Clock device table. | |
| uint32_t | clockstate |
| Clock device state (eg CLOCK_STATE_ENABLED). | |
| clock_device_start_proc | devicestart |
| A device specific DeviceStart method implementing a standard clock device interface (Or nil if the default method is suitable). | |
| clock_device_stop_proc | devicestop |
| A device specific DeviceStop method implementing a standard clock device interface (Or nil if the default method is suitable). | |
| clock_device_read_proc | deviceread |
| A device specific DeviceRead method implementing a standard clock device interface (Or nil if the default method is suitable). | |
| clock_device_read64_proc | deviceread64 |
| A device specific DeviceRead64 method implementing a standard clock device interface (Mandatory). | |
| clock_device_write64_proc | devicewrite64 |
| A device specific DeviceWrite64 method implementing a standard clock device interface (Optional). | |
| clock_device_get_rate_proc | devicegetrate |
| A device specific DeviceGetRate method implementing a standard clock device interface (Or nil if the default method is suitable). | |
| clock_device_set_rate_proc | devicesetrate |
| A device specific DeviceSetRate method implementing a standard clock device interface (Optional). | |
| clock_device_get_properties_proc | devicegetproperties |
| A device specific DeviceGetProperties method implementing a standard clock device interface (Or nil if the default method is suitable). | |
| uint32_t | readcount |
| MUTEX_HANDLE | lock |
| Device lock. | |
| void * | address |
| Device register base address. | |
| uint32_t | rate |
| Device rate (Hz). | |
| uint32_t | minrate |
| Device minimum rate (Hz). | |
| uint32_t | maxrate |
| Device maximum rate (Hz). | |
| CLOCK_DEVICE * | prev |
| Previous entry in Clock device table. | |
| CLOCK_DEVICE * | next |
| Next entry in Clock device table. | |
Clock Device
| DEVICE device |
The Device entry for this Clock device.
| uint32_t clockid |
Unique Id of this Clock device in the Clock device table.
| uint32_t clockstate |
Clock device state (eg CLOCK_STATE_ENABLED).
| clock_device_start_proc devicestart |
A device specific DeviceStart method implementing a standard clock device interface (Or nil if the default method is suitable).
| clock_device_stop_proc devicestop |
A device specific DeviceStop method implementing a standard clock device interface (Or nil if the default method is suitable).
| clock_device_read_proc deviceread |
A device specific DeviceRead method implementing a standard clock device interface (Or nil if the default method is suitable).
| clock_device_read64_proc deviceread64 |
A device specific DeviceRead64 method implementing a standard clock device interface (Mandatory).
| clock_device_write64_proc devicewrite64 |
A device specific DeviceWrite64 method implementing a standard clock device interface (Optional).
| clock_device_get_rate_proc devicegetrate |
A device specific DeviceGetRate method implementing a standard clock device interface (Or nil if the default method is suitable).
| clock_device_set_rate_proc devicesetrate |
A device specific DeviceSetRate method implementing a standard clock device interface (Optional).
| clock_device_get_properties_proc devicegetproperties |
A device specific DeviceGetProperties method implementing a standard clock device interface (Or nil if the default method is suitable).
| uint32_t readcount |
| MUTEX_HANDLE lock |
Device lock.
| void* address |
Device register base address.
| uint32_t rate |
Device rate (Hz).
| uint32_t minrate |
Device minimum rate (Hz).
| uint32_t maxrate |
Device maximum rate (Hz).
| CLOCK_DEVICE* prev |
Previous entry in Clock device table.
| CLOCK_DEVICE* next |
Next entry in Clock device table.