Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
rtc_fake.h File Reference

Fake RTC driver API functions. More...

#include <zephyr/drivers/rtc.h>
#include <zephyr/fff.h>

Go to the source code of this file.

Functions

 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_set_time, const struct device *, const struct rtc_time *)
 @fake_of{rtc_driver_api::set_time}
 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_get_time, const struct device *, struct rtc_time *)
 @fake_of{rtc_driver_api::get_time}
 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_alarm_get_supported_fields, const struct device *, uint16_t, uint16_t *)
 @fake_of{rtc_driver_api::alarm_get_supported_fields}
 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_alarm_set_time, const struct device *, uint16_t, uint16_t, const struct rtc_time *)
 @fake_of{rtc_driver_api::alarm_set_time}
 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_alarm_get_time, const struct device *, uint16_t, uint16_t *, struct rtc_time *)
 @fake_of{rtc_driver_api::alarm_get_time}
 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_alarm_is_pending, const struct device *, uint16_t)
 @fake_of{rtc_driver_api::alarm_is_pending}
 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_alarm_set_callback, const struct device *, uint16_t, rtc_alarm_callback, void *)
 @fake_of{rtc_driver_api::alarm_set_callback}
 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_update_set_callback, const struct device *, rtc_update_callback, void *)
 @fake_of{rtc_driver_api::update_set_callback}
 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_set_calibration, const struct device *, int32_t)
 @fake_of{rtc_driver_api::set_calibration}
 DECLARE_FAKE_VALUE_FUNC (int, rtc_fake_get_calibration, const struct device *, int32_t *)
 @fake_of{rtc_driver_api::get_calibration}

Detailed Description

Fake RTC driver API functions.