?? spce061.h
字號(hào):
#define C_ADC_CH7 0x0007 //IOA6
//B15 --> RDY
//B14 --> Fail B
//-----------------------------------------------------------------------------------//
extern unsigned int Get_ADC_LineIn_Data(void);
//B15-B6 --> Data
//-----------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------//
extern void Set_DAC2_Data(unsigned int);
extern unsigned int Get_DAC2_Data(void);
//B15-B6 --> Data
extern void Set_DAC1_Data(unsigned int);
extern unsigned int Get_DAC1_Data(void);
//B15-B6 --> Data
extern void Set_DAC_Ctrl(unsigned int);
//B8..B7
#define C_DA1_Direct 0x0000 // DAC1 latch
#define C_DA1_LatchA 0x0080 //
#define C_DA1_LatchB 0x0100 //
#define C_DA1_LatchAB 0x0180 //
//B6..B5
#define C_DA2_Direct 0x0000 // DAC2 latch
#define C_DA2_LatchA 0x0020 //
#define C_DA2_LatchB 0x0040 //
#define C_DA2_LatchAB 0x0060 //
//B4..B3
#define C_AD_Direct 0x0000 // A/D MIC_IN latch
#define C_AD_LatchA 0x0008 //
#define C_AD_LatchB 0x0010 //
#define C_AD_LatchAB 0x0018 //
//-----------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------//
extern void Set_LVD_Ctrl(unsigned int);
extern unsigned int Get_LVD_Ctrl(void);
//... Define for P_LVD_Ctrl ...................
#define C_LVD24V 0x0000 // LVD = 2.4V (default)
#define C_LVD28V 0x0001 // LVD = 2.8V
#define C_LVD32V 0x0002 // LVD = 3.2V
//B15 Result of LVD
//-----------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------//
extern void Set_SIO_Ctrl(unsigned int);
extern unsigned int Get_SIO_Ctrl(void);
//B1..B0
#define C_SIO_Addr8 0x0002 // Address = 8
#define C_SIO_Addr16 0x0000 // Address = 16 (default)
#define C_SIO_Addr24 0x0003 // Address = 24
//B4..B3
#define C_SIO_Clk_Div_16 0x0000 // CPU CLK/16 (default)
#define C_SIO_Clk_Div_4 0x0008 // CPU CLK/4
#define C_SIO_Clk_Div_8 0x0010 // CPU CLK/8
#define C_SIO_Clk_Div_32 0x0018 // CPU CLK/32
//B5
#define C_SIO_RW_Dis 0x0020 // Read /Write control bit applied disable
#define C_SIO_RW_ENB 0x0000 // Read /Write control bit applied
//B6
#define C_SIO_RD 0x0000 // SIO Read
#define C_SIO_WR 0x0040 // SIO Write
//B7
#define C_SIO_ENB 0x0080 // Enable SIO Configuration
#define C_SIO_Dis 0x0000 // Disable SIO
//-----------------------------------------------------------------------------------//
extern void Set_SIO_Data(unsigned int);
extern unsigned int Get_SIO_Data(void);
//B7..B0 --> Data
extern void Set_SIO_Address(unsigned long int);
extern unsigned long int Get_SIO_Address(void);
//B7..B0 --> Address Low
//B15..B7 --> Address Mid
//B23..B16 --> Address High
extern void Set_SIO_Addr_Low(unsigned int);
extern unsigned int Get_SIO_Addr_Low(void);
//B7..B0 --> Data
extern void Set_SIO_Addr_Mid(unsigned int);
extern unsigned int Get_SIO_Addr_Mid(void);
//B7..B0 --> Data
extern void Set_SIO_Addr_High(unsigned int);
extern unsigned int Get_SIO_Addr_High(void);
//B7..B0 --> Data
extern void Set_SIO_Start(void);
extern unsigned int Get_SIO_Start(void);
//B7 --> Busy
extern void Set_SIO_Stop(void);
//-----------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------//
extern void Set_UART_Command1(unsigned int);
//B2
#define C_UART_Parity_ENB 0x0004 //Enable UART Parity Enable
//B3
#define C_UART_Parity_Odd 0x0000 //Enable UART Parity Odd
#define C_UART_Parity_Even 0x0008 //Enable UART Parity Even
//B5
#define C_UART_Reset 0x0020 //UART Internal Reset
//B6
#define C_UART_Tx_IRQ_ENB 0x0040 //UART TX IRQ Enable
//B7
#define C_UART_Rx_IRQ_ENB 0x0080 //UART RX IRQ Enable
//-----------------------------------------------------------------------------------//
extern void Set_UART_Command2(unsigned int);
//B6
#define C_UART_Tx_Pin_ENB 0x0040 //UART TX Pin Enable
//B7
#define C_UART_Rx_Pin_ENB 0x0080 //UART RX Pin Enable
extern unsigned int Get_UART_Command2(void);
//B3
#define C_UART_Parity_Error 0x0008 //UART Parity Error
//B4
#define C_UART_OverRun_Error 0x0010 //UART Over Run Error
//B5
#define C_UART_Frame_Error 0x0020 //UART Frame Error
//B6
#define C_UART_Tx_RDY 0x0040 //UART TX Ready
//B7
#define C_UART_Rx_RDY 0x0080 //UART RX Ready
//-----------------------------------------------------------------------------------//
//B7..B0
extern void Set_UART_Data(unsigned int);
extern unsigned int Get_UART_Data(void);
//B15..B0
extern void Set_UART_BaudRate(unsigned int);
extern unsigned int Get_UART_BaudRate(void);
#define C_BaudRate_2400 0x1400 //UART 2400
#define C_BaudRate_4800 0x0A00 //UART 4800
#define C_BaudRate_9600 0x0500 //UART 9600
#define C_BaudRate_19200 0x0280 //UART 19200
#define C_BaudRate_38400 0x0140 //UART 38400
#define C_BaudRate_48000 0x0100 //UART 48000
//B7..B0
extern void Set_UART_BaudScalarLow(unsigned int);
extern unsigned int Get_UART_BaudScalarLow(void);
//B7..B0
extern void Set_UART_BaudScalarHigh(unsigned int);
extern unsigned int Get_UART_BaudScalarHigh(void);
//-----------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------//
extern void _Mic_Input_Ctrl(unsigned int,unsigned int);
// 1:Set DAC trigger type
// C_DA1_Direct 0x0000 // DAC1 latch
// C_DA1_LatchA 0x0080 //
// C_DA1_LatchB 0x0100 //
// C_DA1_LatchAB 0x0180 //
//------------------------------------------------------------
// C_DA2_Direct 0x0000 // DAC2 latch
// C_DA2_LatchA 0x0020 //
// C_DA2_LatchB 0x0040 //
// C_DA2_LatchAB 0x0060 //
//-------------------------------------------------------------
// C_AD_Direct 0x0000 // A/D MIC_IN latch
// C_AD_LatchA 0x0008 //
// C_AD_LatchB 0x0010 //
// C_AD_LatchAB 0x0018 //
//--------------------------------------------------------------
// User can set 3 of above list, like
// C_DA1_LatchA+C_DA2_LatchB+C_AD_LatchA or
// C_DA2_LatchAB+C_AD_LatchA
//
// 2:Select AGC enable/disable
// C_AGCE 0x0004 //B3 //Have AGC
// C_AGCN 0x0000 //B3 //No AGC
//-----------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------//
extern void _Line_Input_Ctrl(unsigned int,unsigned int);
// 1:Set Line in channel
// C_ADC_CH1 0x0001 //IOA0
// C_ADC_CH2 0x0002 //IOA1
// C_ADC_CH3 0x0003 //IOA2
// C_ADC_CH4 0x0004 //IOA3
// C_ADC_CH5 0x0005 //IOA4
// C_ADC_CH6 0x0006 //IOA5
// C_ADC_CH7 0x0007 //IOA6
// 2:Set Vextref enable/disable and V2 Ref enable/disable
// C_VEXTREF_ENB 0x0080 //B7 //Have Ext REF Voltage
// C_VEXTREF_DIS 0x0000 //B7 //No Ext REF Voltage
// C_V2VREFB_DIS 0x0100 //B8 //No 2V Voltage
// C_V2VREFB_ENB 0x0000 //B8 //Have 2V Voltage
//
extern void FIQ_ON();
extern void FIQ_OFF();
extern void IRQ_ON();
extern void IRQ_OFF();
extern void INT_FIQ();
extern void INT_IRQ();
extern void INT_FIQ_IRQ();
extern void INT_OFF();
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -