mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-15 15:59:39 -05:00
Testing OOK TX baseband module
This commit is contained in:
parent
1b44b22419
commit
787f656500
10 changed files with 399 additions and 81 deletions
|
|
@ -70,8 +70,10 @@ public:
|
|||
XylosConfigure = 22,
|
||||
AFSKConfigure = 23,
|
||||
PWMRSSIConfigure = 24,
|
||||
FIFOSignal = 25,
|
||||
FIFOData = 26,
|
||||
OOKConfigure = 25,
|
||||
|
||||
FIFOSignal = 26,
|
||||
FIFOData = 27,
|
||||
MAX
|
||||
};
|
||||
|
||||
|
|
@ -511,6 +513,27 @@ public:
|
|||
char ccir_message[21];
|
||||
};
|
||||
|
||||
class OOKConfigureMessage : public Message {
|
||||
public:
|
||||
OOKConfigureMessage(
|
||||
const char data[],
|
||||
const uint32_t stream_length,
|
||||
const uint32_t samples_per_bit,
|
||||
const uint8_t repeat
|
||||
) : Message { ID::OOKConfigure },
|
||||
stream_length(stream_length),
|
||||
samples_per_bit(samples_per_bit),
|
||||
repeat(repeat)
|
||||
{
|
||||
memcpy(ook_bitstream, data, 64);
|
||||
}
|
||||
|
||||
char ook_bitstream[64];
|
||||
uint32_t stream_length;
|
||||
uint32_t samples_per_bit;
|
||||
uint8_t repeat;
|
||||
};
|
||||
|
||||
class RetuneMessage : public Message {
|
||||
public:
|
||||
RetuneMessage(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue