21 #ifndef INCLUDED_CCSDS_GENERATECLTU_IMPL_H 22 #define INCLUDED_CCSDS_GENERATECLTU_IMPL_H 26 #define BCH_INFORMATION_BLOCK 7 28 typedef unsigned char crc;
29 #define WIDTH (8 * sizeof(crc)) 30 #define TOPBIT (1 << (WIDTH - 1)) 31 #define POLYNOMIAL 0x8A 32 #define INITIAL_REMAINDER 0x00 39 unsigned char *crcTable;
41 void cltu(pmt::pmt_t pmt_msg);
44 void bchEncoder(std::vector<unsigned char> &message);
45 void crcEncoder(std::vector<unsigned char> &message,
const crc initial_remainder);
51 int work(
int noutput_items,
52 gr_vector_const_void_star &input_items,
53 gr_vector_void_star &output_items);
Definition: Scrambler.h:23
Definition: cc_depuncture.h:28
<+description of block+>
Definition: generateCLTU.h:36
unsigned char crc
Definition: generateCLTU_impl.h:28
unsigned char uint8_t
Definition: generateCLTU_impl.h:27
void scramble(uint8_t *data, uint32_t length)
Definition: Scrambler_CCSDS.h:44
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
generateCLTU_impl(int scramble)
Definition: generateCLTU_impl.h:36