|
Go to the source code of this file.
Functions | |
acc_detector_distance_config_t * | i2c_distance_detector_get_config (void) |
Get distance detector configuration handle. More... | |
bool | i2c_distance_detector_command (uint32_t command) |
Send command to be executed to i2c distance detector. More... | |
uint32_t | i2c_distance_detector_get_status (void) |
Get distance detector status. More... | |
uint32_t | i2c_distance_detector_get_result (void) |
Get distance detector result. More... | |
uint32_t | i2c_distance_detector_get_counter (void) |
Get distance detector measure counter. More... | |
float | i2c_distance_detector_get_peak_distance (uint16_t peak_id) |
Get the peak distance for a specific peak id. More... | |
float | i2c_distance_detector_get_peak_strength (uint16_t peak_id) |
Get the peak strength for a specific peak id. More... | |
void | i2c_distance_detector_measure_on_wakeup (bool enable) |
Enable/Disable measure on wake up. More... | |
bool | i2c_distance_detector_get_measure_on_wakeup (void) |
Get measure on wake up state. More... | |
bool i2c_distance_detector_command | ( | uint32_t | command | ) |
Send command to be executed to i2c distance detector.
[in] | command | The command to be executed |
Definition at line 180 of file i2c_distance_detector.c.
acc_detector_distance_config_t* i2c_distance_detector_get_config | ( | void | ) |
Get distance detector configuration handle.
Definition at line 174 of file i2c_distance_detector.c.
uint32_t i2c_distance_detector_get_counter | ( | void | ) |
Get distance detector measure counter.
The counter will be increased every time the distance detector completes a measure
Definition at line 251 of file i2c_distance_detector.c.
bool i2c_distance_detector_get_measure_on_wakeup | ( | void | ) |
Get measure on wake up state.
Definition at line 301 of file i2c_distance_detector.c.
float i2c_distance_detector_get_peak_distance | ( | uint16_t | peak_id | ) |
Get the peak distance for a specific peak id.
[in] | peak_id | The id of the peak |
Definition at line 264 of file i2c_distance_detector.c.
float i2c_distance_detector_get_peak_strength | ( | uint16_t | peak_id | ) |
Get the peak strength for a specific peak id.
[in] | peak_id | The id of the peak |
Definition at line 277 of file i2c_distance_detector.c.
uint32_t i2c_distance_detector_get_result | ( | void | ) |
Get distance detector result.
Definition at line 216 of file i2c_distance_detector.c.
uint32_t i2c_distance_detector_get_status | ( | void | ) |
Get distance detector status.
Definition at line 203 of file i2c_distance_detector.c.
void i2c_distance_detector_measure_on_wakeup | ( | bool | enable | ) |
Enable/Disable measure on wake up.
[in] | enable | Enable measure on wake up if set to true |
Definition at line 290 of file i2c_distance_detector.c.