Contains all functions support for timer5n firmware library on A31L12x. More...
Go to the source code of this file.
Functions | |
HAL_Status_Type | HAL_TIMER5n_Init (TIMER5n_Type *TIMER5x, TIMER5n_CFG_Type *TIMER5n_Config) |
Initialize the TIMER5n peripheral with the specified parameters. More... | |
HAL_Status_Type | HAL_TIMER5n_DeInit (TIMER5n_Type *TIMER5x) |
Close Timer/Counter device. More... | |
HAL_Status_Type | HAL_TIMER5n_ConfigInterrupt (TIMER5n_Type *TIMER5x, TIMER5n_INT_Type TIMER5n_IntCfg, FunctionalState NewState) |
Configure the peripheral interrupt. More... | |
HAL_Status_Type | HAL_TIMER5n_Cmd (TIMER5n_Type *TIMER5x, FunctionalState NewState) |
Start/Stop Timer/Counter device. More... | |
HAL_Status_Type | HAL_TIMER5n_ClearCounter (TIMER5n_Type *TIMER5x) |
Clear Counter and Prescaler. More... | |
HAL_Status_Type | HAL_TIMER5n_UpdateCountValue (TIMER5n_Type *TIMER5x, uint8_t CountCh, uint16_t Value) |
Update value. More... | |
HAL_Status_Type | HAL_TIMER5n_ClearStatus (TIMER5n_Type *TIMER5x, uint32_t mask) |
Clear Timer Status. More... | |
uint8_t | HAL_TIMER5n_GetStatus (TIMER5n_Type *TIMER5x) |
Get Timer Status. More... | |
uint16_t | HAL_TIMER5n_GetCaptureData (TIMER5n_Type *TIMER5x) |
Read value of capture register in timer/counter device. More... | |
Contains all functions support for timer5n firmware library on A31L12x.
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 A31L12x_hal_timer5n.c.
HAL_Status_Type HAL_TIMER5n_ClearCounter | ( | TIMER5n_Type * | TIMER5x | ) |
Clear Counter and Prescaler.
[in] | TIMER5x | Pointer to the target TIMER5
|
Definition at line 228 of file A31L12x_hal_timer5n.c.
References HAL_ERROR, and HAL_OK.
Referenced by HAL_TIMER5n_Init().
HAL_Status_Type HAL_TIMER5n_ClearStatus | ( | TIMER5n_Type * | TIMER5x, |
uint32_t | mask | ||
) |
Clear Timer Status.
[in] | TIMER5x | Pointer to the target TIMER5
|
[in] | mask | clear value |
Definition at line 283 of file A31L12x_hal_timer5n.c.
HAL_Status_Type HAL_TIMER5n_Cmd | ( | TIMER5n_Type * | TIMER5x, |
FunctionalState | NewState | ||
) |
Start/Stop Timer/Counter device.
[in] | TIMER5x | Pointer to the target TIMER5
|
[in] | NewState | Next State of Functional Operation
|
Definition at line 201 of file A31L12x_hal_timer5n.c.
HAL_Status_Type HAL_TIMER5n_ConfigInterrupt | ( | TIMER5n_Type * | TIMER5x, |
TIMER5n_INT_Type | TIMER5n_IntCfg, | ||
FunctionalState | NewState | ||
) |
Configure the peripheral interrupt.
[in] | TIMER5x | Pointer to the target TIMER5
|
[in] | TIMER5n_IntCfg | Specifies the interrupt flag
|
[in] | NewState | Next State of Interrupt Operation
|
Definition at line 156 of file A31L12x_hal_timer5n.c.
References DISABLE, ENABLE, HAL_ERROR, HAL_OK, TIMER5n_CR_CAPTURE_INTR, and TIMER5n_CR_MATCH_INTR.
HAL_Status_Type HAL_TIMER5n_DeInit | ( | TIMER5n_Type * | TIMER5x | ) |
Close Timer/Counter device.
[in] | TIMER5x | Pointer to the target TIMER5
|
Definition at line 112 of file A31L12x_hal_timer5n.c.
uint16_t HAL_TIMER5n_GetCaptureData | ( | TIMER5n_Type * | TIMER5x | ) |
Read value of capture register in timer/counter device.
[in] | TIMER5x | Pointer to the target TIMER5
|
Definition at line 320 of file A31L12x_hal_timer5n.c.
uint8_t HAL_TIMER5n_GetStatus | ( | TIMER5n_Type * | TIMER5x | ) |
Get Timer Status.
[in] | TIMER5x | Pointer to the target TIMER5
|
Definition at line 308 of file A31L12x_hal_timer5n.c.
HAL_Status_Type HAL_TIMER5n_Init | ( | TIMER5n_Type * | TIMER5x, |
TIMER5n_CFG_Type * | TIMER5n_Config | ||
) |
Initialize the TIMER5n peripheral with the specified parameters.
[in] | TIMER5x | Pointer to the target TIMER5 |
[in] | TIMER5n_Config | Pointer to the configuration information for the specified peripheral. |
Definition at line 58 of file A31L12x_hal_timer5n.c.
References TIMER5n_CFG_Type::ADR, TIMER5n_CFG_Type::BDR, HAL_ERROR, HAL_OK, HAL_TIMER5n_ClearCounter(), TIMER5n_CFG_Type::Prescaler, TIMER5n_CFG_Type::T5nCLK, TIMER5n_CFG_Type::T5nECE, TIMER5n_CFG_Type::T5nINPOL, TIMER5n_CFG_Type::T5nINSEL, TIMER5n_CFG_Type::T5nMS, and TIMER5n_CFG_Type::T5nOPOL.
HAL_Status_Type HAL_TIMER5n_UpdateCountValue | ( | TIMER5n_Type * | TIMER5x, |
uint8_t | CountCh, | ||
uint16_t | Value | ||
) |
Update value.
[in] | TIMER5x | Pointer to the target TIMER5
|
[in] | CountCh |
|
[in] | Value | updated match value |
Definition at line 253 of file A31L12x_hal_timer5n.c.