RISC-V/V203F6P6/gsm/GsmDecoder.h

23 lines
527 B
C
Raw Normal View History

2025-01-30 19:27:19 +01:00
#ifndef GSMDECODER_H
#define GSMDECODER_H
#include "gpio.h"
#include "oneway.h"
#include "gsm.h"
#include "norflash.h"
static constexpr int GSMLEN = 160;
class GsmDecoder : public OneWay<uint16_t> {
GpioClass & led;
NorFlash flash;
GsmStatic gsm;
unsigned count;
bool pass;
gsm_signal tmp_buf [GSMLEN];
public:
explicit GsmDecoder(GpioClass & io) noexcept;
unsigned Send (uint16_t * ptr, const unsigned len) override;
};
#endif // GSMDECODER_H