Ilmsens HAL API  1.1.1
A cross-platform C-library for interfacing m:explore UWB-sensors
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Device configuration

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.

Detailed Description

Functions for configuring specified devices.

Function Documentation

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.

Parameters
pDevNumspointer to a first element or an array of device-indexes
pNumnumber of array-elements
pConfigpointer to configuration parameters in a ilmsens_hal_ModConfig structure
Returns
ILMSENS_SUCCESS on success
negative error-code
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.

Parameters
pDevNumspointer to a first element or an array of device-indexes
pNumnumber of array-elements
pModeILMSENS_HAL_SLAVE_SENSOR = slave | ILMSENS_HAL_MASTER_SENSOR = master
Returns
ILMSENS_SUCCESS on success
negative error-code