📄 evm5509_aic23_read32.c
字号:
/*
* Copyright 2004 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== evm5509_aic23_read32.c ========
* EVM5509_AIC23_read32() implementation
*/
#include <evm5509.h>
#include <evm5509_aic23.h>
/*
* ======== EVM5509_AIC23_read32 ========
* Read a 32-bit value from the codec
*/
CSLBool EVM5509_AIC23_read32(EVM5509_AIC23_CodecHandle hCodec, Int32 *val)
{
/* If McBSP doesn't have new data available, return false */
if (!MCBSP_rrdy(EVM5509_AIC23_DATAHANDLE)) {
return (FALSE);
}
/* Read the data */
*val = (Int32)MCBSP_read32(EVM5509_AIC23_DATAHANDLE);
return (TRUE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -