dlog4ch.h
来自「有关TI公司用于交流电机控制程序(包含文档以及源码)」· C头文件 代码 · 共 60 行
H
60 行
/* ============================================================================
File name: DLOG4CH.H
Originator : Advanced Embeeded Control (AEC)
Texas Instruments Inc.
Description:
Header file containing constants, data type definitions, and
function prototypes for the DATALOG module.
===============================================================================
History:
-------------------------------------------------------------------------------
18-5-2001 (DD/MM/YYYY) Release Rev 1.0
------------------------------------------------------------------------------*/
#ifndef __DLOG4CH_H__
#define __DLOG4CH_H__
#define NULL 0
typedef struct { long task; // Variable: Task address pointer
int *iptr1; // Input: First input pointer (Q15)
int *iptr2; // Input: Second input pointer (Q15)
int *iptr3; // Input: Third input pointer (Q15)
int *iptr4; // Input: Fourth input pointer (Q15)
int trig_value; // Input: Trigger point (Q15)
int prescalar; // Parameter: Data log prescale
int skip_cntr; // Variable: Data log skip counter
int cntr; // Variable: Data log counter
long write_ptr; // Variable: Graph address pointer
int size; // Parameter: Maximum data buffer
int (*init)(); // Pointer to init function
int (*update)(); // Pointer to update function
} DLOG_4CH;
typedef DLOG_4CH *DLOG_4CH_handle;
void DLOG_4CH_init(void *);
void DLOG_4CH_update(void *);
/*=============================================================================
Default initalizer for the DLOG_4CH object.
==============================================================================*/
#define DLOG_4CH_DEFAULTS { 0UL, \
NULL, \
NULL, \
NULL, \
NULL, \
0, \
1, \
0, \
0, \
0UL, \
0x400, \
(int (*)(int))DLOG_4CH_init, \
(int (*)(int))DLOG_4CH_update }
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?