mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-13 17:05:37 -04:00
Completely useless "about" screen
Paved road for talking Xylos RX and logger Added test button for Xylos TX Fixed jammer crashing after loading second time
This commit is contained in:
parent
1e71a10346
commit
107c212d88
64 changed files with 3599 additions and 56 deletions
|
@ -40,18 +40,21 @@ public:
|
|||
RSSIStatistics = 0,
|
||||
BasebandStatistics = 1,
|
||||
ChannelStatistics = 2,
|
||||
ChannelSpectrum = 3,
|
||||
AudioStatistics = 4,
|
||||
BasebandConfiguration = 5,
|
||||
TPMSPacket = 6,
|
||||
DisplayFrameSync = 3,
|
||||
ChannelSpectrum = 4,
|
||||
AudioStatistics = 5,
|
||||
BasebandConfiguration = 6,
|
||||
TPMSPacket = 7,
|
||||
Shutdown = 8,
|
||||
AISPacket = 7,
|
||||
TXDone = 9,
|
||||
SDCardStatus = 10,
|
||||
Retune = 11,
|
||||
ReadyForSwitch = 12,
|
||||
AFSKData = 13,
|
||||
ModuleID = 14,
|
||||
AISPacket = 9,
|
||||
TXDone = 10,
|
||||
SDCardStatus = 11,
|
||||
Retune = 12,
|
||||
ReadyForSwitch = 13,
|
||||
AFSKData = 14,
|
||||
ModuleID = 15,
|
||||
FIFOSignal = 16,
|
||||
FIFOData = 17,
|
||||
MAX
|
||||
};
|
||||
|
||||
|
@ -176,6 +179,8 @@ typedef enum {
|
|||
TX_JAMMER,
|
||||
TX_XYLOS,
|
||||
|
||||
PLAY_AUDIO,
|
||||
|
||||
NONE,
|
||||
SWITCH = 0xFF
|
||||
} mode_type;
|
||||
|
@ -327,6 +332,34 @@ public:
|
|||
int64_t freq = 0;
|
||||
};
|
||||
|
||||
class DisplayFrameSyncMessage : public Message {
|
||||
public:
|
||||
constexpr DisplayFrameSyncMessage(
|
||||
) : Message { ID::DisplayFrameSync }
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class FIFOSignalMessage : public Message {
|
||||
public:
|
||||
FIFOSignalMessage(
|
||||
) : Message { ID::FIFOSignal }
|
||||
{
|
||||
}
|
||||
|
||||
char signaltype = 0;
|
||||
};
|
||||
|
||||
class FIFODataMessage : public Message {
|
||||
public:
|
||||
FIFODataMessage(
|
||||
) : Message { ID::FIFOData }
|
||||
{
|
||||
}
|
||||
|
||||
int8_t * data;
|
||||
};
|
||||
|
||||
class MessageHandlerMap {
|
||||
public:
|
||||
using MessageHandler = std::function<void(Message* const p)>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue