WB32L003 Standard Peripherals Firmware Library

成员变量
PCA_OC_InitTypeDef结构体 参考
WB32L003_StdPeriph_Driver » PCA

PCA Output Compare Configuration Structure definition 更多...

`#include <wb32l003_pca.h>`

## 成员变量
uint32_t | CompareEnable
uint32_t | TogEnable
uint32_t | PwmEnable
uint32_t | Period
uint32_t | Channel

## 详细描述

PCA Output Compare Configuration Structure definition

## 结构体成员变量说明

## ◆ Channel

uint32_t Channel

Specifies the PCA output channel. This parameter can be a value of PCA_Channel.

## ◆ CompareEnable

uint32_t CompareEnable

Specifies the output compare function enable or disable. This parameter can be a value of PCA_Output_Compare_Enable

## ◆ Period

uint32_t Period

Specifies the period value compared with CNT register. Period caculation = Period/(PCA clock) This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF.

## ◆ PwmEnable

uint32_t PwmEnable

Specifies tog function enable or disable. TogEnable & PwmEnable must not be enabled at the same time. This parameter can be a value of PCA_Pwm_Enable

## ◆ TogEnable

uint32_t TogEnable

Specifies tog function enable or disable. TogEnable & PwmEnable must not be enabled at the same time. This parameter can be a value of PCA_Toggle_Enable

该结构体的文档由以下文件生成:

- wb32l003_pca.h