mod6.h

来自「无刷直流电机的无传感器控制TI程序」· C头文件 代码 · 共 52 行

H
52
字号
/* =================================================================================
File name:        MOD6.H                     
                    
Originator:	Digital Control Systems Group
			Texas Instruments

Description: 
This file defines handy constants for object initializations
contains prototypes for the functions in MOD6_CNT.asm
and has definitions of structs etc.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 9-15-2000	Release	Rev 1.0                                                   
------------------------------------------------------------------------------*/

#ifndef __MOD6CNT__
#define __MOD6CNT__
/*-----------------------------------------------------------------------------
Define the structure of the MOD6_CNT
(Modulo 6 Counter)
-----------------------------------------------------------------------------*/

typedef struct {

   int trig_in;         /*      Modulo 6 counter trigger input               */
   int cntr;            /*      Modulo 6 counter output                      */

   int  (*calc)();      /*      Pointer to the Calculation Function          */
} MOD6CNT;

typedef MOD6CNT *MOD6CNT_handle;

/*----------------------------------------------------------------------------
 Object Initalizers
 ----------------------------------------------------------------------------*/

#define MOD6CNT_DEFAULTS {0x0,\
                          0x0,\
                          (int (*) (int))mod6cnt_calc\
                         }


/*----------------------------------------------------------------------------
 Function Prototypes
 ----------------------------------------------------------------------------*/

void mod6cnt_calc(MOD6CNT_handle);


#endif  /* __MOD6CNT__ */

⌨️ 快捷键说明

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