#include <bluemelon/types.h>
#include <bluesense/external/bsDeviceInterface.h>
#include <bluemelon/identifier.h>
#include <bluemelon/dex/types.h>
The device table stores a list of BlueSense Device instances. Each instance is of type bsDeviceTable_deviceInfo_t. To get a specifc interface to a BlueSense device you first obtain a reference to a bsDeviceTable_deviceInfo_t (via the device id, bsDeviceTable_getDeviceById) Then you can obtain a device specific pointer by using eg. bsAdcInputDevice_getDeviceSpecifics(devInfo).
|
|
The type name of an unknown device |
|
|
when device info is converted to a line of text, this is the maximum length |
|
|
This datastructure represents general device info, which exists for all types of devices
|
|
|
A notify callback for use when detecting devices.
|
|
|
A table to store references to devices: bsDeviceTable_deviceInfo_t
|
|
|
Allocates space for a device table. The table is initalized as well.
|
|
|
Clears the device table
|
|
|
Frees and finalizes a device table.
|
|
||||||||||||
|
Returns a pointer to device information, given a devic identifier
|
|
|
Returns a device which has pending events (eg. analog input values changed). The device is removed from the event list.
|
|
|
Returns the firmware version of a device.
|
|
|
Returns the unique identifier of a device.
|
|
||||||||||||||||||||
|
Converts a device table to text format
|
|
|
When the device table is converted to text, the text size will be returned by this function.
|
|
|
Returns the type of a device with a certain identifier.
|
|
|
Gets the first found device from the table. Use together with bsDeviceTable_getNextDevice to iterate over the found devices.
|
|
|
Returns the number of found devices
|
|
|
Gets the next found device from the table. Use together with bsDeviceTable_getFirstDevice to iterate over the found devices.
|
|
|
Checks if a device with a certain identifier is found and has a registered device interface.
|
|
||||||||||||
|
Checks if a device is of a certain type and that the device specific information is accessible
|
|
||||||||||||
|
After registering a new device (eg. by bsAdcInputDevice_registerDeviceInterface) type you should call this function to make sure that the interface becomes available for existing devices
|
1.4.4