![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <devices.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this Random device. | |
| uint32_t | randomid |
| Unique Id of this Random device in the Random device table. | |
| uint32_t | randomstate |
| Random device state (eg RANDOM_STATE_ENABLED). | |
| random_device_start_proc | devicestart |
| A device specific DeviceStart method implementing a standard random device interface (Mandatory). | |
| random_device_stop_proc | devicestop |
| A device specific DeviceStop method implementing a standard random device interface (Or nil if the default method is suitable). | |
| random_device_seed_proc | deviceseed |
| A device specific DeviceSeed method implementing a standard random device interface (Or nil if the default method is suitable). | |
| random_device_read_byte_proc | devicereadbyte |
| A device specific DeviceReadByte method implementing a standard random device interface (Or nil if the default method is suitable). | |
| random_device_read_word_proc | devicereadword |
| A device specific DeviceReadWord method implementing a standard random device interface (Or nil if the default method is suitable). | |
| random_device_read_longword_proc | devicereadlongword |
| A device specific DeviceReadLongWord method implementing a standard random device interface (Mandatory). | |
| random_device_read_long_long_proc | devicereadquadword |
| A device specific DeviceReadQuadWord method implementing a standard random device interface (Or nil if the default method is suitable). | |
| random_device_read_double_proc | devicereaddouble |
| A device specific DeviceReadFloat method implementing a standard random device interface (Or nil if the default method is suitable). | |
| uint32_t | seedcount |
| uint32_t | readcount |
| MUTEX_HANDLE | lock |
| Device lock. | |
| void * | address |
| Device register base address. | |
| RANDOM_DEVICE * | prev |
| Previous entry in Random device table. | |
| RANDOM_DEVICE * | next |
| Next entry in Random device table. | |
Random Device
| DEVICE device |
The Device entry for this Random device.
| uint32_t randomid |
Unique Id of this Random device in the Random device table.
| uint32_t randomstate |
Random device state (eg RANDOM_STATE_ENABLED).
| random_device_start_proc devicestart |
A device specific DeviceStart method implementing a standard random device interface (Mandatory).
| random_device_stop_proc devicestop |
A device specific DeviceStop method implementing a standard random device interface (Or nil if the default method is suitable).
| random_device_seed_proc deviceseed |
A device specific DeviceSeed method implementing a standard random device interface (Or nil if the default method is suitable).
| random_device_read_byte_proc devicereadbyte |
A device specific DeviceReadByte method implementing a standard random device interface (Or nil if the default method is suitable).
| random_device_read_word_proc devicereadword |
A device specific DeviceReadWord method implementing a standard random device interface (Or nil if the default method is suitable).
| random_device_read_longword_proc devicereadlongword |
A device specific DeviceReadLongWord method implementing a standard random device interface (Mandatory).
| random_device_read_long_long_proc devicereadquadword |
A device specific DeviceReadQuadWord method implementing a standard random device interface (Or nil if the default method is suitable).
| random_device_read_double_proc devicereaddouble |
A device specific DeviceReadFloat method implementing a standard random device interface (Or nil if the default method is suitable).
| uint32_t seedcount |
| uint32_t readcount |
| MUTEX_HANDLE lock |
Device lock.
| void* address |
Device register base address.
| RANDOM_DEVICE* prev |
Previous entry in Random device table.
| RANDOM_DEVICE* next |
Next entry in Random device table.