mod6_cnt.h
来自「TI公司的DSP(LF2407A)编写的有霍尔位置传感器的无刷直流电机控制程序,」· C头文件 代码 · 共 40 行
H
40 行
/* =================================================================================
File name: MOD6.H
Originator: 重庆大学DSP实验室
Description:
This file defines handy constants for object initializations
contains prototypes for the functions in MOD6_CNT.asm
and has definitions of structs etc.
------------------------------------------------------------------------------*/
#ifndef __MOD6CNT__
#define __MOD6CNT__
/*-----------------------------------------------------------------------------
定义 MOD6_CNT模块结构体(Modulo 6 计数器)
-----------------------------------------------------------------------------*/
typedef struct {
int TrigInput; /* Input: Modulo 6 计数器输入Q0 (0x0000 or 0x7FFF) */
int Counter; /* Output: Modulo 6 计数器输出Q0 (0,1,2,3,4,5) */
void (*calc)(); /* Pointer to the Calculation Function */
} MOD6CNT;
typedef MOD6CNT *MOD6CNT_handle;
/*----------------------------------------------------------------------------
Object Initalizers
----------------------------------------------------------------------------*/
#define MOD6CNT_DEFAULTS {0x0,\
0x0,\
(void (*) (int))mod6cnt_calc }
/*----------------------------------------------------------------------------
Function Prototypes
----------------------------------------------------------------------------*/
void mod6cnt_calc(MOD6CNT_handle);
#endif /* __MOD6CNT__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?