#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "acc_definitions_common.h"
#include "acc_hal_definitions_a121.h"
#include "acc_hal_integration_a121.h"
#include "acc_integration.h"
#include "acc_integration_log.h"
#include "driver/gpio.h"
#include "driver/spi_master.h"
#include "esp_sleep.h"
#include "gpio.h"
#include "FreeRTOS.h"
#include "semphr.h"
Go to the source code of this file.
◆ GPIO_CS
◆ GPIO_ENABLE
◆ GPIO_INTERRUPT
◆ GPIO_MISO
◆ GPIO_MOSI
◆ GPIO_SCLK
◆ GPIO_SEL0
◆ GPIO_SEL1
◆ GPIO_SEL2
◆ SENSOR_COUNT
◆ SPI_MAX_TRANSFER_SIZE
#define SPI_MAX_TRANSFER_SIZE 64 |
◆ SPI_TRANSFER_SPEED
#define SPI_TRANSFER_SPEED 1*1000*1000 |
◆ acc_hal_integration_sensor_count()
uint16_t acc_hal_integration_sensor_count |
( |
void |
| ) |
|
◆ acc_hal_integration_sensor_disable()
◆ acc_hal_integration_sensor_enable()
◆ acc_hal_integration_sensor_supply_off()
◆ acc_hal_integration_sensor_supply_on()
◆ acc_hal_integration_sensor_transfer()
static void acc_hal_integration_sensor_transfer |
( |
acc_sensor_id_t |
sensor_id, |
|
|
uint8_t * |
buffer, |
|
|
size_t |
buffer_size |
|
) |
| |
|
static |
◆ acc_hal_integration_wait_for_sensor_interrupt()
bool acc_hal_integration_wait_for_sensor_interrupt |
( |
acc_sensor_id_t |
sensor_id, |
|
|
uint32_t |
timeout_ms |
|
) |
| |
Wait for a sensor interrupt.
- Parameters
-
[in] | sensor_id | The sensor to wait for the interrupt on |
[in] | timeout_ms | The maximum time to wait in milliseconds |
- Returns
- True if an interrupt has occurred within timeout, false if timeout occurred
Definition at line 100 of file acc_hal_integration_espidf_xe121.c.
◆ acc_hal_rss_integration_get_implementation()
const acc_hal_a121_t* acc_hal_rss_integration_get_implementation |
( |
void |
| ) |
|
◆ isr_handler()
static void isr_handler |
( |
void * |
args | ) |
|
|
static |
◆ hal
Initial value:=
{
.max_spi_transfer_size = 64 ,
.mem_alloc = malloc,
.mem_free = free,
.optimization.transfer16 = NULL,
}
- Examples
- example_bring_up.c, example_control_helper.c, example_detector_distance.c, example_detector_distance_calibration_caching.c, example_detector_distance_with_iq_data_print.c, example_detector_presence.c, example_detector_presence_multiple_configurations.c, example_diagnostic_test.c, example_processing_amplitude.c, example_processing_coherent_mean.c, example_processing_noncoherent_mean.c, example_processing_peak_interpolation.c, example_processing_static_presence.c, example_processing_subtract_adaptive_bg.c, example_service.c, example_service_calibration_caching.c, example_service_multiple_configurations.c, example_service_sensor_disable.c, example_service_sensor_hibernate.c, example_service_sensor_off.c, and example_service_subsweeps.c.
Definition at line 121 of file acc_hal_integration_espidf_xe121.c.
◆ isr_sem
SemaphoreHandle_t isr_sem = NULL |
|
static |
◆ spi
spi_device_handle_t spi = NULL |
|
static |
◆ xSemaphoreBuffer
StaticSemaphore_t xSemaphoreBuffer |
|
static |