|
#include <stdbool.h>
#include <stdint.h>
#include "acc_definitions_common.h"
#include "acc_hal_definitions_a121.h"
Go to the source code of this file.
Functions | |
const acc_hal_a121_t * | acc_hal_rss_integration_get_implementation (void) |
Get hal implementation reference. More... | |
void | acc_hal_integration_sensor_supply_on (acc_sensor_id_t sensor_id) |
Power on sensor supply. More... | |
void | acc_hal_integration_sensor_supply_off (acc_sensor_id_t sensor_id) |
Power off sensor supply. More... | |
void | acc_hal_integration_sensor_enable (acc_sensor_id_t sensor_id) |
Enable sensor. More... | |
void | acc_hal_integration_sensor_disable (acc_sensor_id_t sensor_id) |
Disable sensor. More... | |
bool | acc_hal_integration_wait_for_sensor_interrupt (acc_sensor_id_t sensor_id, uint32_t timeout_ms) |
Wait for a sensor interrupt. More... | |
uint16_t | acc_hal_integration_sensor_count (void) |
Get the max number of sensors the integration supports. More... | |
uint16_t acc_hal_integration_sensor_count | ( | void | ) |
Get the max number of sensors the integration supports.
Definition at line 224 of file acc_hal_integration_espidf_xe121.c.
void acc_hal_integration_sensor_disable | ( | acc_sensor_id_t | sensor_id | ) |
Disable sensor.
[in] | sensor_id | The id of the sensor to disable |
Definition at line 214 of file acc_hal_integration_espidf_xe121.c.
void acc_hal_integration_sensor_enable | ( | acc_sensor_id_t | sensor_id | ) |
Enable sensor.
Any pending sensor interrupts should be cleared before returning from function. The sensor supply needs to be enabled by invoking acc_hal_integration_sensor_supply_on before calling this function.
[in] | sensor_id | The id of the sensor to enable |
Definition at line 199 of file acc_hal_integration_espidf_xe121.c.
void acc_hal_integration_sensor_supply_off | ( | acc_sensor_id_t | sensor_id | ) |
Power off sensor supply.
[in] | sensor_id | The id of the sensor to power off |
Definition at line 192 of file acc_hal_integration_espidf_xe121.c.
void acc_hal_integration_sensor_supply_on | ( | acc_sensor_id_t | sensor_id | ) |
Power on sensor supply.
[in] | sensor_id | The id of the sensor to power on |
Definition at line 185 of file acc_hal_integration_espidf_xe121.c.
bool acc_hal_integration_wait_for_sensor_interrupt | ( | acc_sensor_id_t | sensor_id, |
uint32_t | timeout_ms | ||
) |
Wait for a sensor interrupt.
[in] | sensor_id | The sensor to wait for the interrupt on |
[in] | timeout_ms | The maximum time to wait in milliseconds |
Definition at line 100 of file acc_hal_integration_espidf_xe121.c.
const acc_hal_a121_t* acc_hal_rss_integration_get_implementation | ( | void | ) |
Get hal implementation reference.
Definition at line 135 of file acc_hal_integration_espidf_xe121.c.