data_log.h
来自「基于TMS320F2812的电动机控制源码(使用C语言)」· C头文件 代码 · 共 46 行
H
46 行
/* =================================================================================
File name: DATA_LOG.H
Originator: newimage R&D
Description:
Header file containing constants, data type definitions, and
function prototypes for the DATALOG module.
=====================================================================================
History:
-------------------------------------------------------------------------------------
05-15-2002 Release Rev 1.0
------------------------------------------------------------------------------*/
#ifndef _DATALOG_H
#define _DATALOG_H
#define NUMBER_SAMPLES 6000
/* change "int" to "long" or "float" according to variable type */
typedef long type_data;
typedef struct {
int index;
void (*init)(); /* Pointer to update function */
void (*update)(); /* Pointer to update function */
} DATALOG;
/*-----------------------------------------------------------------------------
Default initalizer for the DATALOG object.
-----------------------------------------------------------------------------*/
#define DATALOG_DEFAULTS { 0, \
(void (*)(long))data_log_init,\
(void (*)(long))data_log_update }
/*------------------------------------------------------------------------------
Prototypes for the functions in DATA_LOG.C
------------------------------------------------------------------------------*/
void data_log_update(DATALOG *);
void data_log_init(DATALOG *);
#endif /* datalog.h */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?