23#ifndef INCLUDED_SATNOGS_AX100_MODE5_ENCODER_H
24#define INCLUDED_SATNOGS_AX100_MODE5_ENCODER_H
42 using sptr = std::shared_ptr<ax100_mode5_encoder>;
48 static constexpr size_t length_size = 3;
50 static sptr make(
const std::vector<uint8_t>& preamble,
51 const std::vector<uint8_t>& sync,
54 bool enable_rs =
true);
57 const std::vector<uint8_t>& sync,
68 const size_t d_payload_start;
#define SATNOGS_API
Definition: api.h:19
This encoder implements the AX100 mode 5 framing and coding scheme.
Definition: ax100_mode5_encoder.h:40
ax100_mode5_encoder(const std::vector< uint8_t > &preamble, const std::vector< uint8_t > &sync, crc::type crc, whitening::sptr scrambler, bool enable_rs)
std::shared_ptr< ax100_mode5_encoder > sptr
Definition: ax100_mode5_encoder.h:42
static sptr make(const std::vector< uint8_t > &preamble, const std::vector< uint8_t > &sync, crc::type crc=crc::type::CRC32_C, whitening::sptr scrambler=whitening::make_ccsds(), bool enable_rs=true)
pmt::pmt_t encode(pmt::pmt_t msg)
type
Predefined CRC types.
Definition: crc.h:51
@ CRC32_C
Alias: CRC-16/ACORN, CRC-16/LTE, CRC-16/V-41-MSB, XMODEM, ZMODEM.
Abstract class defining the API of the SatNOGS Encoders.
Definition: encoder.h:44
std::shared_ptr< whitening > sptr
Definition: whitening.h:42
static sptr make_ccsds(bool msb=false)
Definition: amsat_duv_decoder.h:29