MG32L003 Standard Peripherals Firmware Library
Data Fields
PCA_OC_InitTypeDef Struct Reference

PCA Output Compare Configuration Structure definition. More...

#include <mg32l003_pca.h>

Data Fields

uint32_t CompareEnable
 
uint32_t TogEnable
 
uint32_t PwmEnable
 
uint32_t Period
 
uint32_t Channel
 

Detailed Description

PCA Output Compare Configuration Structure definition.

Field Documentation

◆ 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


The documentation for this struct was generated from the following file: