![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Functions | |
void | Chip_RTC_Init (void) |
Initialize the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_DeInit (void) |
De-initialize the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_ResetClockTickCounter (void) |
Reset clock tick counter in the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_Enable (FunctionalState NewState) |
Start/Stop RTC peripheral. | |
STATIC INLINE void | Chip_RTC_CntIncrIntConfig (uint32_t cntrMask, FunctionalState NewState) |
Enable/Disable Counter increment interrupt for a time type in the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_AlarmIntConfig (uint32_t alarmMask, FunctionalState NewState) |
Enable/Disable Alarm interrupt for a time type in the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_SetTime (IP_RTC_TIMEINDEX_T Timetype, uint32_t TimeValue) |
Set current time value for a time type in the RTC peripheral. | |
STATIC INLINE uint32_t | Chip_RTC_GetTime (IP_RTC_TIMEINDEX_T Timetype) |
Get current time value for a type time type. | |
STATIC INLINE void | Chip_RTC_SetFullTime (IP_RTC_TIME_T *pFullTime) |
Set full time in the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_GetFullTime (IP_RTC_TIME_T *pFullTime) |
Get full time from the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_SetAlarmTime (IP_RTC_TIMEINDEX_T Timetype, uint32_t ALValue) |
Set alarm time value for a time type. | |
STATIC INLINE uint32_t | Chip_RTC_GetAlarmTime (IP_RTC_TIMEINDEX_T Timetype) |
Get alarm time value for a time type. | |
STATIC INLINE void | Chip_RTC_SetFullAlarmTime (IP_RTC_TIME_T *pFullTime) |
Set full alarm time in the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_GetFullAlarmTime (IP_RTC_TIME_T *pFullTime) |
Get full alarm time in the RTC peripheral. | |
STATIC INLINE void | Chip_REGFILE_Write (uint8_t index, uint32_t Value) |
Write value to General purpose registers. | |
STATIC INLINE uint32_t | Chip_REGFILE_Read (uint8_t index) |
Read value from General purpose registers. | |
STATIC INLINE void | Chip_RTC_CalibCounterCmd (FunctionalState NewState) |
Enable/Disable calibration counter in the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_CalibConfig (uint32_t CalibValue, uint8_t CalibDir) |
Configures Calibration in the RTC peripheral. | |
STATIC INLINE void | Chip_RTC_ClearIntPending (uint32_t IntType) |
Clear specified Location interrupt pending in the RTC peripheral. | |
STATIC INLINE IntStatus | Chip_RTC_GetIntPending (uint32_t IntType) |
Check whether if specified location interrupt in the RTC peripheral is set or not. | |
Read value from General purpose registers.
index | : General purpose register index |
information when the main power supply is off. The value in these
registers is not affected by chip reset. These registers are
powered in the RTC power domain.
Definition at line 218 of file rtc_18xx_43xx.h.
Write value to General purpose registers.
index | : General purpose register index |
Value | : Value to write |
information when the main power supply is off. The value in these
registers is not affected by chip reset. These registers are
powered in the RTC power domain.
Definition at line 201 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_AlarmIntConfig | ( | uint32_t | alarmMask, |
FunctionalState | NewState | ||
) |
Enable/Disable Alarm interrupt for a time type in the RTC peripheral.
alarmMask | : Or'ed bit values for ALARM types (RTC_AMR_CIIR_IM*) |
NewState | : ENABLE or DISABLE |
Definition at line 101 of file rtc_18xx_43xx.h.
Configures Calibration in the RTC peripheral.
CalibValue | : Calibration value, should be in range from 0 to 131,072 |
CalibDir | : Calibration Direction, should be:
|
Definition at line 243 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_CalibCounterCmd | ( | FunctionalState | NewState | ) |
Enable/Disable calibration counter in the RTC peripheral.
NewState | : New State of this function, should be:
|
Definition at line 230 of file rtc_18xx_43xx.h.
Clear specified Location interrupt pending in the RTC peripheral.
IntType | : Interrupt location type, should be:
|
Definition at line 255 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_CntIncrIntConfig | ( | uint32_t | cntrMask, |
FunctionalState | NewState | ||
) |
Enable/Disable Counter increment interrupt for a time type in the RTC peripheral.
cntrMask | : Or'ed bit values for time types (RTC_AMR_CIIR_IM*) |
NewState | : ENABLE or DISABLE |
Definition at line 89 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_Enable | ( | FunctionalState | NewState | ) |
Start/Stop RTC peripheral.
NewState | : New State of this function, should be:
|
Definition at line 77 of file rtc_18xx_43xx.h.
STATIC INLINE uint32_t Chip_RTC_GetAlarmTime | ( | IP_RTC_TIMEINDEX_T | Timetype | ) |
Get alarm time value for a time type.
Timetype | : Time index field to get |
Definition at line 163 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_GetFullAlarmTime | ( | IP_RTC_TIME_T * | pFullTime | ) |
Get full alarm time in the RTC peripheral.
pFullTime | : Pointer to full time record to fill |
Definition at line 183 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_GetFullTime | ( | IP_RTC_TIME_T * | pFullTime | ) |
Get full time from the RTC peripheral.
pFullTime | : Pointer to full time record to fill |
Definition at line 142 of file rtc_18xx_43xx.h.
Check whether if specified location interrupt in the RTC peripheral is set or not.
IntType | : Interrupt location type, should be:
|
Definition at line 268 of file rtc_18xx_43xx.h.
STATIC INLINE uint32_t Chip_RTC_GetTime | ( | IP_RTC_TIMEINDEX_T | Timetype | ) |
Get current time value for a type time type.
Timetype | : Time field index type to get |
Definition at line 122 of file rtc_18xx_43xx.h.
void Chip_RTC_Init | ( | void | ) |
Reset clock tick counter in the RTC peripheral.
Definition at line 65 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_SetAlarmTime | ( | IP_RTC_TIMEINDEX_T | Timetype, |
uint32_t | ALValue | ||
) |
Set alarm time value for a time type.
Timetype | : Time index field to set |
ALValue | : Alarm time value to set |
Definition at line 153 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_SetFullAlarmTime | ( | IP_RTC_TIME_T * | pFullTime | ) |
Set full alarm time in the RTC peripheral.
pFullTime | : Pointer to full time record to set alarm |
Definition at line 173 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_SetFullTime | ( | IP_RTC_TIME_T * | pFullTime | ) |
Set full time in the RTC peripheral.
pFullTime | : Pointer to full time data |
Definition at line 132 of file rtc_18xx_43xx.h.
STATIC INLINE void Chip_RTC_SetTime | ( | IP_RTC_TIMEINDEX_T | Timetype, |
uint32_t | TimeValue | ||
) |
Set current time value for a time type in the RTC peripheral.
Timetype | : time field index type to set |
TimeValue | : Value to palce in time field |
Definition at line 112 of file rtc_18xx_43xx.h.