RISC-V/V203/gsm/adcdma.h

22 lines
411 B
C
Raw Normal View History

2024-05-12 16:53:28 +02:00
#ifndef ADCDMA_H
#define ADCDMA_H
#include <stdint.h>
class OneWay;
static constexpr unsigned AHALF_LEN = 120u;
static constexpr unsigned AFULL_LEN = AHALF_LEN * 2u;
class AdcDma {
uint16_t * pL;
uint16_t * pH;
uint16_t buffer [AFULL_LEN];
OneWay * dst;
public:
explicit AdcDma () noexcept;
void attach (OneWay & d) { dst = & d; }
void send (const bool b);
};
#endif // ADCDMA_H