]> Shamusworld >> Repos - virtualjaguar/blob - src/dac.h
914ff6a5d6e1c11ea176d0b46a63a1ac3ee932b9
[virtualjaguar] / src / dac.h
1 //
2 // DAC.H: Header file
3 //
4
5 #ifndef __DAC_H__
6 #define __DAC_H__
7
8 #include "types.h"
9
10 void DACInit(void);
11 void DACReset(void);
12 void DACDone(void);
13
14 // DAC memory access
15
16 void DACWriteByte(uint32 offset, uint8 data, uint32 who = UNKNOWN);
17 void DACWriteWord(uint32 offset, uint16 data, uint32 who = UNKNOWN);
18 uint8 DACReadByte(uint32 offset, uint32 who = UNKNOWN);
19 uint16 DACReadWord(uint32 offset, uint32 who = UNKNOWN);
20
21 // Global variables
22
23 extern uint16 lrxd, rrxd;                                                       // I2S ports (into Jaguar)
24
25 #endif  // __DAC_H__