HRI board firmware  v2.1
Microcontroller firmware of the board used during the HRI labs.
Macros | Enumerations
definitions.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Macros

#define N_SYNCVARS_MAX   255
 
#define SYNCVAR_NAME_SIZE   50
 
#define UART_BAUDRATE   1843200
 

Enumerations

enum  comm_PcMessage {
  PC_MESSAGE_DO_NOTHING = 0, PC_MESSAGE_PING, PC_MESSAGE_GET_VARS_LIST, PC_MESSAGE_SET_STREAMED_VAR,
  PC_MESSAGE_GET_VAR, PC_MESSAGE_SET_VAR
}
 
enum  comm_StmMessage {
  STM_MESSAGE_PINGBACK = 0, STM_MESSAGE_VAR, STM_MESSAGE_STREAMING_PACKET, STM_MESSAGE_DEBUG_TEXT,
  STM_MESSAGE_VARS_LIST, STM_MESSAGE_START_INFO
}
 
enum  comm_VarAccess { READONLY = 0, WRITEONLY, READWRITE }
 
enum  comm_VarType {
  BOOL = 0, UINT8, INT8, UINT16,
  INT16, UINT32, INT32, UINT64,
  INT64, FLOAT32, FLOAT64
}
 

Macro Definition Documentation

◆ N_SYNCVARS_MAX

#define N_SYNCVARS_MAX   255

◆ SYNCVAR_NAME_SIZE

#define SYNCVAR_NAME_SIZE   50

◆ UART_BAUDRATE

#define UART_BAUDRATE   1843200

Enumeration Type Documentation

◆ comm_PcMessage

Enumerator
PC_MESSAGE_DO_NOTHING 

Do nothing.

PC_MESSAGE_PING 

Request the board an answer, to check the connection status.

PC_MESSAGE_GET_VARS_LIST 

Request the SyncVars list.

PC_MESSAGE_SET_STREAMED_VAR 

Set the variables to be streamed continuously.

PC_MESSAGE_GET_VAR 

Request the device to send the selected value.

PC_MESSAGE_SET_VAR 

Set the selected variable.

◆ comm_StmMessage

Enumerator
STM_MESSAGE_PINGBACK 

Response to a ping request.

STM_MESSAGE_VAR 

Variable state.

STM_MESSAGE_STREAMING_PACKET 

Streaming packet.

STM_MESSAGE_DEBUG_TEXT 

Debug text message.

STM_MESSAGE_VARS_LIST 

Monitored variables list.

STM_MESSAGE_START_INFO 

Notification that the board has (re)started.

◆ comm_VarAccess

Enumerator
READONLY 
WRITEONLY 
READWRITE 

◆ comm_VarType

Enumerator
BOOL 
UINT8 
INT8 
UINT16 
INT16 
UINT32 
INT32 
UINT64 
INT64 
FLOAT32 
FLOAT64