Contains all functions support for timer3n firmware library on A31G12x. More...
Go to the source code of this file.
Functions | |
HAL_Status_Type | HAL_TIMER3n_Init (TIMER3n_Type *TIMER3x, TIMER3n_CFG_Type *TIMER3n_Config) |
Initialize the TIMER3n peripheral with the specified parameters. More... | |
HAL_Status_Type | HAL_TIMER3n_DeInit (TIMER3n_Type *TIMER3x) |
Close Timer/Counter device. More... | |
HAL_Status_Type | HAL_TIMER3n_ConfigInterrupt (TIMER3n_Type *TIMER3x, uint32_t NewState, uint32_t USART3n_IntCfg) |
Interrupt Control Register. More... | |
HAL_Status_Type | HAL_TIMER3n_MPWMCmd (TIMER3n_Type *TIMER3x, uint32_t updatedata, uint32_t intcount) |
TIMER3n PWM Mode Setting (Initial : Back to Back Mode, Internal Clock, 6channel Mode) More... | |
HAL_Status_Type | HAL_TIMER3n_Start (TIMER3n_Type *TIMER3x, uint32_t NewState) |
Enable or Disable PWM start. More... | |
HAL_Status_Type | HAL_TIMER3n_OutputCtrl (TIMER3n_Type *TIMER3x, uint32_t NewState, uint32_t pwmApol, uint32_t pwmBpol) |
PWM Output Port Control Register (Initial : 6channel enable, output low) More... | |
HAL_Status_Type | HAL_TIMER3n_ClockPrescaler (TIMER3n_Type *TIMER3x, uint32_t prescale) |
Set Prescaler data. More... | |
HAL_Status_Type | HAL_TIMER3n_SetPeriod (TIMER3n_Type *TIMER3x, uint32_t period) |
Set period data. More... | |
HAL_Status_Type | HAL_TIMER3n_SetADuty (TIMER3n_Type *TIMER3x, uint32_t aduty) |
Set duty A data. More... | |
HAL_Status_Type | HAL_TIMER3n_SetBDuty (TIMER3n_Type *TIMER3x, uint32_t bduty) |
Set duty B data. More... | |
HAL_Status_Type | HAL_TIMER3n_SetCDuty (TIMER3n_Type *TIMER3x, uint32_t cduty) |
Set duty C data. More... | |
HAL_Status_Type | HAL_TIMER3n_SetDelayTime (TIMER3n_Type *TIMER3x, uint32_t dten, uint32_t dtpos, uint32_t clkdata) |
Set dead time (delay time) More... | |
HAL_Status_Type | HAL_TIMER3n_SetHizReg (TIMER3n_Type *TIMER3x, uint32_t u32T30HizSet) |
Set HIZCR Register. More... | |
HAL_Status_Type | HAL_TIMER3n_SetADCTrigger (TIMER3n_Type *TIMER3x, uint32_t u32triggerpoint, uint32_t u32triggertime) |
Set ADC Tirgger Source & Timing. More... | |
HAL_Status_Type | HAL_TIMER3n_ClearStatus_IT (TIMER3n_Type *TIMER3x, uint32_t USART3n_IntCfg) |
Interrupt Flag Clear. More... | |
uint32_t | HAL_TIMER3n_GetStatus_IT (TIMER3n_Type *TIMER3x) |
Get Interrupt Flag. More... | |
Contains all functions support for timer3n firmware library on A31G12x.
Copyright(C) 2019, ABOV Semiconductor All rights reserved.
ABOV Disclaimer
IMPORTANT NOTICE ? PLEASE READ CAREFULLY ABOV Semiconductor ("ABOV") reserves the right to make changes, corrections, enhancements, modifications, and improvements to ABOV products and/or to this document at any time without notice. ABOV does not give warranties as to the accuracy or completeness of the information included herein. Purchasers should obtain the latest relevant information of ABOV products before placing orders. Purchasers are entirely responsible for the choice, selection, and use of ABOV products and ABOV assumes no liability for application assistance or the design of purchasers' products. No license, express or implied, to any intellectual property rights is granted by ABOV herein. ABOV disclaims all express and implied warranties and shall not be responsible or liable for any injuries or damages related to use of ABOV products in such unauthorized applications. ABOV and the ABOV logo are trademarks of ABOV. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces the information previously supplied in any former versions of this document. 2020 ABOV Semiconductor All rights reserved
Definition in file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_ClearStatus_IT | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | USART3n_IntCfg | ||
) |
Interrupt Flag Clear.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | USART3n_IntCfg | Select clear interrupt |
Definition at line 474 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_ClockPrescaler | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | prescale | ||
) |
Set Prescaler data.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | prescale | Timer30 Prescaler Value |
Definition at line 282 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_ConfigInterrupt | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | NewState, | ||
uint32_t | USART3n_IntCfg | ||
) |
Interrupt Control Register.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | NewState | Next State of Interrupt Operation
|
[in] | USART3n_IntCfg | Interrupt Sourtce Setting |
Definition at line 154 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_DeInit | ( | TIMER3n_Type * | TIMER3x | ) |
Close Timer/Counter device.
[in] | TIMER3x | Pointer to the target TIMER3
|
Definition at line 112 of file A31G12x_hal_timer3n.c.
uint32_t HAL_TIMER3n_GetStatus_IT | ( | TIMER3n_Type * | TIMER3x | ) |
Get Interrupt Flag.
[in] | TIMER3x | Pointer to the target TIMER3
|
Definition at line 494 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_Init | ( | TIMER3n_Type * | TIMER3x, |
TIMER3n_CFG_Type * | TIMER3n_Config | ||
) |
Initialize the TIMER3n peripheral with the specified parameters.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | TIMER3n_Config | Pointer to the configuration information for the specified peripheral. |
Definition at line 56 of file A31G12x_hal_timer3n.c.
References TIMER3n_CFG_Type::ADR, TIMER3n_CFG_Type::BDR, TIMER3n_CFG_Type::CDR, HAL_ERROR, HAL_OK, TIMER3n_CFG_Type::PDR, TIMER3n_CFG_Type::Prescaler, TIMER3n_CFG_Type::T3nCLK, TIMER3n_CFG_Type::T3nCPOL, TIMER3n_CFG_Type::T3nECE, and TIMER3n_CFG_Type::T3nMS.
HAL_Status_Type HAL_TIMER3n_MPWMCmd | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | updatedata, | ||
uint32_t | intcount | ||
) |
TIMER3n PWM Mode Setting (Initial : Back to Back Mode, Internal Clock, 6channel Mode)
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | updatedata | PWM Duty Update Timing |
[in] | intcount | Period Match Interrupt Occurence Seletion |
Definition at line 185 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_OutputCtrl | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | NewState, | ||
uint32_t | pwmApol, | ||
uint32_t | pwmBpol | ||
) |
PWM Output Port Control Register (Initial : 6channel enable, output low)
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | NewState | Next State of Functional Operation
|
[in] | pwmApol | Timer 30xA Output Polarity Selection |
[in] | pwmBpol | Timer 30xB Output Polarity Selection |
Definition at line 249 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_SetADCTrigger | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | u32triggerpoint, | ||
uint32_t | u32triggertime | ||
) |
Set ADC Tirgger Source & Timing.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | u32triggerpoint | Timer 30 Output High-Impedance Setting Data |
[in] | u32triggertime | Timer 30 A/DC Trigger Setting Data |
This function sets the Timer 30 HIZ/ADT Control Register
Definition at line 451 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_SetADuty | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | aduty | ||
) |
Set duty A data.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | aduty | Timer30 Aduty data |
Definition at line 326 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_SetBDuty | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | bduty | ||
) |
Set duty B data.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | bduty | Timer30 Bduty data |
Definition at line 348 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_SetCDuty | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | cduty | ||
) |
Set duty C data.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | cduty | Timer30 Cduty data |
Definition at line 370 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_SetDelayTime | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | dten, | ||
uint32_t | dtpos, | ||
uint32_t | clkdata | ||
) |
Set dead time (delay time)
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | dten | dead time enable |
[in] | dtpos | dead timer position (front or back) |
[in] | clkdata | dead time |
Definition at line 396 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_SetHizReg | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | u32T30HizSet | ||
) |
Set HIZCR Register.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | u32T30HizSet | Timer 30 Output High-Impedance Setting Data |
This function sets the Timer 30 HIZ/ADT Control Register
Definition at line 426 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_SetPeriod | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | period | ||
) |
Set period data.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | period | MPWM period data |
Definition at line 304 of file A31G12x_hal_timer3n.c.
HAL_Status_Type HAL_TIMER3n_Start | ( | TIMER3n_Type * | TIMER3x, |
uint32_t | NewState | ||
) |
Enable or Disable PWM start.
[in] | TIMER3x | Pointer to the target TIMER3
|
[in] | NewState | Next State of Functional Operation
|
Definition at line 215 of file A31G12x_hal_timer3n.c.