SBB Host
Host communication with the self balancing bike.
Loading...
Searching...
No Matches
Serial.h File Reference
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>
#include <stdio.h>
#include <vector>

Go to the source code of this file.

Classes

class  Serial
 A class for serial communication. More...
 

Macros

#define FIFO_BUF_SIZE   262144
 
#define sprintf_s(buf, len, ...)   snprintf((buf), (len), __VA_ARGS__)
 
#define PORT_STR   "/dev/ttyACM%u"
 

Macro Definition Documentation

◆ FIFO_BUF_SIZE

#define FIFO_BUF_SIZE   262144

◆ PORT_STR

#define PORT_STR   "/dev/ttyACM%u"

◆ sprintf_s

#define sprintf_s (   buf,
  len,
  ... 
)    snprintf((buf), (len), __VA_ARGS__)