mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-06 08:45:01 -04:00
Simplified LCR code a bit
Split modem into modem and serializer Frequency string formatter
This commit is contained in:
parent
90feadd9f5
commit
8c680ff893
18 changed files with 198 additions and 125 deletions
|
@ -31,26 +31,6 @@ namespace modems {
|
|||
|
||||
#define MODEM_DEF_COUNT 7
|
||||
|
||||
enum parity_enum : uint8_t {
|
||||
NONE = 0,
|
||||
EVEN = 1,
|
||||
ODD = 2
|
||||
};
|
||||
|
||||
enum order_enum : uint8_t {
|
||||
MSB_FIRST = 0,
|
||||
LSB_FIRST = 1
|
||||
};
|
||||
|
||||
struct serial_format_t {
|
||||
uint8_t data_bits;
|
||||
parity_enum parity;
|
||||
uint8_t stop_bits;
|
||||
order_enum bit_order;
|
||||
};
|
||||
|
||||
uint8_t symbol_count();
|
||||
|
||||
enum modulation_enum {
|
||||
AFSK = 0,
|
||||
FSK,
|
||||
|
@ -74,11 +54,6 @@ const modem_def_t modem_defs[MODEM_DEF_COUNT] = {
|
|||
{ "V23 M2", AFSK, 1300, 2100, 1200 },
|
||||
{ "RTTY US", SSB, 2295, 2125, 45 },
|
||||
{ "RTTY EU", SSB, 2125, 1955, 45 }
|
||||
|
||||
/*{ "7-Even-1 R", "7E1", 7, EVEN, 1, false, false },
|
||||
{ "7E1 LUT ", "7Ea", 7, EVEN, 1, true, true },
|
||||
{ "7-Odd-1 ", "7o1", 7, ODD, 1, true, false },
|
||||
{ "8-Even-0 ", "8E0", 8, EVEN, 1, true, false }*/
|
||||
};
|
||||
|
||||
void generate_data(const std::string& in_message, uint16_t * out_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue