JaiaBot 3.0.0
JaiaBot micro-AUV software
Loading...
Searching...
No Matches
jaiabot::lora Namespace Reference

Classes

class  SerialThreadFletcher16
 Reads/Writes LoRa Adafruit feather message packages from/to serial port. More...

Functions

template<typename ProtobufMessage>
ProtobufMessage parse (const goby::middleware::protobuf::IOData &io)
template<typename ProtobufMessage>
std::shared_ptr< goby::middleware::protobuf::IOData > serialize (const ProtobufMessage &pb_msg)

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
constexpr auto CRC_SIZE = 4

Function Documentation

◆ parse()

template<typename ProtobufMessage>
ProtobufMessage jaiabot::lora::parse ( const goby::middleware::protobuf::IOData & io)

Definition at line 89 of file serial_fletcher16.h.

◆ serialize()

template<typename ProtobufMessage>
std::shared_ptr< goby::middleware::protobuf::IOData > jaiabot::lora::serialize ( const ProtobufMessage & pb_msg)

Definition at line 108 of file serial_fletcher16.h.

Variable Documentation

◆ BITS_IN_BYTE

int jaiabot::lora::BITS_IN_BYTE = 8
constexpr

Definition at line 41 of file serial_fletcher16.h.

◆ CRC_SIZE

auto jaiabot::lora::CRC_SIZE = 4
constexpr

Definition at line 44 of file serial_fletcher16.h.

◆ SERIAL_MAGIC

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

Definition at line 38 of file serial_fletcher16.h.

◆ SERIAL_MAGIC_BYTES

int jaiabot::lora::SERIAL_MAGIC_BYTES = 4
constexpr

Definition at line 39 of file serial_fletcher16.h.

◆ SERIAL_MAX_SIZE

auto jaiabot::lora::SERIAL_MAX_SIZE
constexpr
Initial value:
=
constexpr int SERIAL_MAGIC_BYTES
constexpr int BITS_IN_BYTE
constexpr int SIZE_BYTES

Definition at line 42 of file serial_fletcher16.h.

◆ SIZE_BYTES

int jaiabot::lora::SIZE_BYTES = 2
constexpr

Definition at line 40 of file serial_fletcher16.h.