📄 davincievm_aic33_read16.c
字号:
/*
* Copyright 2005 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*
* Not for distribution.
*/
/*
* AIC33 implementation
*
*/
#include "davincievm_aic33.h"
/* ------------------------------------------------------------------------ *
* *
* DAVINCIEVM_AIC33_read16( aic33handle, value ) *
* *
* Read a 16-bit value from the codec *
* *
* ------------------------------------------------------------------------ */
Int16 DAVINCIEVM_AIC33_read16( AIC33_CodecHandle aic33handle, Int16 *value )
{
#ifdef ARM_SIDE
if ( ( MCBSP_SPCR & MCBSP_SPCR_RRDY ) == 0 ) // Check for Rx ready
return 0;
CSL_mcbspRead( mcbsp_handle, CSL_MCBSP_WORDLEN_16, value );
return 1;
#elif DSP_SIDE
if ( ( MCBSP_SPCR & MCBSP_SPCR_RRDY ) == 0 ) // Check for Rx ready
return 0;
*value = MCBSP_DRR_16BIT; // Read 16-bits of data
return 1;
#endif
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -