1#ifndef INCLUDED_LORA_ADD_CRC_IMPL_H
2#define INCLUDED_LORA_ADD_CRC_IMPL_H
21 std::vector<uint8_t> m_payload;
27 uint8_t m_payload_len;
48 unsigned int crc16(
unsigned int crcValue,
unsigned char newByte);
70 void forecast(
int noutput_items, gr_vector_int &ninput_items_required);
82 gr_vector_const_void_star &input_items,
83 gr_vector_void_star &output_items);
Definition: add_crc_impl.h:9
add_crc_impl(bool has_crc)
Construct a new add crc impl object.
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
stanard gnuradio function that does the actual computations
~add_crc_impl()
Destroy the add crc impl object.
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
Standard gnuradio function for telling the scheduler how many input items are needed.
This block adds LoRa CRC (Cyclic redundancy check) into the payload if boolean has_crc is True,...
Definition: add_crc.h:38