1 /* 2 * Copyright (c) 2019 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef ZEPHYR_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CALIBRATION_H_ 7 #define ZEPHYR_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CALIBRATION_H_ 8 9 #include <zephyr/sys/onoff.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 /** 16 * @brief Initialize LFCLK RC calibration. 17 * 18 * @param mgrs Pointer to array of onoff managers for HF and LF clocks. 19 */ 20 void z_nrf_clock_calibration_init(struct onoff_manager *mgrs); 21 22 /** 23 * @brief Calibration done handler 24 * 25 * Must be called from clock event handler. 26 */ 27 void z_nrf_clock_calibration_done_handler(void); 28 29 /** 30 * @brief Notify calibration module about LF clock start 31 */ 32 void z_nrf_clock_calibration_lfclk_started(void); 33 34 /** 35 * @brief Notify calibration module about LF clock stop 36 */ 37 void z_nrf_clock_calibration_lfclk_stopped(void); 38 39 40 #ifdef __cplusplus 41 } 42 #endif 43 44 #endif /* ZEPHYR_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CALIBRATION_H_ */ 45