Lines Matching full:api
10 * @brief Public real time clock driver API
99 * @brief API for setting RTC time
105 * @brief API for getting RTC time
111 * @brief API for getting the supported fields of the RTC alarm time
118 * @brief API for setting RTC alarm time
125 * @brief API for getting RTC alarm time
132 * @brief API for testing if RTC alarm is pending
138 * @brief API for setting RTC alarm callback
145 * @brief API for setting RTC update callback
152 * @brief API for setting RTC calibration
158 * @brief API for getting RTC calibration
163 * @brief RTC driver API
187 * @brief API for setting RTC time.
200 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_set_time() local
202 return api->set_time(dev, timeptr); in z_impl_rtc_set_time()
206 * @brief API for getting RTC time.
219 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_get_time() local
221 return api->get_time(dev, timeptr); in z_impl_rtc_get_time()
231 * @brief API for getting the supported fields of the RTC alarm time.
241 * @return -ENOTSUP if API is not supported by hardware
250 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_alarm_get_supported_fields() local
252 if (api->alarm_get_supported_fields == NULL) { in z_impl_rtc_alarm_get_supported_fields()
256 return api->alarm_get_supported_fields(dev, id, mask); in z_impl_rtc_alarm_get_supported_fields()
260 * @brief API for setting RTC alarm time.
279 * @return -ENOTSUP if API is not supported by hardware
288 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_alarm_set_time() local
290 if (api->alarm_set_time == NULL) { in z_impl_rtc_alarm_set_time()
294 return api->alarm_set_time(dev, id, mask, timeptr); in z_impl_rtc_alarm_set_time()
298 * @brief API for getting RTC alarm time.
309 * @return -ENOTSUP if API is not supported by hardware
318 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_alarm_get_time() local
320 if (api->alarm_get_time == NULL) { in z_impl_rtc_alarm_get_time()
324 return api->alarm_get_time(dev, id, mask, timeptr); in z_impl_rtc_alarm_get_time()
328 * @brief API for testing if RTC alarm is pending.
339 * @return -ENOTSUP if API is not supported by hardware
346 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_alarm_is_pending() local
348 if (api->alarm_is_pending == NULL) { in z_impl_rtc_alarm_is_pending()
352 return api->alarm_is_pending(dev, id); in z_impl_rtc_alarm_is_pending()
356 * @brief API for setting alarm callback.
378 * @return -ENOTSUP if API is not supported by hardware
387 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_alarm_set_callback() local
389 if (api->alarm_set_callback == NULL) { in z_impl_rtc_alarm_set_callback()
393 return api->alarm_set_callback(dev, id, callback, user_data); in z_impl_rtc_alarm_set_callback()
408 * @brief API for setting update callback.
423 * @return -ENOTSUP if API is not supported by hardware
432 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_update_set_callback() local
434 if (api->update_set_callback == NULL) { in z_impl_rtc_update_set_callback()
438 return api->update_set_callback(dev, callback, user_data); in z_impl_rtc_update_set_callback()
453 * @brief API for setting RTC calibration.
465 * @return -ENOTSUP if API is not supported by hardware
472 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_set_calibration() local
474 if (api->set_calibration == NULL) { in z_impl_rtc_set_calibration()
478 return api->set_calibration(dev, calibration); in z_impl_rtc_set_calibration()
482 * @brief API for getting RTC calibration.
488 * @return -ENOTSUP if API is not supported by hardware
495 const struct rtc_driver_api *api = (const struct rtc_driver_api *)dev->api; in z_impl_rtc_get_calibration() local
497 if (api->get_calibration == NULL) { in z_impl_rtc_get_calibration()
501 return api->get_calibration(dev, calibration); in z_impl_rtc_get_calibration()