Data Structures | |
| struct | DeviceHandle_t |
Functions | |
| void | DeviceList_init (DeviceHandle_t deviceList[DEVICE_MAX_KEYS]) |
| Initialise all system devices. | |
| DeviceHandle_t | DeviceList_getDeviceHandle (DeviceKey) |
| Retrieve device handle from list by key. | |
| DeviceHandle_t | DeviceList_getDeviceHandleFromName (char *) |
| Retrieve device handle from list by name. | |
| DeviceHandle_t * | DeviceList_getDeviceHandlePointer (DeviceKey) |
| Retrieve device handle pointer from list by key. | |
| void | DeviceList_printDevices () |
| Print out names of all devices in list. | |
| struct DeviceHandle_t |
Definition at line 17 of file devicelist.h.
| void DeviceList_init | ( | DeviceHandle_t | deviceList[DEVICE_MAX_KEYS] | ) |
Initialise all system devices.
| deviceList | Empty list to be initialised. |
Definition at line 23 of file devicelist.c.
| DeviceHandle_t DeviceList_getDeviceHandle | ( | DeviceKey | key | ) |
Retrieve device handle from list by key.
| key | Key index for device in list. |
Definition at line 36 of file devicelist.c.
| DeviceHandle_t DeviceList_getDeviceHandleFromName | ( | char * | name | ) |
Retrieve device handle from list by name.
| name | String representation of device to be retrieved. |
Definition at line 55 of file devicelist.c.
| DeviceHandle_t * DeviceList_getDeviceHandlePointer | ( | DeviceKey | key | ) |
Retrieve device handle pointer from list by key.
| key | Key index for device in list. |
NULL.Definition at line 86 of file devicelist.c.
| void DeviceList_printDevices | ( | ) |