]> Shamusworld >> Repos - virtualjaguar/blob - src/dac.h
8149ff055ffbb6e0c8c8df7194075a0e061b53ba
[virtualjaguar] / src / dac.h
1 //
2 // DAC.H: Header file
3 //
4
5 #ifndef __DAC_H__
6 #define __DAC_H__
7
8 #include "memory.h"
9
10 void DACInit(void);
11 void DACReset(void);
12 void DACPauseAudioThread(bool state = true);
13 void DACDone(void);
14 //int GetCalculatedFrequency(void);
15
16 // DAC memory access
17
18 void DACWriteByte(uint32_t offset, uint8_t data, uint32_t who = UNKNOWN);
19 void DACWriteWord(uint32_t offset, uint16_t data, uint32_t who = UNKNOWN);
20 uint8_t DACReadByte(uint32_t offset, uint32_t who = UNKNOWN);
21 uint16_t DACReadWord(uint32_t offset, uint32_t who = UNKNOWN);
22
23 #endif  // __DAC_H__