evm5509_aic23_write32.c
来自「dsp 5509a MMC 卡 ID号读取 12Mhzx16=192M」· C语言 代码 · 共 30 行
C
30 行
/*
* Copyright 2004 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== evm5509_aic23_write32.c ========
* evm5509_AIC23_write32() implementation
*/
#include <evm5509.h>
#include <evm5509_aic23.h>
/*
* ======== EVM5509_AIC23_write32 ========
* Write a 32-bit value to the codec
*/
CSLBool EVM5509_AIC23_write32(EVM5509_AIC23_CodecHandle hCodec, Int32 val)
{
/* If McBSP doesn't have new data available, return false */
if(!MCBSP_xrdy(EVM5509_AIC23_DATAHANDLE)) {
return (FALSE);
}
/* Write 32 bit data value to DXR, shift to match format mode */
MCBSP_write32(EVM5509_AIC23_DATAHANDLE, val);
return (TRUE);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?