Lines Matching +full:high +full:- +full:frequency
2 * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
47 * This code can be used to managing low-frequency clock (LFCLK) and the high-frequency clock
63 * @brief Presence of the Low Frequency Clock calibration.
73 * @brief Low-frequency clock sources.
111 * @brief High-frequency clock sources.
151 …* @details The NRF_CLOCK_TASK_LFCLKSTOP task cannot be set when the low-frequency clock is not run…
152 * The NRF_CLOCK_TASK_HFCLKSTOP task cannot be set when the high-frequency clock is not running.
154 typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
165 } nrf_clock_task_t; /*lint -restore */
170 typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
176 …NT_CTTO = offsetof(NRF_CLOCK_Type, EVENTS_CTTO) /**< Calibration timer time-out.*/
178 } nrf_clock_event_t; /*lint -restore …
249 * @brief Function for changing the low-frequency clock source.
250 * @details This function cannot be called when the low-frequency clock is running.
252 * @param[in] source New low-frequency clock source.
257 * @brief Function for retrieving the selected source for the low-frequency clock.
260 * is the selected source for the low-frequency clock.
262 * is the selected source for the low-frequency clock.
264 * the HFCLK is the selected source for the low-frequency clock.
269 * @brief Function for retrieving the active source of the low-frequency clock.
272 * is the active source of the low-frequency clock.
274 * is the active source of the low-frequency clock.
276 * the HFCLK is the active source of the low-frequency clock.
310 * @brief Function for retrieving the active source of the high-frequency clock.
313 * source of the high-frequency clock.
315 * source of the high-frequency clock.
389 NRF_CLOCK->INTENSET = int_mask; in nrf_clock_int_enable()
394 NRF_CLOCK->INTENCLR = int_mask; in nrf_clock_int_disable()
399 return (bool)(NRF_CLOCK->INTENCLR & int_mask); in nrf_clock_int_enable_check()
433 NRF_CLOCK->LFCLKSRC = (uint32_t)(source); in nrf_clock_lf_src_set()
438 return (nrf_clock_lfclk_t)(NRF_CLOCK->LFCLKSRC); in nrf_clock_lf_src_get()
443 return (nrf_clock_lfclk_t)((NRF_CLOCK->LFCLKSTAT & in nrf_clock_lf_actv_src_get()
449 return (nrf_clock_lfclk_t)((NRF_CLOCK->LFCLKSRCCOPY & in nrf_clock_lf_srccopy_get()
455 return ((NRF_CLOCK->LFCLKSTAT & in nrf_clock_lf_is_running()
461 return (nrf_clock_start_task_status_t)((NRF_CLOCK->LFCLKRUN & in nrf_clock_lf_start_task_status_get()
467 return (nrf_clock_hfclk_t)((NRF_CLOCK->HFCLKSTAT & in nrf_clock_hf_src_get()
473 return (NRF_CLOCK->HFCLKSTAT & (CLOCK_HFCLKSTAT_STATE_Msk | CLOCK_HFCLKSTAT_SRC_Msk)) == in nrf_clock_hf_is_running()
479 return (nrf_clock_start_task_status_t)((NRF_CLOCK->HFCLKRUN & in nrf_clock_hf_start_task_status_get()
486 NRF_CLOCK->CTIV = ((interval << CLOCK_CTIV_CTIV_Pos) & CLOCK_CTIV_CTIV_Msk); in nrf_clock_cal_timer_timeout_set()