rtc_read_alarm

The interface has the following parameters.
  • Syntax:
    int rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
  • Description: The function is used to read alarm time from a specific RTC device.
  • Parameter:
    • rtc: The target RTC device.
    • alarm: The location where alarm time is stored.
  • Return:
    • Success: 0.
    • Failure: Error code.