mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-31 10:39:57 -04:00
parent
a27881ecd6
commit
b4da86d491
24 changed files with 1457 additions and 21 deletions
|
@ -109,6 +109,8 @@ public:
|
|||
AudioSpectrum = 52,
|
||||
APRSPacket = 53,
|
||||
APRSRxConfigure = 54,
|
||||
SpectrumPainterBufferRequestConfigure = 55,
|
||||
SpectrumPainterBufferResponseConfigure = 56,
|
||||
MAX
|
||||
};
|
||||
|
||||
|
@ -1143,4 +1145,40 @@ public:
|
|||
uint32_t return_code;
|
||||
};
|
||||
|
||||
class SpectrumPainterBufferConfigureRequestMessage : public Message {
|
||||
public:
|
||||
constexpr SpectrumPainterBufferConfigureRequestMessage(
|
||||
uint16_t width,
|
||||
uint16_t height,
|
||||
bool update,
|
||||
int32_t bw
|
||||
) : Message { ID::SpectrumPainterBufferRequestConfigure },
|
||||
width { width },
|
||||
height { height },
|
||||
update { update },
|
||||
bw { bw }
|
||||
{
|
||||
}
|
||||
|
||||
uint16_t width;
|
||||
uint16_t height;
|
||||
bool update;
|
||||
int32_t bw;
|
||||
};
|
||||
|
||||
using SpectrumPainterFIFO = FIFO<std::vector<uint8_t>>;
|
||||
class SpectrumPainterBufferConfigureResponseMessage : public Message {
|
||||
public:
|
||||
static constexpr size_t fifo_k = 2;
|
||||
|
||||
constexpr SpectrumPainterBufferConfigureResponseMessage(
|
||||
SpectrumPainterFIFO* fifo
|
||||
) : Message { ID::SpectrumPainterBufferResponseConfigure },
|
||||
fifo { fifo }
|
||||
{
|
||||
}
|
||||
|
||||
SpectrumPainterFIFO* fifo { nullptr };
|
||||
};
|
||||
|
||||
#endif/*__MESSAGE_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue