MG32L003 Standard Peripherals Firmware Library
|
This file provides all the PCA firmware functions. More...
Functions | |
void | PCA_DeInit (void) |
Deinitializes the PCA peripheral registers to their default reset values. More... | |
void | PCA_Cmd (FunctionalState NewState) |
Enables or disables the PCA peripheral. More... | |
void | PCA_BaseInit (PCA_BaseInitTypeDef *PCA_InitStruct) |
Initializes the PCA Unit basic function according to the specified parameters in the PCA_HandleTypeDef. More... | |
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. More... | |
void | PCA_OC_Cmd (uint32_t Channel, FunctionalState NewState) |
Enables or disables the PCA output compare generation. More... | |
void | PCA_OC_INVCmd (uint32_t Channel, FunctionalState NewState) |
Enables or disables the PCA inverse output compare generation. More... | |
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. More... | |
void | PCA_ITConfig (uint8_t PCA_IT, FunctionalState NewState) |
Enables or disables the specified PCA interrupt. More... | |
ITStatus | PCA_GetITStatus (uint8_t PCA_IT) |
Checks whether the specified PCA interrupt is set or not. More... | |
FlagStatus | PCA_GetFlagStatus (uint8_t PCA_FLAG) |
Checks whether the specified PCA flag is set or not. More... | |
void | PCA_ClearITPendingBit (uint8_t PCA_IT) |
Clears the PCA's interrupt pending bits. More... | |
void | PCA_ClearFlag (uint8_t PCA_FLAG) |
Clears the PCA's pending flags. More... | |
void | PCA_SetPWMDuty (uint32_t Channel, uint8_t Duty) |
Sets PCA PWM ouput duty cycle. More... | |
void | PCA_IC0_TriggerConfig (uint32_t PCA_Trigger_ICPolarity) |
Configures the Channel0 (PCA Input capture). More... | |
void | PCA_IC1_TriggerConfig (uint32_t PCA_Trigger_ICPolarity) |
Configures the Channel1 (PCA Input capture). More... | |
void | PCA_IC2_TriggerConfig (uint32_t PCA_Trigger_ICPolarity) |
Configures the Channel2 (PCA Input capture). More... | |
void | PCA_IC3_TriggerConfig (uint32_t PCA_Trigger_ICPolarity) |
Configures the Channel3 (PCA Input capture). More... | |
void | PCA_IC4_TriggerConfig (uint32_t PCA_Trigger_ICPolarity) |
Configures the Channel4 (PCA Input capture). More... | |
uint16_t | PCA_GetCompareValue (uint32_t Channel) |
Gets the PCA Capture Compare Register value on runtime. More... | |
This file provides all the PCA firmware functions.