![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <devices.h>
Data Fields | |
| uint32_t | signature |
| Signature for entry validation. | |
| uint32_t | deviceid |
| Unique Id of this Device in the Device table. | |
| uint32_t | devicestate |
| Device state (eg Registered/Unregistered). | |
| char | devicename [DEVICE_NAME_LENGTH] |
| The name of the Device (eg Keyboard0, Storage0 or Network0 etc). | |
| uint32_t | deviceclass |
| The class of this Device (eg DEVICE_CLASS_USB, DEVICE_CLASS_NETWORK, DEVICE_CLASS_STORAGE etc). | |
| uint32_t | devicebus |
| The Bus type for the Device (eg DEVICE_BUS_USB). | |
| uint32_t | devicetype |
| A class specific Device type (eg KEYBOARD_TYPE_USB, MOUSE_TYPE_USB, NETWORK_TYPE_ETHERNET etc). | |
| uint32_t | deviceflags |
| The class specific Device flags. | |
| void * | devicedata |
| A pointer to a class specific Device interface (eg PUSBDevice, PNetworkDevice or PStorageDevice etc) (Used by Drivers). | |
| char | devicedescription [DEVICE_DESC_LENGTH] |
| A description of the Device (eg BCM2835 PL011 UART). | |
| DEVICE * | prev |
| Previous entry in Device table. | |
| DEVICE * | next |
| Next entry in Device table. | |
Device Entry
| uint32_t signature |
Signature for entry validation.
| uint32_t deviceid |
Unique Id of this Device in the Device table.
| uint32_t devicestate |
Device state (eg Registered/Unregistered).
| char devicename[DEVICE_NAME_LENGTH] |
The name of the Device (eg Keyboard0, Storage0 or Network0 etc).
| uint32_t deviceclass |
The class of this Device (eg DEVICE_CLASS_USB, DEVICE_CLASS_NETWORK, DEVICE_CLASS_STORAGE etc).
| uint32_t devicebus |
The Bus type for the Device (eg DEVICE_BUS_USB).
| uint32_t devicetype |
A class specific Device type (eg KEYBOARD_TYPE_USB, MOUSE_TYPE_USB, NETWORK_TYPE_ETHERNET etc).
| uint32_t deviceflags |
The class specific Device flags.
| void* devicedata |
A pointer to a class specific Device interface (eg PUSBDevice, PNetworkDevice or PStorageDevice etc) (Used by Drivers).
| char devicedescription[DEVICE_DESC_LENGTH] |
A description of the Device (eg BCM2835 PL011 UART).
| DEVICE* prev |
Previous entry in Device table.
| DEVICE* next |
Next entry in Device table.