📄 f28xpwm.h
字号:
/* ==================================================================================
File name: F28XPWM.H
Originator: Digital Control Systems Group
Texas Instruments
Description:
Header file containing data type and object definitions and
initializers. Also contains prototypes for the functions in F28XPWM.C.
=====================================================================================
History:
-------------------------------------------------------------------------------------
05-15-2002 Release Rev 1.0
---------------------------------------------------------------------------------- */
/*-----------------------------------------------------------------------------
Define the structure of the PWM Driver Object
-----------------------------------------------------------------------------*/
typedef struct {
int n_period; /* Input: PWM Half-Period in CPU clock cycles (Q0) */
int Mfunc_p; /* Input: Period scaler (Q15) */
int Mfunc_c1; /* Input: PWM 1&2 Duty cycle ratio (Q15) */
int Mfunc_c2; /* Input: PWM 3&4 Duty cycle ratio (Q15) */
int Mfunc_c3; /* Input: PWM 5&6 Duty cycle ratio (Q15) */
void (*update)(); /* Pointer to the update function */
} PWMGEN ;
/*-----------------------------------------------------------------------------
Define a PWMGEN_handle
-----------------------------------------------------------------------------*/
typedef PWMGEN *PWMGEN_handle;
/*------------------------------------------------------------------------------
Default Initializers for the F28X PWMGEN Object
------------------------------------------------------------------------------*/
#define PWMGEN_DEFAULTS { 3750, \
0x7FFF, \
0x4000, \
0x4000, \
0x4000, \
(void (*)(long))F28X_EV1_PWM_Update }
/*------------------------------------------------------------------------------
Prototypes for the functions in F28XPWM.C
------------------------------------------------------------------------------*/
void F28X_EV1_PWM_Update(PWMGEN_handle);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -