⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 evm5509_aic23_write16.c

📁 dsp 5509a MMC 卡 ID号读取 12Mhzx16=192M
💻 C
字号:
/*
 *  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -