JaiaBot  1.20.0
JaiaBot micro-AUV software
jaiabot::serial Namespace Reference

Classes

class  SerialThreadCRC32
 Reads/Writes message packages from/to serial port. More...
 

Functions

static const std::shared_ptr< goby::middleware::protobuf::IOData > encode_frame (const std::string &data)
 
static const std::string decode_frame (const std::string &frame_data)
 

Variables

constexpr const char * SERIAL_MAGIC = "JAIA"
 
constexpr int SERIAL_MAGIC_BYTES = 4
 
constexpr int SIZE_BYTES = 2
 
constexpr int BITS_IN_BYTE = 8
 
constexpr auto SERIAL_MAX_SIZE = 2048
 
constexpr auto CRC_SIZE = 4
 

Function Documentation

◆ decode_frame()

static const std::string jaiabot::serial::decode_frame ( const std::string &  frame_data)
static

Definition at line 62 of file serial_crc32.h.

◆ encode_frame()

static const std::shared_ptr<goby::middleware::protobuf::IOData> jaiabot::serial::encode_frame ( const std::string &  data)
static

Definition at line 45 of file serial_crc32.h.

Variable Documentation

◆ BITS_IN_BYTE

constexpr int jaiabot::serial::BITS_IN_BYTE = 8
constexpr

Definition at line 40 of file serial_crc32.h.

◆ CRC_SIZE

constexpr auto jaiabot::serial::CRC_SIZE = 4
constexpr

Definition at line 42 of file serial_crc32.h.

◆ SERIAL_MAGIC

constexpr const char* jaiabot::serial::SERIAL_MAGIC = "JAIA"
constexpr

Definition at line 37 of file serial_crc32.h.

◆ SERIAL_MAGIC_BYTES

constexpr int jaiabot::serial::SERIAL_MAGIC_BYTES = 4
constexpr

Definition at line 38 of file serial_crc32.h.

◆ SERIAL_MAX_SIZE

constexpr auto jaiabot::serial::SERIAL_MAX_SIZE = 2048
constexpr

Definition at line 41 of file serial_crc32.h.

◆ SIZE_BYTES

constexpr int jaiabot::serial::SIZE_BYTES = 2
constexpr

Definition at line 39 of file serial_crc32.h.