This is an example on how the control helper API can be used
The example executes as follows:
- Create a control helper instance
- Configure the start point
- Activate the radar
- Read out a number of measurements
- Destroy the control helper instance
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#define SENSOR_ID (1U)
#define MAX_DATA_ENTRY_LEN 15 // "-32000+-32000i" + zero termination
{
(void)argc;
(void)argv;
{
return EXIT_FAILURE;
}
{
printf(
"acc_control_helper_create() failed\n");
return EXIT_FAILURE;
}
{
printf(
"acc_control_helper_activate() failed\n");
return EXIT_FAILURE;
}
for (uint32_t i = 0U; i < 5U; i++)
{
{
printf(
"acc_control_helper_get_next failed\n");
return EXIT_FAILURE;
}
}
printf(
"Application finished OK\n");
return EXIT_SUCCESS;
}
{
for (uint16_t i = 0; i < data_length; i++)
{
if ((i > 0) && ((i % 8) == 0))
{
}
snprintf(buffer,
sizeof(buffer),
"%" PRIi16
"%+" PRIi16
"i", data[i].real, data[i].imag);
}
}