![]() |
rtcpsu
Vitis Drivers API Documentation
|
Functions | |
| s32 | XRtcPsu_CfgInitialize (XRtcPsu *InstancePtr, XRtcPsu_Config *ConfigPtr, UINTPTR EffectiveAddr) |
| This function initializes a XRtcPsu instance/driver. More... | |
| void | XRtcPsu_SetTime (XRtcPsu *InstancePtr, u32 Time) |
| This function sets the RTC time by writing into rtc write register. More... | |
| u32 | XRtcPsu_GetCurrentTime (XRtcPsu *InstancePtr) |
| This function gets the current RTC time. More... | |
| void | XRtcPsu_SetAlarm (XRtcPsu *InstancePtr, u32 Alarm, u32 Periodic) |
| This function sets the alarm value of RTC device. More... | |
| void | XRtcPsu_SecToDateTime (u32 Seconds, XRtcPsu_DT *dt) |
| This function translates time in seconds to a YEAR:MON:DAY HR:MIN:SEC format and saves it in the DT structure variable. More... | |
| u32 | XRtcPsu_DateTimeToSec (XRtcPsu_DT *dt) |
| This function translates time in YEAR:MON:DAY HR:MIN:SEC format to seconds since Unix epoch (1970-01-01 00:00:00 UTC). More... | |
| void | XRtcPsu_CalculateCalibration (XRtcPsu *InstancePtr, u32 TimeReal, u32 CrystalOscFreq) |
| This function calculates the calibration value depending on the actual realworld time and also helps in deriving new calibration value if the user wishes to change his oscillator frequency. More... | |
| u32 | XRtcPsu_IsSecondsEventGenerated (XRtcPsu *InstancePtr) |
| This function returns the seconds event status by reading interrupt status register. More... | |
| u32 | XRtcPsu_IsAlarmEventGenerated (XRtcPsu *InstancePtr) |
| This function returns the alarm event status by reading interrupt status register. More... | |