speedradar 2.1.0.0
main.c File Reference

Speed Radar Click Example. More...

#include "board.h"
#include "log.h"
#include "speedradar.h"

Macros

#define PROCESS_BUFFER_SIZE   200
 
#define PROCESS_C00_RSP_LEN   14
 
#define NFFT_WIDTH_DEFAULT   256.0
 
#define FREQUENCY_DEFAULT   44.7
 
#define COS_ANGLE_OBJECT_VAL   1.0
 

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Speed Radar Click Example.

Description

This example demonstrates the use of Speed Radar click board by processing the incoming data and displaying them on the USB UART.

The demo application is composed of two sections :

Application Init

Initializes the driver and performs the click default configuration.

Application Task

The demo application sends a command that returns and displays the speed [km/h] and magnitude [dB] of the dominant movement for the forward and backward planes of the spectrum, measured frontal to the sensor. Results are being sent to the UART Terminal, where you can track their changes.

Additional Function

  • static void speedradar_clear_app_buf ( void )
  • static err_t speedradar_process ( speedradar_t *ctx )
  • static void speedradar_adv_det_display ( void )
Author
Nenad Filipovic

Macro Definition Documentation

◆ COS_ANGLE_OBJECT_VAL

#define COS_ANGLE_OBJECT_VAL   1.0

◆ FREQUENCY_DEFAULT

#define FREQUENCY_DEFAULT   44.7

◆ NFFT_WIDTH_DEFAULT

#define NFFT_WIDTH_DEFAULT   256.0

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

◆ PROCESS_C00_RSP_LEN

#define PROCESS_C00_RSP_LEN   14

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )