JaiaBot  1.19.0
JaiaBot micro-AUV software
jaiabot::lora Namespace Reference

Classes

class  SerialThreadLoRaFeather
 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 87 of file serial.h.

◆ serialize()

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

Definition at line 106 of file serial.h.

Variable Documentation

◆ BITS_IN_BYTE

constexpr int jaiabot::lora::BITS_IN_BYTE = 8
constexpr

Definition at line 39 of file serial.h.

◆ CRC_SIZE

constexpr auto jaiabot::lora::CRC_SIZE = 4
constexpr

Definition at line 42 of file serial.h.

◆ SERIAL_MAGIC

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

Definition at line 36 of file serial.h.

◆ SERIAL_MAGIC_BYTES

constexpr int jaiabot::lora::SERIAL_MAGIC_BYTES = 4
constexpr

Definition at line 37 of file serial.h.

◆ SERIAL_MAX_SIZE

constexpr auto jaiabot::lora::SERIAL_MAX_SIZE
constexpr
Initial value:

Definition at line 40 of file serial.h.

◆ SIZE_BYTES

constexpr int jaiabot::lora::SIZE_BYTES = 2
constexpr

Definition at line 38 of file serial.h.

jaiabot::lora::SERIAL_MAGIC_BYTES
constexpr int SERIAL_MAGIC_BYTES
Definition: serial.h:37
jaiabot::lora::BITS_IN_BYTE
constexpr int BITS_IN_BYTE
Definition: serial.h:39
jaiabot::lora::SIZE_BYTES
constexpr int SIZE_BYTES
Definition: serial.h:38