librpitx/src/atv.h

27 lines
552 B
C
Raw Normal View History

2018-12-23 22:25:11 +08:00
#ifndef DEF_ATV
#define DEF_ATV
#include "stdint.h"
#include "stdio.h"
#include "dma.h"
#include "gpio.h"
2019-01-02 05:45:37 +08:00
class atv:public dma,public clkgpio,public pwmgpio,public pcmgpio
2018-12-23 22:25:11 +08:00
{
protected:
uint64_t tunefreq;
bool syncwithpwm;
uint32_t Originfsel;
uint32_t SampleRate;
public:
atv(uint64_t TuneFrequency,uint32_t SR,int Channel,uint32_t FifoSize);
~atv();
void SetDmaAlgo();
2019-01-02 05:45:37 +08:00
void SetFrame(unsigned char *Luminance,size_t Lines);
//void SetTvSample(uint32_t Index,float Amplitude);
//void SetTvSamples(float *sample,size_t Size);
2018-12-23 22:25:11 +08:00
};
#endif