TeensyNanoExoCode
Loading...
Searching...
No Matches
Classes | Macros
UARTHandler.h File Reference

Singleton class that manages the UART data. NOT THREAD SAFE. The class queues recieved messages. More...

#include "UART_msg_t.h"
#include "Arduino.h"
#include <stdint.h>
Include dependency graph for UARTHandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UARTHandler
 Singleton Class to handle the UART Work. More...
 

Macros

#define MAX_NUM_LEGS   2
 
#define MAX_NUM_JOINTS_PER_LEG   2
 
#define MAX_RAW_BUFFER_SIZE   256
 
#define MAX_DATA_SIZE   32
 
#define UART_DATA_TYPE   short int
 
#define FIXED_POINT_FACTOR   100
 
#define UART_BAUD   256000
 
#define MAX_RX_LEN   64
 
#define RX_TIMEOUT_US   1000
 
#define END   0300 /* indicates end of packet */
 
#define ESC   0333 /* indicates byte stuffing */
 
#define ESC_END   0334 /* ESC ESC_END means END data byte */
 
#define ESC_ESC   0335 /* ESC ESC_ESC means ESC data byte */
 

Detailed Description

Singleton class that manages the UART data. NOT THREAD SAFE. The class queues recieved messages.

Author
Chance Cuddeback
Date
2022-09-07

Macro Definition Documentation

◆ END

#define END   0300 /* indicates end of packet */

◆ ESC

#define ESC   0333 /* indicates byte stuffing */

◆ ESC_END

#define ESC_END   0334 /* ESC ESC_END means END data byte */

◆ ESC_ESC

#define ESC_ESC   0335 /* ESC ESC_ESC means ESC data byte */

◆ FIXED_POINT_FACTOR

#define FIXED_POINT_FACTOR   100

◆ MAX_DATA_SIZE

#define MAX_DATA_SIZE   32

◆ MAX_NUM_JOINTS_PER_LEG

#define MAX_NUM_JOINTS_PER_LEG   2

◆ MAX_NUM_LEGS

#define MAX_NUM_LEGS   2

◆ MAX_RAW_BUFFER_SIZE

#define MAX_RAW_BUFFER_SIZE   256

◆ MAX_RX_LEN

#define MAX_RX_LEN   64

◆ RX_TIMEOUT_US

#define RX_TIMEOUT_US   1000

◆ UART_BAUD

#define UART_BAUD   256000

◆ UART_DATA_TYPE

#define UART_DATA_TYPE   short int