Go to the documentation of this file.
37 #define SENSOR_ID (1U)
39 #define SENSOR_TIMEOUT_MS (1000U)
44 int app_main(
int argc,
char *argv[]);
66 printf(
"Assembly test: Memory allocation failed\n");
72 if (assembly_test == NULL)
74 printf(
"Bring-up: Could not create assembly test\n");
84 printf(
"Bring-up: Basic read test failed\n");
93 printf(
"Bring-up: Communication test failed\n");
102 printf(
"Bring-up: Enable test failed\n");
111 printf(
"Bring-up: Interrupt test failed\n");
120 printf(
"Bring-up: Clock and Supply test failed\n");
129 printf(
"Bring-up: Calibration test failed\n");
143 printf(
"Bring-up: All tests passed\n");
145 printf(
"Application finished OK\n");
155 bool all_passed =
true;
167 switch (assembly_test_state)
195 uint16_t nbr_of_test_results = 0U;
199 for (uint16_t idx = 0; idx < nbr_of_test_results; idx++)
201 printf(
"Bring-up: '%s' [%s]\n", test_results[idx].test_name, test_results[idx].test_result ?
"PASS" :
"FAIL");
202 if (!test_results[idx].test_result)
int app_main(int argc, char *argv[])
Assembly test example.
void acc_hal_integration_sensor_supply_off(acc_sensor_id_t sensor_id)
Power off sensor supply.
void acc_hal_integration_sensor_supply_on(acc_sensor_id_t sensor_id)
Power on sensor supply.
const acc_hal_a121_t * acc_hal_rss_integration_get_implementation(void)
Get hal implementation reference.
void * acc_integration_mem_alloc(size_t size)
Allocate dynamic memory.
#define SENSOR_TIMEOUT_MS
bool acc_hal_integration_wait_for_sensor_interrupt(acc_sensor_id_t sensor_id, uint32_t timeout_ms)
Wait for a sensor interrupt.
const char * acc_version_get(void)
Get the version of the Acconeer software.
void acc_hal_integration_sensor_enable(acc_sensor_id_t sensor_id)
Enable sensor.
void acc_hal_integration_sensor_disable(acc_sensor_id_t sensor_id)
Disable sensor.
uint32_t acc_sensor_id_t
Type representing a sensor ID.
static const acc_hal_a121_t hal
void acc_integration_mem_free(void *ptr)
Free dynamic memory.
static bool run_test(acc_rss_assembly_test_t *assembly_test, acc_sensor_id_t sensor_id)