#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 { 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