mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-04 21:29:36 -04: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:
parent
6cdef7026d
commit
9f6c495fef
7 changed files with 227 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue