evm5509_aic23_closecodec.c
来自「dsp 5509a MMC 卡 ID号读取 12Mhzx16=192M」· C语言 代码 · 共 32 行
C
32 行
/*
* Copyright 2004 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== evm5509_aic23_closeCodec.c ========
* EVM5509_AIC23_closeCodec() implementation
*/
#include <evm5509.h>
#include <evm5509_aic23.h>
/*
* ======== EVM5509_AIC23_closeCodec ========
* Close the codec
*/
void EVM5509_AIC23_closeCodec(EVM5509_AIC23_CodecHandle hCodec)
{
/* Disable codec data path */
EVM5509_rset(EVM5509_MISC, EVM5509_rget(EVM5509_MISC) & 0xfe);
/* Put codec in slave mode to stop driving outputs */
EVM5509_AIC23_rset(hCodec, EVM5509_AIC23_DIGIF, EVM5509_AIC23_rget(hCodec, EVM5509_AIC23_DIGIF) & 0xbf);
/* Turn the codec off */
EVM5509_AIC23_rset(hCodec, EVM5509_AIC23_POWERDOWN, 0xff);
/* Close data channel */
MCBSP_close(EVM5509_AIC23_DATAHANDLE);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?