mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 01:15:38 -04:00
POCSAG TX: Support for numeric only and address only messages
This commit is contained in:
parent
c72b490d49
commit
21de81bb85
7 changed files with 179 additions and 72 deletions
|
@ -49,6 +49,12 @@ enum OutputType : uint32_t {
|
|||
MESSAGE
|
||||
};
|
||||
|
||||
enum MessageType : uint32_t {
|
||||
ADDRESS_ONLY,
|
||||
NUMERIC_ONLY,
|
||||
ALPHANUMERIC
|
||||
};
|
||||
|
||||
struct POCSAGState {
|
||||
uint32_t function;
|
||||
uint32_t address;
|
||||
|
@ -69,7 +75,9 @@ std::string bitrate_str(BitRate bitrate);
|
|||
std::string flag_str(PacketFlag packetflag);
|
||||
|
||||
void insert_BCH(BCHCode& BCH_code, uint32_t * codeword);
|
||||
void pocsag_encode(BCHCode& BCH_code, const std::string text, const uint32_t address, std::vector<uint32_t>& codewords);
|
||||
uint32_t get_digit_code(char code);
|
||||
void pocsag_encode(const MessageType type, BCHCode& BCH_code, const std::string message,
|
||||
const uint32_t address, std::vector<uint32_t>& codewords);
|
||||
bool pocsag_decode_batch(const POCSAGPacket& batch, POCSAGState * const state);
|
||||
|
||||
} /* namespace pocsag */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue