mod6_cnt.h
来自「DSP2812开发的无刷直流电机控制程序,希望对大家有帮助!」· C头文件 代码 · 共 36 行
H
36 行
/* =================================================================================
File name: MOD6_CNT.H (IQ version)
Originator: Digital Control Systems Group
Texas Instruments
Description:
Header file containing constants, data type definitions, and
function prototypes for the MOD6CNT module.
=====================================================================================
History:
-------------------------------------------------------------------------------------
04-15-2005 Version 3.20
------------------------------------------------------------------------------*/
#ifndef __MOD6_CNT_H__
#define __MOD6_CNT_H__
typedef struct { Uint32 TrigInput; // Input: Modulo 6 counter trigger input - Q0 (0x00000000 or 0x00007FFF)
Uint32 Counter; // Output: Modulo 6 counter output - Q0 (0,1,2,3,4,5)
void (*calc)(); // Pointer to calculation function
} MOD6CNT;
typedef MOD6CNT *MOD6CNT_handle;
/*-----------------------------------------------------------------------------
Default initalizer for the MOD6CNT object.
-----------------------------------------------------------------------------*/
#define MOD6CNT_DEFAULTS { 0,0, \
(void (*)(Uint32))mod6cnt_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in MOD6_CNT.C
------------------------------------------------------------------------------*/
void mod6cnt_calc(MOD6CNT_handle);
#endif // __MOD_6CNT_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?