📄 ad50.h
字号:
/*
* Copyright 2002 by Texas Instruments Incorporated.
* All rights reserved. Property of Texas Instruments Incorporated.
* Restricted rights to use, duplicate or disclose this code are
* granted through contract.
*
*/
/* "@(#) ReferenceFrameworks 1.00.00 03-08-02 (swat-b12)" */
/*
* ======== ad50.h ========
*/
#ifndef AD50_
#define AD50_
#include <std.h>
#include <csl.h>
#include <csl_mcbsp.h>
/*
* Codec registers are kept in an object having the structure below.
*/
typedef struct AD50_Params {
Uns control1;
Uns control2;
Uns control3;
Uns control4;
} AD50_Params;
#define AD50_DEFAULTPARAMS { \
0x80, /* Register 1 (CR1) -- software reset */ \
0x00, /* Register 2 (CR2) -- */ \
0x00, /* Register 3 (CR3) -- Ph. mode Dis./15 bit ADC/No Anal LB*/ \
0x90 /* Register 4 (CR4) - Gain 0dB, Bypass PLL, fs = 16kHz */ \
/* MCLK is 8.192MHz for DSK5402 */ \
/* Use 0x90 for 16kHz, 0xa0 for 8kHz */ \
/* 8.192MHz / (512 * 2) = 8kHz */ \
}
/*
* ======== AD50_init ========
*/
extern Void AD50_init();
/*
* ======== AD50_setParams ========
*
* This function takes a pointer to the object of type AD50_Params,
* and writes all 4 control words found in it to the codec.
*/
extern Void AD50_setParams( MCBSP_Handle hMcbsp, AD50_Params *params );
#endif /* AD50_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -