📄 dgn_print.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 + -