NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
lpc17xx_rtc.h File Reference
: Contains all macro definitions and function prototypes support for RTC firmware library on LPC17xx More...
Go to the source code of this file.
Data Structures | |
struct | RTC_TIME_Type |
Time structure definitions for easy manipulate the data. More... | |
Enumerations | |
enum | RTC_INT_OPT { RTC_INT_COUNTER_INCREASE = RTC_IRL_RTCCIF, RTC_INT_ALARM = RTC_IRL_RTCALF } |
RTC interrupt source. More... | |
enum | RTC_TIMETYPE_Num { RTC_TIMETYPE_SECOND = 0, RTC_TIMETYPE_MINUTE = 1, RTC_TIMETYPE_HOUR = 2, RTC_TIMETYPE_DAYOFWEEK = 3, RTC_TIMETYPE_DAYOFMONTH = 4, RTC_TIMETYPE_DAYOFYEAR = 5, RTC_TIMETYPE_MONTH = 6, RTC_TIMETYPE_YEAR = 7 } |
RTC time type option. More... | |
Functions | |
void | RTC_Init (LPC_RTC_TypeDef *RTCx) |
Initializes the RTC peripheral. | |
void | RTC_DeInit (LPC_RTC_TypeDef *RTCx) |
De-initializes the RTC peripheral registers to their default reset values. | |
void | RTC_ResetClockTickCounter (LPC_RTC_TypeDef *RTCx) |
Reset clock tick counter in RTC peripheral. | |
void | RTC_Cmd (LPC_RTC_TypeDef *RTCx, FunctionalState NewState) |
Start/Stop RTC peripheral. | |
void | RTC_CntIncrIntConfig (LPC_RTC_TypeDef *RTCx, uint32_t CntIncrIntType,\FunctionalState NewState) |
Enable/Disable Counter increment interrupt for each time type in RTC peripheral. | |
void | RTC_AlarmIntConfig (LPC_RTC_TypeDef *RTCx, uint32_t AlarmTimeType,\FunctionalState NewState) |
Enable/Disable Alarm interrupt for each time type in RTC peripheral. | |
void | RTC_SetTime (LPC_RTC_TypeDef *RTCx, uint32_t Timetype, uint32_t TimeValue) |
Set current time value for each time type in RTC peripheral. | |
uint32_t | RTC_GetTime (LPC_RTC_TypeDef *RTCx, uint32_t Timetype) |
Get current time value for each type time type. | |
void | RTC_SetFullTime (LPC_RTC_TypeDef *RTCx, RTC_TIME_Type *pFullTime) |
Set full of time in RTC peripheral. | |
void | RTC_GetFullTime (LPC_RTC_TypeDef *RTCx, RTC_TIME_Type *pFullTime) |
Get full of time in RTC peripheral. | |
void | RTC_SetAlarmTime (LPC_RTC_TypeDef *RTCx, uint32_t Timetype, uint32_t ALValue) |
Set alarm time value for each time type. | |
uint32_t | RTC_GetAlarmTime (LPC_RTC_TypeDef *RTCx, uint32_t Timetype) |
Get alarm time value for each time type. | |
void | RTC_SetFullAlarmTime (LPC_RTC_TypeDef *RTCx, RTC_TIME_Type *pFullTime) |
Set full of alarm time in RTC peripheral. | |
void | RTC_GetFullAlarmTime (LPC_RTC_TypeDef *RTCx, RTC_TIME_Type *pFullTime) |
Get full of alarm time in RTC peripheral. | |
IntStatus | RTC_GetIntPending (LPC_RTC_TypeDef *RTCx, uint32_t IntType) |
Check whether if specified Location interrupt in RTC peripheral is set or not. | |
void | RTC_ClearIntPending (LPC_RTC_TypeDef *RTCx, uint32_t IntType) |
Clear specified Location interrupt pending in RTC peripheral. | |
void | RTC_CalibCounterCmd (LPC_RTC_TypeDef *RTCx, FunctionalState NewState) |
Enable/Disable calibration counter in RTC peripheral. | |
void | RTC_CalibConfig (LPC_RTC_TypeDef *RTCx, uint32_t CalibValue, uint8_t CalibDir) |
Configures Calibration in RTC peripheral. | |
void | RTC_WriteGPREG (LPC_RTC_TypeDef *RTCx, uint8_t Channel, uint32_t Value) |
Write value to General purpose registers. | |
uint32_t | RTC_ReadGPREG (LPC_RTC_TypeDef *RTCx, uint8_t Channel) |
Read value from General purpose registers. |
Detailed Description
: Contains all macro definitions and function prototypes support for RTC firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 23. Apr. 2009
Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.
Definition in file lpc17xx_rtc.h.
Generated on Tue Jul 12 2022 17:06:02 by 1.7.2