mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-08 14:42:33 -04:00
Added basic APRS transmit
Added goertzel algo Updated binary
This commit is contained in:
parent
7fd987a2b4
commit
8573f760be
17 changed files with 376 additions and 76 deletions
|
@ -44,9 +44,10 @@ enum protocol_id_t {
|
|||
class AX25Frame {
|
||||
public:
|
||||
void make_ui_frame(char * const address, const uint8_t control, const uint8_t protocol,
|
||||
uint8_t * const info, size_t length);
|
||||
const std::string& info);
|
||||
|
||||
private:
|
||||
void NRZI_add_bit(const uint32_t bit);
|
||||
void make_extended_field(char * const data, size_t length);
|
||||
void add_byte(uint8_t byte, bool is_flag, bool is_data);
|
||||
void add_data(uint8_t byte);
|
||||
|
@ -54,13 +55,13 @@ private:
|
|||
void add_flag();
|
||||
void flush();
|
||||
|
||||
uint8_t * bb_data_ptr { nullptr };
|
||||
uint16_t * bb_data_ptr { nullptr };
|
||||
uint8_t current_bit { 0 };
|
||||
uint8_t current_byte { 0 };
|
||||
size_t bit_counter { 0 };
|
||||
uint8_t ones_counter { 0 };
|
||||
|
||||
CRC<16> crc_ccitt { 0x1021, 0xFFFF };
|
||||
CRC<16, true, true> crc_ccitt { 0x1021, 0xFFFF, 0xFFFF };
|
||||
};
|
||||
|
||||
} /* namespace ax25 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue