Ilmsens HAL API
1.1.1
A cross-platform C-library for interfacing m:explore UWB-sensors
|
Functions for configuring specified devices. More...
Data Structures | |
struct | ilmsens_hal_ModConfig |
Represents the basic device configuration. More... |
Macros | |
#define | ILMSENS_HAL_SLAVE_SENSOR 0 |
setup the sensor(s) to be slave devices | |
#define | ILMSENS_HAL_MASTER_SENSOR 1 |
setup the sensor(s) to be master devices |
Functions | |
int | ilmsens_hal_setupSensors (unsigned int *pDevNums, unsigned int pNum, const struct ilmsens_hal_ModConfig *pConfig) |
Performs the initial setup of specified devices. | |
int | ilmsens_hal_setMaster (unsigned int *pDevNums, unsigned int pNum, int pMode) |
Sets master/slave operational mode. |
Functions for configuring specified devices.
int ilmsens_hal_setupSensors | ( | unsigned int * | pDevNums, |
unsigned int | pNum, | ||
const struct ilmsens_hal_ModConfig * | pConfig | ||
) |
Performs the initial setup of specified devices.
This function must be called before starting a measurement session.
pDevNums | pointer to a first element or an array of device-indexes |
pNum | number of array-elements |
pConfig | pointer to configuration parameters in a ilmsens_hal_ModConfig structure |
int ilmsens_hal_setMaster | ( | unsigned int * | pDevNums, |
unsigned int | pNum, | ||
int | pMode | ||
) |
Sets master/slave operational mode.
Application needs to make sure, that any independent sensor is set to master mode.
For hardware-synchronized operation of multiple sensors, exactly one sensor of a connected group has to be master the others in teh group must be configured as slaves.
pDevNums | pointer to a first element or an array of device-indexes |
pNum | number of array-elements |
pMode | ILMSENS_HAL_SLAVE_SENSOR = slave | ILMSENS_HAL_MASTER_SENSOR = master |