⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 impl.h

📁 TI的digital motor control lib的源代码。了解TI的编程规范
💻 H
字号:
/* =================================================================================
File name:        IMPL.H                     
                    
Originator:	Digital Control Systems Group
			Texas Instruments

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

#ifndef __IMPULSE__
#define __IMPULSE__

/*-----------------------------------------------------------------------------
Define the structure of the IMPULSE
(Implements a periodic impulse function.This is the impulse generator module)
-----------------------------------------------------------------------------*/

typedef struct   {
   int period;     /* Period of output impulses in number of sampling cycles */
   int out;        /* Impulse generator output                               */
   int skpcnt;

   int (*calc)();  /* Pointer to the Calculation function                    */
   }IMPULSE;

 typedef IMPULSE *IMPULSE_handle;
/*----------------------------------------------------------------------------
 Object Initalizers
 ----------------------------------------------------------------------------*/

#define IMPULSE_DEFAULTS  { 0x1000, \
                            0x0,    \
                            0x0,    \
                            (int (*) (int))impulse_calc \
                           }

/*----------------------------------------------------------------------------
 Function prototypes
 ----------------------------------------------------------------------------*/

void impulse_calc (IMPULSE_handle);

#endif     /*__IMPULSE__ */

⌨️ 快捷键说明

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