AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
|
UART interface for the AFBR-S50 Reference Board CAN application. More...
Functions | |
void | UART_API_Init (void) |
Initializes the UART API module. | |
void | UART_HandleCommand (void) |
Handles incoming UART commands by invoking the corresponding methods. | |
void | UART_Send1D (argus_results_t const *res) |
Prints measurement results via UART. | |
UART interface for the AFBR-S50 Reference Board CAN application.
A simple UART interface to demonstrate the basic usage of the UART bus that comes with the AFBR-S50 Reference Board.
void UART_API_Init | ( | void | ) |
Initializes the UART API module.
void UART_HandleCommand | ( | void | ) |
Handles incoming UART commands by invoking the corresponding methods.
Checks the incomming data queue and handles/invokes commands accordingly.
Note that this function must be called from thread level (not from interrupt service routines) in order to be executed correctly.
void UART_Send1D | ( | argus_results_t const * | res | ) |
Prints measurement results via UART.
Print the recent measurement results:
1. Time stamp in seconds since the last MCU reset. 2. Range in mm (converting the Q9.22 value to mm) 3. Amplitude in LSB (converting the UQ12.4 value to LSB) 4. Signal Quality in % (100% = good signal). 4. Status (0: OK, <0: Error, >0: Warning
res | A pointer to the latest measurement results structure. |