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

📄 dgn_print.c

📁 DSP内核代码
💻 C
字号:
/*
 *  Copyright 2002 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) DSP/BIOS 4.80.208 12-06-02 (barracuda-l19)" */
/*
 *  ======== dgn_print.c ========
 *
 */

#include <std.h>

#include <log.h>

/*
 *  ======== DGN_print2log ========
 *  User function for the DGN user device printData. It takes as an argument
 *  the address of the LOG object where the data stream should be printed.
 */
Void DGN_print2log(Arg arg, Ptr addr, Uns nbytes)
{
    Int      i;
#if _FLOAT_
    Float     *buf = (Float *)addr;
#else
    Int      *buf = (Int *)addr;
#endif

    for (i = 0; i < nbytes / sizeof(Int); i++) {
        LOG_printf((LOG_Obj *)arg, "%d", (Int)buf[i]);
    }
}

⌨️ 快捷键说明

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