?? evmdm642_aic23_read.c
字號:
/*
* Copyright 2003 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== evmdm642_aic23_read16.c ========
* EVMDM642_AIC23_read() implementation
*/
#include <evmdm642.h>
#include <evmdm642_aic23.h>
/*
* ======== EVMDM642_AIC23_read ========
* Read a 32-bit value from the codec
*/
Int16 EVMDM642_AIC23_read(EVMDM642_AIC23_CodecHandle hCodec, Uint32 *val)
{
/* If McASP doesn't have new data available, return false */
if ((MCASP_RGETH(EVMDM642_AIC23_hMcASP, SRCTL1) & 0x20) == 0) {
return (FALSE);
}
/* Read the data */
*val = MCASP_RGETH(EVMDM642_AIC23_hMcASP, XBUF1);
return (TRUE);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -