24 deviceListPtr = deviceList;
38 if (key >= DEVICE_MAX_KEYS)
42 return deviceListPtr[key];
57 for (
int i = 0; i < DEVICE_MAX_KEYS; i++) {
58 if (!strcmp(deviceListPtr[i].deviceName, name))
60 return deviceListPtr[i];
88 if (key >= DEVICE_MAX_KEYS)
92 return &deviceListPtr[key];
void DeviceList_init(DeviceHandle_t deviceList[DEVICE_MAX_KEYS])
Initialise all system devices.
DeviceHandle_t DeviceList_getDeviceHandleFromName(char *name)
Retrieve device handle from list by name.
DeviceHandle_t DeviceList_getDeviceHandle(DeviceKey key)
Retrieve device handle from list by key.
void DeviceList_printDevices()
Print out names of all devices in list.
DeviceHandle_t * DeviceList_getDeviceHandlePointer(DeviceKey key)
Retrieve device handle pointer from list by key.