宏定义 | |
#define | PER_LIB_MCU_MUODEL STC8Ax |
如果没有定义这个宏,默认为STC8Ax。 If the mirco is undefined,select to STC8Ax 更多... | |
#define | PER_LIB_PWM_CTRL 1 |
如果没有定义这个宏,默认为0。 If the mirco is undefined,select to "0" 更多... | |
#define | PER_LIB_PWM_INIT_CTRL 1 |
如果没有定义这个宏,默认为0。 If the mirco is undefined,select to "0" 更多... | |
#define | PER_LIB_PWM_NVIC_CTRL 1 |
如果没有定义这个宏,默认为0。 If the mirco is undefined,select to "0" 更多... | |
#define | PER_LIB_PWM_WORK_CTRL 1 |
如果没有定义这个宏,默认为0。 If the mirco is undefined,select to "0" 更多... | |
#define | PWM_CNT_RTZ_GET_FLAG() (PWMCFG & 0x80) |
#define | PWM_ABD_GET_FLAG() (PWMFDCR & 0x01) |
#define | PWM0_GET_FLAG() (PWMIF & 0x01) |
#define | PWM1_GET_FLAG() (PWMIF & 0x02) |
#define | PWM2_GET_FLAG() (PWMIF & 0x04) |
#define | PWM3_GET_FLAG() (PWMIF & 0x08) |
#define | PWM4_GET_FLAG() (PWMIF & 0x10) |
#define | PWM5_GET_FLAG() (PWMIF & 0x20) |
#define | PWM6_GET_FLAG() (PWMIF & 0x40) |
#define | PWM7_GET_FLAG() (PWMIF & 0x80) |
#define | PWM_CNT_RTZ_CLEAR_FLAG() PWMCFG &= 0x7F |
#define | PWM_ABD_CLEAR_FLAG() PWMFDCR &= 0xFE |
#define | PWM0_CLEAR_FLAG() PWMIF &= 0xFE |
#define | PWM1_CLEAR_FLAG() PWMIF &= 0xFD |
#define | PWM2_CLEAR_FLAG() PWMIF &= 0xFB |
#define | PWM3_CLEAR_FLAG() PWMIF &= 0xF7 |
#define | PWM4_CLEAR_FLAG() PWMIF &= 0xEF |
#define | PWM5_CLEAR_FLAG() PWMIF &= 0xDF |
#define | PWM6_CLEAR_FLAG() PWMIF &= 0xBF |
#define | PWM7_CLEAR_FLAG() PWMIF &= 0x7F |
#define | NVIC_PWM_CNT_PRI(pri) |
#define | NVIC_PWM_ABD_PRI(pri) |
#define | NVIC_PWM_CNT_CTRL(run) do{ PWMCR = (PWMCR & 0xBF) | (run << 6); }while(0) |
#define | NVIC_PWM_ABD_CTRL(run) do{ PWMFDCR = (PWMFDCR & 0xF7) | (run << 3); }while(0) |
#define | NVIC_PWM0_CTRL(run) do{ EAXFR_ENABLE(); PWMxCR(PWM0CR_ADDRESS) = (PWMxCR(PWM0CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define | NVIC_PWM1_CTRL(run) do{ EAXFR_ENABLE(); PWMxCR(PWM1CR_ADDRESS) = (PWMxCR(PWM1CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define | NVIC_PWM2_CTRL(run) do{ EAXFR_ENABLE(); PWMxCR(PWM2CR_ADDRESS) = (PWMxCR(PWM2CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define | NVIC_PWM3_CTRL(run) do{ EAXFR_ENABLE(); PWMxCR(PWM3CR_ADDRESS) = (PWMxCR(PWM3CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define | NVIC_PWM4_CTRL(run) do{ EAXFR_ENABLE(); PWMxCR(PWM4CR_ADDRESS) = (PWMxCR(PWM4CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define | NVIC_PWM5_CTRL(run) do{ EAXFR_ENABLE(); PWMxCR(PWM5CR_ADDRESS) = (PWMxCR(PWM5CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define | NVIC_PWM6_CTRL(run) do{ EAXFR_ENABLE(); PWMxCR(PWM6CR_ADDRESS) = (PWMxCR(PWM6CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define | NVIC_PWM6_CTRL(run) do{ EAXFR_ENABLE(); PWMxCR(PWM6CR_ADDRESS) = (PWMxCR(PWM6CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define | NVIC_PWM7_CTRL(run) do{ EAXFR_ENABLE(); PWMxCR(PWM7CR_ADDRESS) = (PWMxCR(PWM7CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define | PWM0_DUTY_CTRL(fValue, sValue) do{PWMxT1(PWM0T1_ADDRESS) = fValue; PWMxT2(PWM0T2_ADDRESS) = sValue;}while(0) |
#define | PWM1_DUTY_CTRL(fValue, sValue) do{PWMxT1(PWM1T1_ADDRESS) = fValue; PWMxT2(PWM1T2_ADDRESS) = sValue;}while(0) |
#define | PWM2_DUTY_CTRL(fValue, sValue) do{PWMxT1(PWM2T1_ADDRESS) = fValue; PWMxT2(PWM2T2_ADDRESS) = sValue;}while(0) |
#define | PWM3_DUTY_CTRL(fValue, sValue) do{PWMxT1(PWM3T1_ADDRESS) = fValue; PWMxT2(PWM3T2_ADDRESS) = sValue;}while(0) |
#define | PWM4_DUTY_CTRL(fValue, sValue) do{PWMxT1(PWM4T1_ADDRESS) = fValue; PWMxT2(PWM4T2_ADDRESS) = sValue;}while(0) |
#define | PWM5_DUTY_CTRL(fValue, sValue) do{PWMxT1(PWM5T1_ADDRESS) = fValue; PWMxT2(PWM5T2_ADDRESS) = sValue;}while(0) |
#define | PWM6_DUTY_CTRL(fValue, sValue) do{PWMxT1(PWM6T1_ADDRESS) = fValue; PWMxT2(PWM6T2_ADDRESS) = sValue;}while(0) |
#define | PWM7_DUTY_CTRL(fValue, sValue) do{PWMxT1(PWM7T1_ADDRESS) = fValue; PWMxT2(PWM7T2_ADDRESS) = sValue;}while(0) |
枚举 | |
enum | PWMCLKSrc_Type { PWM_SCLK_DIV_1 = 0x00 , PWM_SCLK_DIV_2 = 0x01 , PWM_SCLK_DIV_3 = 0x02 , PWM_SCLK_DIV_4 = 0x03 , PWM_SCLK_DIV_5 = 0x04 , PWM_SCLK_DIV_6 = 0x05 , PWM_SCLK_DIV_7 = 0x06 , PWM_SCLK_DIV_8 = 0x07 , PWM_SCLK_DIV_9 = 0x08 , PWM_SCLK_DIV_10 = 0x09 , PWM_SCLK_DIV_11 = 0x0A , PWM_SCLK_DIV_12 = 0x0B , PWM_SCLK_DIV_13 = 0x0C , PWM_SCLK_DIV_14 = 0x0D , PWM_SCLK_DIV_15 = 0x0E , PWM_SCLK_DIV_16 = 0x0F , PWM_TIMER2_PULSE = 0x1F } |
RST复位方式选择枚举体。 更多... | |
enum | PWMStartLevel_Type { PWM_Start_Low_Level = 0x00 , PWM_Start_High_Level = 0x01 } |
enum | PWMABDSignal_Type { PWM_ABD_P35 = 0x02 , PWM_ABD_COMP = 0x04 } |
enum | PWMABDMode_Type { PWM_COMP_Low_To_High = 0x00 , PWM_COMP_High_To_Low = 0x80 , PWM_P35_Low_To_High = 0x00 , PWM_P35_High_To_Low = 0x40 } |
enum | PWMHoldLevel_Type { PWM_Hold_Normal_Level = 0x00 , PWM_Hold_Low_Level = 0x01 , PWM_Hold_High_Level = 0x02 } |
enum | PWMFlip_Type { PWM_Flip_Null = 0x00 , PWM_Flip_First = 0x05 , PWM_Flip_Second = 0x06 , PWM_Flip_Both = 0x07 } |
#define NVIC_PWM0_CTRL | ( | run | ) | do{ EAXFR_ENABLE(); PWMxCR(PWM0CR_ADDRESS) = (PWMxCR(PWM0CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define NVIC_PWM1_CTRL | ( | run | ) | do{ EAXFR_ENABLE(); PWMxCR(PWM1CR_ADDRESS) = (PWMxCR(PWM1CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define NVIC_PWM2_CTRL | ( | run | ) | do{ EAXFR_ENABLE(); PWMxCR(PWM2CR_ADDRESS) = (PWMxCR(PWM2CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define NVIC_PWM3_CTRL | ( | run | ) | do{ EAXFR_ENABLE(); PWMxCR(PWM3CR_ADDRESS) = (PWMxCR(PWM3CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define NVIC_PWM4_CTRL | ( | run | ) | do{ EAXFR_ENABLE(); PWMxCR(PWM4CR_ADDRESS) = (PWMxCR(PWM4CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define NVIC_PWM5_CTRL | ( | run | ) | do{ EAXFR_ENABLE(); PWMxCR(PWM5CR_ADDRESS) = (PWMxCR(PWM5CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define NVIC_PWM6_CTRL | ( | run | ) | do{ EAXFR_ENABLE(); PWMxCR(PWM6CR_ADDRESS) = (PWMxCR(PWM6CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define NVIC_PWM6_CTRL | ( | run | ) | do{ EAXFR_ENABLE(); PWMxCR(PWM6CR_ADDRESS) = (PWMxCR(PWM6CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define NVIC_PWM7_CTRL | ( | run | ) | do{ EAXFR_ENABLE(); PWMxCR(PWM7CR_ADDRESS) = (PWMxCR(PWM7CR_ADDRESS) & 0xF8) | (run); EAXFR_DISABLE(); }while(0) |
#define NVIC_PWM_ABD_PRI | ( | pri | ) |
#define NVIC_PWM_CNT_PRI | ( | pri | ) |
#define PER_LIB_MCU_MUODEL STC8Ax |
如果没有定义这个宏,默认为STC8Ax。 If the mirco is undefined,select to STC8Ax
#define PER_LIB_PWM_CTRL 1 |
如果没有定义这个宏,默认为0。 If the mirco is undefined,select to "0"
#define PER_LIB_PWM_INIT_CTRL 1 |
如果没有定义这个宏,默认为0。 If the mirco is undefined,select to "0"
#define PER_LIB_PWM_NVIC_CTRL 1 |
如果没有定义这个宏,默认为0。 If the mirco is undefined,select to "0"
#define PER_LIB_PWM_WORK_CTRL 1 |
如果没有定义这个宏,默认为0。 If the mirco is undefined,select to "0"
#define PWM0_CLEAR_FLAG | ( | ) | PWMIF &= 0xFE |
#define PWM0_DUTY_CTRL | ( | fValue, | |
sValue | |||
) | do{PWMxT1(PWM0T1_ADDRESS) = fValue; PWMxT2(PWM0T2_ADDRESS) = sValue;}while(0) |
#define PWM0_GET_FLAG | ( | ) | (PWMIF & 0x01) |
#define PWM1_CLEAR_FLAG | ( | ) | PWMIF &= 0xFD |
#define PWM1_DUTY_CTRL | ( | fValue, | |
sValue | |||
) | do{PWMxT1(PWM1T1_ADDRESS) = fValue; PWMxT2(PWM1T2_ADDRESS) = sValue;}while(0) |
#define PWM1_GET_FLAG | ( | ) | (PWMIF & 0x02) |
#define PWM2_CLEAR_FLAG | ( | ) | PWMIF &= 0xFB |
#define PWM2_DUTY_CTRL | ( | fValue, | |
sValue | |||
) | do{PWMxT1(PWM2T1_ADDRESS) = fValue; PWMxT2(PWM2T2_ADDRESS) = sValue;}while(0) |
#define PWM2_GET_FLAG | ( | ) | (PWMIF & 0x04) |
#define PWM3_CLEAR_FLAG | ( | ) | PWMIF &= 0xF7 |
#define PWM3_DUTY_CTRL | ( | fValue, | |
sValue | |||
) | do{PWMxT1(PWM3T1_ADDRESS) = fValue; PWMxT2(PWM3T2_ADDRESS) = sValue;}while(0) |
#define PWM3_GET_FLAG | ( | ) | (PWMIF & 0x08) |
#define PWM4_CLEAR_FLAG | ( | ) | PWMIF &= 0xEF |
#define PWM4_DUTY_CTRL | ( | fValue, | |
sValue | |||
) | do{PWMxT1(PWM4T1_ADDRESS) = fValue; PWMxT2(PWM4T2_ADDRESS) = sValue;}while(0) |
#define PWM4_GET_FLAG | ( | ) | (PWMIF & 0x10) |
#define PWM5_CLEAR_FLAG | ( | ) | PWMIF &= 0xDF |
#define PWM5_DUTY_CTRL | ( | fValue, | |
sValue | |||
) | do{PWMxT1(PWM5T1_ADDRESS) = fValue; PWMxT2(PWM5T2_ADDRESS) = sValue;}while(0) |
#define PWM5_GET_FLAG | ( | ) | (PWMIF & 0x20) |
#define PWM6_CLEAR_FLAG | ( | ) | PWMIF &= 0xBF |
#define PWM6_DUTY_CTRL | ( | fValue, | |
sValue | |||
) | do{PWMxT1(PWM6T1_ADDRESS) = fValue; PWMxT2(PWM6T2_ADDRESS) = sValue;}while(0) |
#define PWM6_GET_FLAG | ( | ) | (PWMIF & 0x40) |
#define PWM7_CLEAR_FLAG | ( | ) | PWMIF &= 0x7F |
#define PWM7_DUTY_CTRL | ( | fValue, | |
sValue | |||
) | do{PWMxT1(PWM7T1_ADDRESS) = fValue; PWMxT2(PWM7T2_ADDRESS) = sValue;}while(0) |
#define PWM7_GET_FLAG | ( | ) | (PWMIF & 0x80) |
#define PWM_ABD_CLEAR_FLAG | ( | ) | PWMFDCR &= 0xFE |
#define PWM_ABD_GET_FLAG | ( | ) | (PWMFDCR & 0x01) |
#define PWM_CNT_RTZ_CLEAR_FLAG | ( | ) | PWMCFG &= 0x7F |
#define PWM_CNT_RTZ_GET_FLAG | ( | ) | (PWMCFG & 0x80) |
enum PWMABDMode_Type |
enum PWMABDSignal_Type |
enum PWMCLKSrc_Type |
RST复位方式选择枚举体。
RST Reset Select Enumerator.
enum PWMFlip_Type |
enum PWMHoldLevel_Type |
enum PWMStartLevel_Type |
FSCSTATE GPIO_PWM0_SWPort | ( | GPIOSWPort_Type | port | ) |
PWM0切换复用IO函数。
PWM0 switch out port control function.
[in] | port | 复用IO枚举体。IO switch enumerator. |
FSCSTATE GPIO_PWM1_SWPort | ( | GPIOSWPort_Type | port | ) |
PWM1切换复用IO函数。
PWM1 switch out port control function.
[in] | port | 复用IO枚举体。IO switch enumerator. |
FSCSTATE GPIO_PWM2_SWPort | ( | GPIOSWPort_Type | port | ) |
PWM2切换复用IO函数。
PWM2 switch out port control function.
[in] | port | 复用IO枚举体。IO switch enumerator. |
FSCSTATE GPIO_PWM3_SWPort | ( | GPIOSWPort_Type | port | ) |
PWM3切换复用IO函数。
PWM3 switch out port control function.
[in] | port | 复用IO枚举体。IO switch enumerator. |
FSCSTATE GPIO_PWM4_SWPort | ( | GPIOSWPort_Type | port | ) |
PWM4切换复用IO函数。
PWM4 switch out port control function.
[in] | port | 复用IO枚举体。IO switch enumerator. |
FSCSTATE GPIO_PWM5_SWPort | ( | GPIOSWPort_Type | port | ) |
PWM5切换复用IO函数。
PWM5 switch out port control function.
[in] | port | 复用IO枚举体。IO switch enumerator. |
FSCSTATE GPIO_PWM6_SWPort | ( | GPIOSWPort_Type | port | ) |
PWM6切换复用IO函数。
PWM6 switch out port control function.
[in] | port | 复用IO枚举体。IO switch enumerator. |
FSCSTATE GPIO_PWM7_SWPort | ( | GPIOSWPort_Type | port | ) |
PWM7切换复用IO函数。
PWM7 switch out port control function.
[in] | port | 复用IO枚举体。IO switch enumerator. |
FSCSTATE NVIC_PWM0_Init | ( | PWMFlip_Type | flipPoint | ) |
PWM0中断初始化函数,设置触发中断的电平翻转点。
PWM0 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point |
PWM0 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point. |
FSCSTATE NVIC_PWM1_Init | ( | PWMFlip_Type | flipPoint | ) |
PWM1中断初始化函数,设置触发中断的电平翻转点。
PWM1 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point. |
FSCSTATE NVIC_PWM2_Init | ( | PWMFlip_Type | flipPoint | ) |
PWM2中断初始化函数,设置触发中断的电平翻转点。
PWM2 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point |
PWM2 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point. |
FSCSTATE NVIC_PWM3_Init | ( | PWMFlip_Type | flipPoint | ) |
PWM3中断初始化函数,设置触发中断的电平翻转点。
PWM3 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point |
PWM3 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point. |
FSCSTATE NVIC_PWM4_Init | ( | PWMFlip_Type | flipPoint | ) |
PWM4中断初始化函数,设置触发中断的电平翻转点。
PWM4 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point |
PWM4 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point. |
FSCSTATE NVIC_PWM5_Init | ( | PWMFlip_Type | flipPoint | ) |
PWM5中断初始化函数,设置触发中断的电平翻转点。
PWM5 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point |
PWM5 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point. |
FSCSTATE NVIC_PWM6_Init | ( | PWMFlip_Type | flipPoint | ) |
PWM6中断初始化函数,设置触发中断的电平翻转点。
PWM6 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point |
PWM6 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point. |
FSCSTATE NVIC_PWM7_Init | ( | PWMFlip_Type | flipPoint | ) |
PWM7中断初始化函数,设置触发中断的电平翻转点。
PWM7 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point |
PWM7 interrupt initialization function, set the level flip point that triggers the interrupt.
[in] | flipPoint | 电平翻转点 Level flip point. |
FSCSTATE NVIC_PWM_ABD_Init | ( | NVICPri_Type | pri, |
BOOL | run | ||
) |
PWM异常检测中断初始化函数。
PWM abnormal detection NVIC function.
[in] | pri | 中断优先级。interrupt priority. |
[in] | run | 使能控制位。enable control. |
FSCSTATE NVIC_PWM_CNT_Init | ( | NVICPri_Type | pri, |
BOOL | run | ||
) |
PWM计数器中断初始化函数。
PWM Counter NVIC function.
[in] | pri | 中断优先级。interrupt priority. |
[in] | run | 使能控制位。enable control. |
FSCSTATE PWM0_Init | ( | PWMStartLevel_Type | level, |
uint16_t | fValue, | ||
uint16_t | sValue, | ||
BOOL | run | ||
) |
PWM0通道初始化函数,它必须在PWM计数器初始化函数之前调用。
PWM0 road init function,it is best to initialize before the counter.
[in] | level | PWM开始电平。PWM start level. |
[in] | fValue | 第一个电平翻转点。The value of the first reversal point. |
[in] | sValue | 第二个电平翻转点。The value of the second reversal point. |
[in] | run | 运行控制位。Run control bit. |
FSCSTATE PWM1_Init | ( | PWMStartLevel_Type | level, |
uint16_t | fValue, | ||
uint16_t | sValue, | ||
BOOL | run | ||
) |
PWM1通道初始化函数,它必须在PWM计数器初始化函数之前调用。
PWM1 road init function,it is best to initialize before the counter.
[in] | level | PWM开始电平。PWM start level. |
[in] | fValue | 第一个电平翻转点。The value of the first reversal point. |
[in] | sValue | 第二个电平翻转点。The value of the second reversal point. |
[in] | run | 运行控制位。Run control bit. |
FSCSTATE PWM2_Init | ( | PWMStartLevel_Type | level, |
uint16_t | fValue, | ||
uint16_t | sValue, | ||
BOOL | run | ||
) |
PWM2通道初始化函数,它必须在PWM计数器初始化函数之前调用。
PWM2 road init function,it is best to initialize before the counter.
[in] | level | PWM开始电平。PWM start level. |
[in] | fValue | 第一个电平翻转点。The value of the first reversal point. |
[in] | sValue | 第二个电平翻转点。The value of the second reversal point. |
[in] | run | 运行控制位。Run control bit. |
FSCSTATE PWM3_Init | ( | PWMStartLevel_Type | level, |
uint16_t | fValue, | ||
uint16_t | sValue, | ||
BOOL | run | ||
) |
PWM3通道初始化函数,它必须在PWM计数器初始化函数之前调用。
PWM3 road init function,it is best to initialize before the counter.
[in] | level | PWM开始电平。PWM start level. |
[in] | fValue | 第一个电平翻转点。The value of the first reversal point. |
[in] | sValue | 第二个电平翻转点。The value of the second reversal point. |
[in] | run | 运行控制位。Run control bit. |
FSCSTATE PWM4_Init | ( | PWMStartLevel_Type | level, |
uint16_t | fValue, | ||
uint16_t | sValue, | ||
BOOL | run | ||
) |
PWM4通道初始化函数,它必须在PWM计数器初始化函数之前调用。
PWM4 road init function,it is best to initialize before the counter.
[in] | level | PWM开始电平。PWM start level. |
[in] | fValue | 第一个电平翻转点。The value of the first reversal point. |
[in] | sValue | 第二个电平翻转点。The value of the second reversal point. |
[in] | run | 运行控制位。Run control bit. |
FSCSTATE PWM5_Init | ( | PWMStartLevel_Type | level, |
uint16_t | fValue, | ||
uint16_t | sValue, | ||
BOOL | run | ||
) |
PWM5通道初始化函数,它必须在PWM计数器初始化函数之前调用。
PWM5 road init function,it is best to initialize before the counter.
[in] | level | PWM开始电平。PWM start level. |
[in] | fValue | 第一个电平翻转点。The value of the first reversal point. |
[in] | sValue | 第二个电平翻转点。The value of the second reversal point. |
[in] | run | 运行控制位。Run control bit. |
FSCSTATE PWM6_Init | ( | PWMStartLevel_Type | level, |
uint16_t | fValue, | ||
uint16_t | sValue, | ||
BOOL | run | ||
) |
PWM6通道初始化函数,它必须在PWM计数器初始化函数之前调用。
PWM6 road init function,it is best to initialize before the counter.
[in] | level | PWM开始电平。PWM start level. |
[in] | fValue | 第一个电平翻转点。The value of the first reversal point. |
[in] | sValue | 第二个电平翻转点。The value of the second reversal point. |
[in] | run | 运行控制位。Run control bit. |
FSCSTATE PWM7_Init | ( | PWMStartLevel_Type | level, |
uint16_t | fValue, | ||
uint16_t | sValue, | ||
BOOL | run | ||
) |
PWM7通道初始化函数,它必须在PWM计数器初始化函数之前调用。
PWM7 road init function,it is best to initialize before the counter.
[in] | level | PWM开始电平。PWM start level. |
[in] | fValue | 第一个电平翻转点。The value of the first reversal point. |
[in] | sValue | 第二个电平翻转点。The value of the second reversal point. |
[in] | run | 运行控制位。Run control bit. |
FSCSTATE PWM_ABD_Init | ( | PWMABDSignal_Type | sigSrc, |
PWMABDMode_Type | mode, | ||
BOOL | run | ||
) |
PWM异常检测初始化函数。
PWM abnormal detection init function.
[in] | sigSrc | 异常检测信号源。Anomaly detection signal source. |
[in] | mode | 异常检测模式选择。Anomaly detection mode selection. |
[in] | run | 运行控制位。Run control bit. |
FSCSTATE PWM_CNT_Init | ( | PWMCLKSrc_Type | clkSrc, |
uint16_t | period, | ||
BOOL | run | ||
) |
PWM计数器初始化,必须在所有PWM初始化函数的后面调用。
PWM counter init function,It must be initialized last.
[in] | clkSrc | PWM时钟源。PWM clock source. |
[in] | period | PWM周期值(计数器重装载值)。PWM period value (counter reload value) |
[in] | run | 运行控制位。Run control bit. |