Home
last modified time | relevance | path

Searched refs:period_ppb (Results 1 – 1 of 1) sorted by relevance

/Zephyr-Core-3.6.0/drivers/rtc/
Drtc_pcf8523.c713 int32_t period_ppb = freq_ppb * -1; in pcf8523_set_calibration() local
716 if (period_ppb < PCF8523_OFFSET_PPB_MIN || period_ppb > PCF8523_OFFSET_PPB_MAX) { in pcf8523_set_calibration()
721 offset = period_ppb / PCF8523_OFFSET_PPB_PER_LSB; in pcf8523_set_calibration()
727 LOG_DBG("freq_ppb = %d, period_ppb = %d, offset = %d", freq_ppb, period_ppb, offset); in pcf8523_set_calibration()
734 int32_t period_ppb; in pcf8523_get_calibration() local
744 period_ppb = (offset << 1U) >> 1U; in pcf8523_get_calibration()
746 period_ppb = period_ppb * PCF8523_OFFSET_PPB_PER_LSB; in pcf8523_get_calibration()
747 *freq_ppb = period_ppb * -1; in pcf8523_get_calibration()
749 LOG_DBG("freq_ppb = %d, period_ppb = %d, offset = %d", *freq_ppb, period_ppb, offset); in pcf8523_get_calibration()