Update the breakpoint feature
[clinton/Virtual-Jaguar-Rx.git] / 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
24 // DAC defines
25
26 #define SMODE_INTERNAL 0x01
27 #define SMODE_MODE 0x02
28 #define SMODE_WSEN 0x04
29 #define SMODE_RISING 0x08
30 #define SMODE_FALLING 0x10
31 #define SMODE_EVERYWORD 0x20
32
33 #endif // __DAC_H__