BOOTLOADER
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
iis.h
Go to the documentation of this file.
1 #ifndef IIS_H
2 #define IIS_H
3 
4 #define IIS_RUN_FOREVER 0 // 1...TRUE
5 
6 #define IIS_MODE_PLAY 0
7 #define IIS_MODE_RECORD 1
8 
9 #define MMSYSERR_BASE 0
10 #define MMSYSERR_NOERROR (MMSYSERR_BASE+0)
11 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE+2)
12 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE+5)
13 #define MMSYSERR_NOMEM (MMSYSERR_BASE+7)
14 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE+8)
15 
16 #define WAVE_ERR_BASE 32
17 #define WAVE_ERR_BADFORMAT (WAVERR_BASE+0)
18 #define WAVE_ERR_STILLPLAYING (WAVERR_BASE+1)
19 #define WAVE_ERR_UNPREPARED (WAVERR_BASE+2)
20 #define WAVE_ERR_SYNC (WAVERR_BASE+3)
21 
22 typedef struct{
28  INT8U Mode; // play 0,record 1
29  INT8U DmaChannel; // allocate dma channel number...0,1,2,3
30  INT8U CodecIndex; // keep CODEC PARAMETER index
37 
38 extern IIS_CONTROL IisCtrl;
39 void F_IisInit(void);
40 void F_IisSvc(void);
41 extern INT8U F_IisStatusCheck(void);
42 extern INT8U F_IisInUseCheck(void);
43 extern INT8U F_IisAllocate(INT16U UserId);
44 extern INT8U F_IisRelease(INT16U UserId);
45 extern INT8U F_IisReset(INT16U UserId);
46 extern INT8U F_IisPlay(INT16U UserId);
47 extern INT8U F_IisRecord(INT16U UserId);
48 extern INT8U F_IisStop(INT16U UserId,INT8U Data);
49 
50 #endif