RISC-V/V203F6P6/gsm/GsmDecoder.h
2025-01-30 19:27:19 +01:00

22 lines
527 B
C++

#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