Contains all macro definitions and function prototypes support for rtcc firmware library on A31L12x. More...
Go to the source code of this file.
Data Structures | |
struct | RTCC_CFG_Type |
Enumerations | |
enum | RTCC_INT_INTERVAL_OPT { RTCC_RTIN_Disable = 0, RTCC_RTIN_OncePer500ms, RTCC_RTIN_OncePer1sec, RTCC_RTIN_OncePer1min, RTCC_RTIN_OncePer1hour, RTCC_RTIN_OncePer1day, RTCC_RTIN_OncePer1month } |
enum | RTCC_HS24_OPT { RTCC_12HS = 0, RTCC_24HS } |
enum | RTCC_RTCOUT_OPT { RTCC_RTO_1 = 0, RTCC_RTO_32K } |
enum | RTCC_WEEK_OPT { RTCC_Sunday = 0, RTCC_Monday, RTCC_Tuesday, RTCC_Wednesday, RTCC_Thursday, RTCC_Friday, RTCC_Saturday } |
Functions | |
HAL_Status_Type | HAL_RTCC_Init (void *RTCC_Config) |
Initialize the RTCC peripheral with the specified parameters. More... | |
void | HAL_RTCC_DeInit (void) |
Close RTCC. More... | |
void | HAL_RTCC_SetRegister (uint32_t) |
Set RTC_CR Registers. More... | |
void | HAL_RTCC_Cmd (FunctionalState NewState) |
Enable/Disable RTCC Operation. More... | |
void | HAL_RTCC_RewriteYEAR (uint32_t) |
Rewrite to RTCC YEAR Register. More... | |
void | HAL_RTCC_RewriteMONTH (uint32_t) |
Rewrite to RTCC MONTH Register. More... | |
void | HAL_RTCC_RewriteWEEK (uint32_t) |
Rewrite to RTCC WEEK Register. More... | |
void | HAL_RTCC_RewriteDAY (uint32_t) |
Rewrite to RTCC DAY Register. More... | |
void | HAL_RTCC_RewriteHOUR (uint32_t) |
Rewrite to RTCC HOUR Register. More... | |
void | HAL_RTCC_RewriteMIN (uint32_t) |
Rewrite to RTCC MIN Register. More... | |
void | HAL_RTCC_RewriteSEC (uint32_t) |
Rewrite to RTCC SEC Register. More... | |
Contains all macro definitions and function prototypes support for rtcc 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_rtcc.h.
enum RTCC_HS24_OPT |
Enumerator | |
---|---|
RTCC_12HS | 12-hour system |
RTCC_24HS | 24-hour system |
Definition at line 99 of file A31L12x_hal_rtcc.h.
Definition at line 88 of file A31L12x_hal_rtcc.h.
enum RTCC_RTCOUT_OPT |
Enumerator | |
---|---|
RTCC_RTO_1 | RTCOUT : 1Hz |
RTCC_RTO_32K | RTCOUT : 32kHz |
Definition at line 105 of file A31L12x_hal_rtcc.h.
enum RTCC_WEEK_OPT |
Definition at line 111 of file A31L12x_hal_rtcc.h.
void HAL_RTCC_Cmd | ( | FunctionalState | NewState | ) |
Enable/Disable RTCC Operation.
[in] | NewState | Next State of Functional Operation
|
Definition at line 112 of file A31L12x_hal_rtcc.c.
References ENABLE.
void HAL_RTCC_DeInit | ( | void | ) |
Close RTCC.
Definition at line 85 of file A31L12x_hal_rtcc.c.
References HAL_SCU_Peripheral_EnableClock2(), and HAL_SCU_Peripheral_SetReset2().
HAL_Status_Type HAL_RTCC_Init | ( | void * | RTCC_Config | ) |
Initialize the RTCC peripheral with the specified parameters.
[in] | RTCC_Config | Pointer to the configuration information for the specified peripheral. |
Definition at line 54 of file A31L12x_hal_rtcc.c.
References HAL_ERROR, HAL_OK, HAL_SCU_Peripheral_EnableClock2(), RTCC_CFG_Type::rtccHS24, RTCC_CFG_Type::rtccIntIn, and RTCC_CFG_Type::rtccOutsel.
void HAL_RTCC_RewriteDAY | ( | uint32_t | u32rtccReWt | ) |
Rewrite to RTCC DAY Register.
[in] | u32rtccReWt | RTCC DAY Counter Register data |
Definition at line 175 of file A31L12x_hal_rtcc.c.
void HAL_RTCC_RewriteHOUR | ( | uint32_t | u32rtccReWt | ) |
Rewrite to RTCC HOUR Register.
[in] | u32rtccReWt | RTCC HOUR Counter Register data |
Definition at line 190 of file A31L12x_hal_rtcc.c.
void HAL_RTCC_RewriteMIN | ( | uint32_t | u32rtccReWt | ) |
Rewrite to RTCC MIN Register.
[in] | u32rtccReWt | RTCC MIN Counter Register data |
Definition at line 205 of file A31L12x_hal_rtcc.c.
void HAL_RTCC_RewriteMONTH | ( | uint32_t | u32rtccReWt | ) |
Rewrite to RTCC MONTH Register.
[in] | u32rtccReWt | RTCC MONTH Counter Register data |
Definition at line 145 of file A31L12x_hal_rtcc.c.
void HAL_RTCC_RewriteSEC | ( | uint32_t | u32rtccReWt | ) |
Rewrite to RTCC SEC Register.
[in] | u32rtccReWt | RTCC SEC Counter Register data |
Definition at line 220 of file A31L12x_hal_rtcc.c.
void HAL_RTCC_RewriteWEEK | ( | uint32_t | u32rtccReWt | ) |
Rewrite to RTCC WEEK Register.
[in] | u32rtccReWt | RTCC WEEK Counter Register data |
Definition at line 160 of file A31L12x_hal_rtcc.c.
void HAL_RTCC_RewriteYEAR | ( | uint32_t | u32rtccReWt | ) |
Rewrite to RTCC YEAR Register.
[in] | u32rtccReWt | RTCC YEAR Counter Register data |
Definition at line 130 of file A31L12x_hal_rtcc.c.
void HAL_RTCC_SetRegister | ( | uint32_t | u32rtccSet | ) |
Set RTC_CR Registers.
[in] | u32rtccSet | RTCC Control Register Setting Data |
This function sets the mode, Interrupt Interval, 12/24-hour System Selection, Alarm Match Operation and RTCOUT Selection.
Definition at line 100 of file A31L12x_hal_rtcc.c.