1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-27 05:32:04 +00:00
r65emu/sound_dac.h

16 lines
273 B
C
Raw Normal View History

2018-09-11 16:33:18 +00:00
#ifndef __SOUND_DAC_H__
#define __SOUND_DAC_H__
2018-09-06 08:18:23 +00:00
2018-09-11 16:33:18 +00:00
class DAC {
2018-09-06 08:18:23 +00:00
public:
void begin(unsigned pin, unsigned freq);
const uint8_t *play(const uint8_t *bytes, unsigned size);
2018-09-06 12:25:24 +00:00
void on_tick();
private:
volatile const uint8_t *_bytes;
volatile unsigned _size, _off;
2018-09-06 08:18:23 +00:00
};
#endif