Contains all macro definitions and function prototypes support for wt firmware library on A31G11x. More...
Go to the source code of this file.
Data Structures | |
struct | WT_CFG_Type |
Enumerations | |
enum | { WT_DIV_2_7 = 0, WT_DIV_2_13, WT_DIV_2_14, WT_DIV_2_14_MUL_DR } |
Functions | |
HAL_Status_Type | HAL_WT_Init (WT_CFG_Type *WT_Config) |
Initialize the WT peripheral with the specified parameters. More... | |
HAL_Status_Type | HAL_WT_DeInit (void) |
deinit for Watch Timer function More... | |
HAL_Status_Type | HAL_WT_ConfigInterrupt (FunctionalState NewState) |
Configure the peripheral interrupt. More... | |
HAL_Status_Type | HAL_WT_Start (FunctionalState ctrl) |
Enable WT activity. More... | |
HAL_Status_Type | HAL_WT_SetRegister (uint32_t u32WTSet) |
Set WT CR Register. More... | |
HAL_Status_Type | HAL_WT_ClearStatus (void) |
Clear the timer status register of WT. More... | |
uint32_t | HAL_WT_GetStatus (void) |
Get the timer status register of WT. More... | |
uint32_t | HAL_WT_GetCurrentCount (void) |
Get the current value of WT. More... | |
Contains all macro definitions and function prototypes support for wt firmware library on A31G11x.
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 A31G11x_hal_wt.h.
anonymous enum |
Enumerator | |
---|---|
WT_DIV_2_7 | |
WT_DIV_2_13 | |
WT_DIV_2_14 | |
WT_DIV_2_14_MUL_DR |
Definition at line 79 of file A31G11x_hal_wt.h.
HAL_Status_Type HAL_WT_ClearStatus | ( | void | ) |
Clear the timer status register of WT.
None |
Definition at line 162 of file A31G11x_hal_wt.c.
References HAL_OK.
HAL_Status_Type HAL_WT_ConfigInterrupt | ( | FunctionalState | NewState | ) |
Configure the peripheral interrupt.
[in] | NewState | Next State of Interrupt Operation
|
Definition at line 96 of file A31G11x_hal_wt.c.
HAL_Status_Type HAL_WT_DeInit | ( | void | ) |
deinit for Watch Timer function
None |
Definition at line 81 of file A31G11x_hal_wt.c.
References HAL_OK.
uint32_t HAL_WT_GetCurrentCount | ( | void | ) |
Get the current value of WT.
None |
Definition at line 184 of file A31G11x_hal_wt.c.
uint32_t HAL_WT_GetStatus | ( | void | ) |
Get the timer status register of WT.
None |
Definition at line 174 of file A31G11x_hal_wt.c.
HAL_Status_Type HAL_WT_Init | ( | WT_CFG_Type * | WT_Config | ) |
Initialize the WT peripheral with the specified parameters.
[in] | WT_Config | Pointer to a WT_CFG_Type structure that contains the configuration information for the specified peripheral. |
Definition at line 55 of file A31G11x_hal_wt.c.
References HAL_ERROR, HAL_OK, HAL_SCU_Peripheral_EnableClock2(), WT_CFG_Type::wtClkDiv, and WT_CFG_Type::wtTmrConst.
HAL_Status_Type HAL_WT_SetRegister | ( | uint32_t | u32WTSet | ) |
Set WT CR Register.
[in] | u32WTSet | Watch Timer Control Register Setting Data |
This function sets the mode, external clock edge, Timer out polarity, Capture Polarity and Timer match/capture interrupt.
Definition at line 150 of file A31G11x_hal_wt.c.
References HAL_OK.
HAL_Status_Type HAL_WT_Start | ( | FunctionalState | ctrl | ) |
Enable WT activity.
[in] | ctrl | Next State of Functional Operation
|
Definition at line 123 of file A31G11x_hal_wt.c.