Testing OOK TX baseband module

This commit is contained in:
furrtek
2016-08-03 08:53:50 +02:00
parent 1b44b22419
commit 787f656500
10 changed files with 399 additions and 81 deletions

View File

@@ -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(

View File

@@ -78,6 +78,7 @@ constexpr image_tag_t image_tag_epar { 'P', 'E', 'P', 'R' };
constexpr image_tag_t image_tag_play_audio { 'P', 'P', 'A', 'U' };
constexpr image_tag_t image_tag_xylos { 'P', 'X', 'Y', 'L' };
constexpr image_tag_t image_tag_rds { 'P', 'R', 'D', 'S' };
constexpr image_tag_t image_tag_ook { 'P', 'O', 'O', 'K' };
constexpr image_tag_t image_tag_hackrf { 'H', 'R', 'F', '1' };