Go to the documentation of this file.00001 #ifndef _DEV_HXCODEC_H_
00002 #define _DEV_HXCODEC_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #include <cfg/audio.h>
00040 #include <sys/device.h>
00041
00051
00052
00053 #ifndef AUDIO_DAC_MIN_GAIN
00054 #define AUDIO_DAC_MIN_GAIN -73
00055 #endif
00056 #ifndef AUDIO_DAC_MAX_GAIN
00057 #define AUDIO_DAC_MAX_GAIN 6
00058 #endif
00059
00060
00061
00062
00063
00064
00065
00066 #define AUDIO_SETWRITETIMEOUT 0x010d
00067 #define AUDIO_GETWRITETIMEOUT 0x010e
00068
00070 #define AUDIO_PLAY 0x3001
00071
00072 #define AUDIO_CANCEL 0x3002
00073 #define AUDIO_GET_STATUS 0x3003
00074 #define AUDIO_GET_PLAYGAIN 0x3004
00075 #define AUDIO_SET_PLAYGAIN 0x3005
00076 #define AUDIO_GET_PBSIZE 0x3006
00077 #define AUDIO_SET_PBSIZE 0x3007
00078 #define AUDIO_GET_PBLEVEL 0x3008
00079 #define AUDIO_GET_PBWLOW 0x3009
00080 #define AUDIO_SET_PBWLOW 0x300A
00081 #define AUDIO_GET_PBWHIGH 0x300B
00082 #define AUDIO_SET_PBWHIGH 0x300C
00083 #define AUDIO_BEEP 0x300F
00084
00085 #define AUDIO_GET_DECINFO 0x3010
00086
00087 #define AUDIO_GET_DECCAPS 0x3011
00088
00089 #define AUDIO_GET_DECFMTS 0x3012
00090
00091 #define AUDIO_SET_DECFMTS 0x3013
00092
00093 #define AUDIO_GET_CODINFO 0x3014
00094
00095 #define AUDIO_GET_CODCAPS 0x3015
00096
00097 #define AUDIO_GET_CODFMTS 0x3016
00098
00099 #define AUDIO_SET_CODFMTS 0x3017
00100
00101 #define AUDIO_GET_MIDINFO 0x3018
00102
00103 #define AUDIO_GET_MIDCAPS 0x3019
00104
00105
00106
00107
00108
00109 #define CODEC_STATUS_IDLE 0
00110 #define CODEC_STATUS_PLAYING 1
00111
00112
00113 extern NUTDEVICE devHelixCodec;
00114
00117 #endif