mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-02 20:11:48 +00:00
Add TPMS initial demodulator implementation.
Right now, 2FSK, 19200 baud, +/-38400Hz deviation. No effort is made to check CRC/checksums or decode packets.
This commit is contained in:
@@ -43,6 +43,7 @@ public:
|
||||
ChannelSpectrum = 3,
|
||||
AudioStatistics = 4,
|
||||
BasebandConfiguration = 5,
|
||||
TPMSPacket = 6,
|
||||
Shutdown = 8,
|
||||
AISPacket = 7,
|
||||
MAX
|
||||
@@ -216,6 +217,26 @@ public:
|
||||
AISPacket packet;
|
||||
};
|
||||
|
||||
struct TPMSPacket {
|
||||
std::bitset<1024> payload;
|
||||
size_t bits_received;
|
||||
|
||||
TPMSPacket(
|
||||
) : bits_received { 0 }
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class TPMSPacketMessage : public Message {
|
||||
public:
|
||||
TPMSPacketMessage(
|
||||
) : Message { ID::TPMSPacket }
|
||||
{
|
||||
}
|
||||
|
||||
TPMSPacket packet;
|
||||
};
|
||||
|
||||
class ShutdownMessage : public Message {
|
||||
public:
|
||||
constexpr ShutdownMessage(
|
||||
|
||||
Reference in New Issue
Block a user