evm5509_aic23_write16.c

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

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

/*
 *  ======== evm5509_aic23_write16.c ========
 *  EVM5509_AIC23_write16() implementation
 */
 
#include <evm5509.h>
#include <evm5509_aic23.h>


/*
 *  ======== EVM5509_AIC23_write16 ========
 *  Write a 16-bit value to the codec
 */
CSLBool EVM5509_AIC23_write16(EVM5509_AIC23_CodecHandle hCodec, Int16 val)
{
    /* If McBSP not ready for new data, return false */
    if (!MCBSP_xrdy(EVM5509_AIC23_DATAHANDLE)) {
        return (FALSE);
    }

    /* Write 16 bit data value to DXR */
    MCBSP_write16(EVM5509_AIC23_DATAHANDLE, val);

    EVM5509_waitusec(1);
    
    return(TRUE);  
}

⌨️ 快捷键说明

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