evm5509_aic23_powerdown.c

来自「dsp 5509a MMC 卡 ID号读取 12Mhzx16=192M」· C语言 代码 · 共 24 行

C
24
字号
/*
 *  Copyright 2004 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 */

/*
 *  ======== evm5509_aic23_powerDown.c ========
 *  EVM5509_AIC23_powerDown() implementation
 */
 
#include <evm5509.h>
#include <evm5509_aic23.h>

/*
 *  ======== EVM5509_AIC23_powerDown ========
 *  Enable/disable powerdown modes for the DAC and ADC codec subsections
 */
void EVM5509_AIC23_powerDown(EVM5509_AIC23_CodecHandle hCodec, Uint16 sect)
{
    /* Write to codec register */
    EVM5509_AIC23_rset(hCodec, EVM5509_AIC23_POWERDOWN,
        (EVM5509_AIC23_rget(hCodec, EVM5509_AIC23_POWERDOWN) & 0xff00) | (sect & 0xff));
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?