MG32L003 Standard Peripherals Firmware Library

函数
mg32l003_pca.c 文件参考

This file provides all the PCA firmware functions. 更多...

`#include "mg32l003_pca.h"`
`#include "mg32l003_rcc.h"`

## 函数
void | PCA_DeInit (void)
| Deinitializes the PCA peripheral registers to their default reset values. 更多...
void | PCA_Cmd (FunctionalState NewState)
| Enables or disables the PCA peripheral. 更多...
void | PCA_BaseInit (PCA_BaseInitTypeDef *PCA_InitStruct)
| Initializes the PCA Unit basic function according to the specified parameters in the PCA_HandleTypeDef. 更多...
void | PCA_OC_Config (PCA_OC_InitTypeDef *OC_Config)
| Initializes the PCA output compare Channels according to the specified parameters in the PCA_OC_InitTypeDef. 更多...
void | PCA_OC_Cmd (uint32_t Channel, FunctionalState NewState)
| Enables or disables the PCA output compare generation. 更多...
void | PCA_OC_INVCmd (uint32_t Channel, FunctionalState NewState)
| Enables or disables the PCA inverse output compare generation. 更多...
void | PCA_IC_Config (PCA_IC_InitTypeDef *IC_Config)
| Initializes the PCA input capture Channels according to the specified parameters in the PCA_IC_InitTypeDef. 更多...
void | PCA_ITConfig (uint8_t PCA_IT, FunctionalState NewState)
| Enables or disables the specified PCA interrupt. 更多...
ITStatus | PCA_GetITStatus (uint8_t PCA_IT)
| Checks whether the specified PCA interrupt is set or not. 更多...
FlagStatus | PCA_GetFlagStatus (uint8_t PCA_FLAG)
| Checks whether the specified PCA flag is set or not. 更多...
void | PCA_ClearITPendingBit (uint8_t PCA_IT)
| Clears the PCA's interrupt pending bits. 更多...
void | PCA_ClearFlag (uint8_t PCA_FLAG)
| Clears the PCA's pending flags. 更多...
void | PCA_SetPWMDuty (uint32_t Channel, uint8_t Duty)
| Sets PCA PWM ouput duty cycle. 更多...
void | PCA_IC0_TriggerConfig (uint32_t PCA_Trigger_ICPolarity)
| Configures the Channel0 (PCA Input capture). 更多...
void | PCA_IC1_TriggerConfig (uint32_t PCA_Trigger_ICPolarity)
| Configures the Channel1 (PCA Input capture). 更多...
void | PCA_IC2_TriggerConfig (uint32_t PCA_Trigger_ICPolarity)
| Configures the Channel2 (PCA Input capture). 更多...
void | PCA_IC3_TriggerConfig (uint32_t PCA_Trigger_ICPolarity)
| Configures the Channel3 (PCA Input capture). 更多...
void | PCA_IC4_TriggerConfig (uint32_t PCA_Trigger_ICPolarity)
| Configures the Channel4 (PCA Input capture). 更多...
uint16_t | PCA_GetCompareValue (uint32_t Channel)
| Gets the PCA Capture Compare Register value on runtime 更多...

## 详细描述

This file provides all the PCA firmware functions.

作者
  megawin Application Team

版本
  V0.0.5

日期
  13-August-2024