/Zephyr-latest/tests/drivers/rtc/rtc_api_helpers/src/ |
D | test_rtc_calibration_from_frequency.c | 12 int32_t calibration; member 18 .calibration = 0, 22 .calibration = -1, 26 .calibration = 1, 30 .calibration = -500000000, 34 .calibration = 1000000000, 41 int32_t calibration; in ZTEST() local 46 calibration = test_samples[i].calibration; in ZTEST() 48 zassert_equal(result, calibration); in ZTEST()
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_handlers.c | 64 static inline int z_vrfy_rtc_set_calibration(const struct device *dev, int32_t calibration) in z_vrfy_rtc_set_calibration() argument 67 return z_impl_rtc_set_calibration(dev, calibration); in z_vrfy_rtc_set_calibration() 72 static inline int z_vrfy_rtc_get_calibration(const struct device *dev, int32_t *calibration) in z_vrfy_rtc_get_calibration() argument 75 K_OOPS(K_SYSCALL_MEMORY_WRITE(calibration, sizeof(int32_t))); in z_vrfy_rtc_get_calibration() 76 return z_impl_rtc_get_calibration(dev, calibration); in z_vrfy_rtc_get_calibration()
|
D | rtc_ifx_cat1.c | 278 static int ifx_cat1_set_calibration(const struct device *dev, int32_t calibration) in ifx_cat1_set_calibration() argument 285 if (calibration >= 0) { in ifx_cat1_set_calibration() 288 calibration = abs(calibration); in ifx_cat1_set_calibration() 292 uint_calibration = PPB_TO_WCO_PULSE_SETS(calibration); in ifx_cat1_set_calibration() 309 static int ifx_cat1_get_calibration(const struct device *dev, int32_t *calibration) in ifx_cat1_get_calibration() argument 318 *calibration = WCO_PULSE_SETS_TO_PPB(hw_calibration); in ifx_cat1_get_calibration() 320 *calibration = WCO_PULSE_SETS_TO_PPB(hw_calibration) * -1; in ifx_cat1_get_calibration()
|
D | rtc_sam.c | 498 static int rtc_sam_set_calibration(const struct device *dev, int32_t calibration) in rtc_sam_set_calibration() argument 508 if ((calibration < RTC_SAM_CALIBRATE_PPB_MIN) || in rtc_sam_set_calibration() 509 (calibration > RTC_SAM_CALIBRATE_PPB_MAX)) { in rtc_sam_set_calibration() 514 if (calibration < 0) { in rtc_sam_set_calibration() 516 calibration = -calibration; in rtc_sam_set_calibration() 545 if (calibration < RTC_SAM_CALIBRATE_PPB_QUANTA) { in rtc_sam_set_calibration() 548 } else if (calibration < RTC_SAM_CALIBRATE_PPB_LOW_SCALE) { in rtc_sam_set_calibration() 550 slow_clock_calibration = (uint32_t)((3906000 / (20 * calibration)) - 1); in rtc_sam_set_calibration() 553 slow_clock_calibration = (uint32_t)((3906000 / calibration) - 1); in rtc_sam_set_calibration() 586 static int rtc_sam_get_calibration(const struct device *dev, int32_t *calibration) in rtc_sam_get_calibration() argument [all …]
|
D | rtc_emul.c | 50 int32_t calibration; member 404 static int rtc_emul_set_calibration(const struct device *dev, int32_t calibration) in rtc_emul_set_calibration() argument 410 data->calibration = calibration; in rtc_emul_set_calibration() 416 static int rtc_emul_get_calibration(const struct device *dev, int32_t *calibration) in rtc_emul_get_calibration() argument 422 *calibration = data->calibration; in rtc_emul_get_calibration()
|
D | rtc_nxp_irtc.c | 300 ARG_UNUSED(calibration); in nxp_irtc_update_set_callback() 308 static int nxp_irtc_set_calibration(const struct device *dev, int32_t calibration) in nxp_irtc_set_calibration() argument 311 ARG_UNUSED(calibration); in nxp_irtc_set_calibration() 315 static int nxp_irtc_get_calibration(const struct device *dev, int32_t *calibration) in nxp_irtc_get_calibration() argument 318 ARG_UNUSED(calibration); in nxp_irtc_get_calibration()
|
D | rtc_rv8263.c | 595 int rv8263c8_calibration_set(const struct device *dev, int32_t calibration) in rv8263c8_calibration_set() argument 609 offset_ppm_mode0 = calibration / 4340; in rv8263c8_calibration_set() 615 offset_ppm_mode1 = calibration / 4069; in rv8263c8_calibration_set() 621 test_mode0 = calibration - test_mode0; in rv8263c8_calibration_set() 623 test_mode1 = calibration - test_mode1; in rv8263c8_calibration_set() 645 int rv8263c8_calibration_get(const struct device *dev, int32_t *calibration) in rv8263c8_calibration_get() argument 652 if (calibration == NULL) { in rv8263c8_calibration_get() 677 *calibration = temp; in rv8263c8_calibration_get()
|
D | Kconfig | 33 bool "RTC driver clock calibration support" 36 calibration.
|
D | rtc_ll_stm32.c | 967 static int rtc_stm32_set_calibration(const struct device *dev, int32_t calibration) in rtc_stm32_set_calibration() argument 975 if ((calibration > MAX_PPB) || (calibration < MIN_PPB)) { in rtc_stm32_set_calibration() 980 int32_t nb_pulses = PPB_TO_NB_PULSES(calibration); in rtc_stm32_set_calibration() 1020 static int rtc_stm32_get_calibration(const struct device *dev, int32_t *calibration) in rtc_stm32_get_calibration() argument 1035 *calibration = NB_PULSES_TO_PPB(nb_pulses); in rtc_stm32_get_calibration() 1058 #error RTC calibration for devices without smooth calibration feature is not supported yet
|
/Zephyr-latest/soc/espressif/ |
D | Kconfig | 39 int "Number of cycles for RTC_SLOW_CLK calibration" 44 calibration by comparing the RTC_SLOW_CLK frequency with main XTAL 46 by the calibration routine. Higher numbers increase calibration 50 When this option is set to 0, clock calibration will not be performed at
|
/Zephyr-latest/include/zephyr/drivers/ |
D | rtc.h | 156 typedef int (*rtc_api_set_calibration)(const struct device *dev, int32_t calibration); 162 typedef int (*rtc_api_get_calibration)(const struct device *dev, int32_t *calibration); 456 __syscall int rtc_set_calibration(const struct device *dev, int32_t calibration); 458 static inline int z_impl_rtc_set_calibration(const struct device *dev, int32_t calibration) in z_impl_rtc_set_calibration() argument 464 return DEVICE_API_GET(rtc, dev)->set_calibration(dev, calibration); in z_impl_rtc_set_calibration() 477 __syscall int rtc_get_calibration(const struct device *dev, int32_t *calibration); 479 static inline int z_impl_rtc_get_calibration(const struct device *dev, int32_t *calibration) in z_impl_rtc_get_calibration() argument 485 return DEVICE_API_GET(rtc, dev)->get_calibration(dev, calibration); in z_impl_rtc_get_calibration()
|
/Zephyr-latest/drivers/clock_control/ |
D | Kconfig.nrf | 58 bool "LF clock calibration" 62 If calibration is disabled when RC is used for low frequency clock then 74 Enabling indicates that calibration is performed by the clock control driver. 87 Periodically, calibration action is performed. Action includes 88 temperature measurement followed by clock calibration. Calibration may 90 calibration) did not exceeded CLOCK_CONTROL_NRF_CALIBRATION_TEMP_DIFF 95 int "Maximum number of calibration skips" 99 Calibration is skipped when temperature change since last calibration 101 reaches configured value then calibration is performed 102 unconditionally. Set to 0 to perform calibration periodically [all …]
|
D | Kconfig.smartbond | 15 int "Low-power oscillators calibration interval" 19 Time in seconds between calibration of low power clock RC32K and RCX.
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | Kconfig.nxp | 16 bool "BLE Controller calibration data" 18 If enabled, the Host will send calibration data to the BLE Controller during HCI init. 21 bool "BLE Controller calibration data annex 100" 23 If enabled, the Host will send calibration data annex 100 to the BLE Controller during HCI
|
/Zephyr-latest/drivers/input/ |
D | input_analog_axis.c | 40 struct analog_axis_calibration *calibration; member 72 struct analog_axis_calibration *cal = &cfg->calibration[channel]; in analog_axis_calibration_get() 100 struct analog_axis_calibration *cal = &cfg->calibration[channel]; in analog_axis_calibration_set() 119 struct analog_axis_calibration *cal = &cfg->calibration[channel]; in analog_axis_out_deadzone() 147 struct analog_axis_calibration *cal = &cfg->calibration[channel]; in analog_axis_out_linear() 188 struct analog_axis_calibration *cal = &cfg->calibration[i]; in analog_axis_loop() 364 .calibration = analog_axis_calibration_##inst, \
|
D | Kconfig.analog_axis | 33 analog_axis_calibration_save() function to save the calibration into 40 Maximum number of axes that can have calibration value saved in
|
/Zephyr-latest/drivers/adc/ |
D | Kconfig.mcux | 110 bool "Do offset calibration" 112 Do offset calibration
|
/Zephyr-latest/subsys/emul/ |
D | Kconfig | 20 too high, or may return invalid measurements if calibration has not
|
/Zephyr-latest/samples/sensor/ina219/ |
D | README.rst | 12 The calibration/configuration parameters can be set in the devicetree file.
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | rtc.rst | 45 features missing, like input clock calibration and the update 77 The calibration test tests a range of values which are printed to the 83 and clock calibration, these must be enabled by selecting
|
/Zephyr-latest/tests/drivers/build_all/adc/boards/ |
D | native_sim.overlay | 257 self-calibration; 272 self-calibration;
|
/Zephyr-latest/boards/alientek/pandora_stm32l475/doc/ |
D | index.rst | 25 - MCU current ammeter with 4 ranges and auto-calibration 51 - RTC with HW calendar, alarms and calibration
|
/Zephyr-latest/dts/arm/nxp/ |
D | nxp_mcxa156.dtsi | 310 calibration-average = <128>; 326 calibration-average = <128>;
|
/Zephyr-latest/soc/ite/ec/it8xxx2/ |
D | Kconfig | 160 bool "LCVCO calibration" 165 option allows for supported LCVCO calibration, improving
|
/Zephyr-latest/boards/st/stm32l476g_disco/doc/ |
D | index.rst | 34 - MCU current ammeter with 4 ranges and auto-calibration 59 - RTC with HW calendar, alarms and calibration
|