ST Expansion SW Team / VL53L1

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   X_NUCLEO_53L1CB

Embed: (wiki syntax)

« Back to documentation index

VL53L1 Sequence Step Functions

VL53L1 Sequence Step Functions
[VL53L1 cut1.1 Function Definition]

Functions used to select Steps done on each ranging. More...

Functions

VL53L1_Error VL53L1_GetNumberOfSequenceSteps (VL53L1_DEV Dev, uint8_t *pNumberOfSequenceSteps)
 Gets number of sequence steps managed by the API.
VL53L1_Error VL53L1_GetSequenceStepsInfo (VL53L1_SequenceStepId SequenceStepId, char *pSequenceStepsString)
 Gets the name of a given sequence step.
VL53L1_Error VL53L1_SetSequenceStepEnable (VL53L1_DEV Dev, VL53L1_SequenceStepId SequenceStepId, uint8_t SequenceStepEnabled)
 Sets the (on/off) state of a requested sequence step.
VL53L1_Error VL53L1_GetSequenceStepEnable (VL53L1_DEV Dev, VL53L1_SequenceStepId SequenceStepId, uint8_t *pSequenceStepEnabled)
 Gets the (on/off) state of a requested sequence step.

Detailed Description

Functions used to select Steps done on each ranging.


Function Documentation

VL53L1_Error VL53L1_GetNumberOfSequenceSteps ( VL53L1_DEV  Dev,
uint8_t *  pNumberOfSequenceSteps 
)

Gets number of sequence steps managed by the API.

Function Description
This function retrieves the number of sequence steps currently managed by the API
Note:
This function Accesses the device
Parameters:
DevDevice Handle
pNumberOfSequenceStepsOut parameter reporting the number of sequence steps.
Returns:
VL53L1_ERROR_NONE Success
"Other error code" See VL53L1_Error

Definition at line 1586 of file vl53l1_api.c.

VL53L1_Error VL53L1_GetSequenceStepEnable ( VL53L1_DEV  Dev,
VL53L1_SequenceStepId  SequenceStepId,
uint8_t *  pSequenceStepEnabled 
)

Gets the (on/off) state of a requested sequence step.

Function Description
This function retrieves the state of a requested sequence step, i.e. on/off.
Note:
This function Accesses the device
Parameters:
DevDevice Handle
SequenceStepIdSequence step identifier.
pSequenceStepEnabledOut parameter reporting if the sequence step is enabled {0=Off,1=On}.
Returns:
VL53L1_ERROR_NONE Success
VL53L1_ERROR_INVALID_PARAMS Error SequenceStepId parameter not supported.
"Other error code" See VL53L1_Error

Definition at line 1648 of file vl53l1_api.c.

VL53L1_Error VL53L1_GetSequenceStepsInfo ( VL53L1_SequenceStepId  SequenceStepId,
char *  pSequenceStepsString 
)

Gets the name of a given sequence step.

Function Description
This function retrieves the name of sequence steps corresponding to SequenceStepId.
Note:
This function doesn't Accesses the device
Parameters:
SequenceStepIdSequence step identifier.
pSequenceStepsStringPointer to Info string. Shall be defined as char buf[VL53L1_MAX_STRING_LENGTH]
Returns:
VL53L1_ERROR_NONE Success
"Other error code" See VL53L1_Error

Definition at line 1601 of file vl53l1_api.c.

VL53L1_Error VL53L1_SetSequenceStepEnable ( VL53L1_DEV  Dev,
VL53L1_SequenceStepId  SequenceStepId,
uint8_t  SequenceStepEnabled 
)

Sets the (on/off) state of a requested sequence step.

Function Description
This function enables/disables a requested sequence step.
Note:
This function Accesses the device
Parameters:
DevDevice Handle
SequenceStepIdSequence step identifier.
SequenceStepEnabledDemanded state {0=Off,1=On} is enabled.
Returns:
VL53L1_ERROR_NONE Success
VL53L1_ERROR_INVALID_PARAMS Error SequenceStepId parameter not supported.
"Other error code" See VL53L1_Error

Definition at line 1617 of file vl53l1_api.c.