JaiaBot 3.0.0
JaiaBot micro-AUV software
Loading...
Searching...
No Matches
serial_crc32.h File Reference
#include <boost/asio.hpp>
#include <string>
#include <goby/middleware/io/detail/io_interface.h>
#include <goby/middleware/io/detail/serial_interface.h>
#include <goby/version.h>
#include "jaiabot/crc/crc32.h"
Include dependency graph for serial_crc32.h:

Go to the source code of this file.

Classes

class  jaiabot::serial::SerialThreadCRC32< line_in_group, line_out_group, publish_layer, subscribe_layer, ThreadType, use_indexed_groups >
 Reads/Writes message packages from/to serial port. More...

Namespaces

namespace  goby
namespace  goby::middleware
namespace  goby::middleware::protobuf
namespace  jaiabot
namespace  jaiabot::serial

Functions

static const std::shared_ptr< goby::middleware::protobuf::IOData > jaiabot::serial::encode_frame (const std::string &data)
static const std::string jaiabot::serial::decode_frame (const std::string &frame_data)
uint32_t calculate_crc32 (const void *buf, size_t len, uint32_t initial=0)

Variables

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

Function Documentation

◆ calculate_crc32()

uint32_t crc::calculate_crc32 ( const void * buf,
size_t len,
uint32_t initial = 0 )

Definition at line 43 of file crc32.h.