|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Clock control definitions for Nordic nRF devices. More...
Go to the source code of this file.
Macros | |
| #define | NRF_CLOCK_CONTROL_FREQUENCY_MAX UINT32_MAX |
| Specifies to use the maximum available frequency for a given clock. | |
| #define | NRF_CLOCK_CONTROL_ACCURACY_MAX 1 |
| Specifies to use the maximum available accuracy for a given clock. | |
| #define | NRF_CLOCK_CONTROL_ACCURACY_PPM(ppm) |
| Specifies the required clock accuracy in parts-per-million. | |
| #define | NRF_CLOCK_CONTROL_PRECISION_HIGH 1 |
| Specifies that high precision of the clock is required. | |
| #define | NRF_CLOCK_CONTROL_PRECISION_DEFAULT 0 |
| Specifies that default precision of the clock is sufficient. | |
| #define | CLOCK_CONTROL_NRF_AUXPLL_GET_FREQ(node) |
| Get the output frequency of an AUXPLL Devicetree node. | |
AUXPLL output frequencies | |
The AUXPLL Devicetree takes in raw register values; these are the actual output frequencies. | |
| #define | CLOCK_CONTROL_NRF_AUXPLL_FREQ_OUT_MIN_HZ 80000000 |
| Minimum AUXPLL output frequency, in Hz. | |
| #define | CLOCK_CONTROL_NRF_AUXPLL_FREQ_OUT_AUDIO_44K1_HZ 11289591 |
| AUXPLL output frequency for 44.1 kHz audio, in Hz. | |
| #define | CLOCK_CONTROL_NRF_AUXPLL_FREQ_OUT_USB24M_HZ 24000000 |
| AUXPLL output frequency for 24 MHz USB, in Hz. | |
| #define | CLOCK_CONTROL_NRF_AUXPLL_FREQ_OUT_AUDIO_48K_HZ 12287963 |
| AUXPLL output frequency for 48 kHz audio, in Hz. | |
Functions | |
| static int | nrf_clock_control_request (const struct device *dev, const struct nrf_clock_spec *spec, struct onoff_client *cli) |
| Request a reservation to use a given clock with specified attributes. | |
| int | nrf_clock_control_request_sync (const struct device *dev, const struct nrf_clock_spec *spec, k_timeout_t timeout) |
| Synchronously request a reservation to use a given clock with specified attributes. | |
| static int | nrf_clock_control_release (const struct device *dev, const struct nrf_clock_spec *spec) |
| Release a reserved use of a clock. | |
| static int | nrf_clock_control_cancel_or_release (const struct device *dev, const struct nrf_clock_spec *spec, struct onoff_client *cli) |
| Safely cancel a reservation request. | |
| static int | nrf_clock_control_resolve (const struct device *dev, const struct nrf_clock_spec *req_spec, struct nrf_clock_spec *res_spec) |
| Resolve a requested clock spec to resulting spec. | |
| static int | nrf_clock_control_get_startup_time (const struct device *dev, const struct nrf_clock_spec *spec, uint32_t *startup_time_us) |
| Get the startup time of a clock. | |
| void | nrf_clock_control_hfxo_request (void) |
| Request the HFXO from Zero Latency Interrupt context. | |
| void | nrf_clock_control_hfxo_release (void) |
| Release the HFXO from Zero Latency Interrupt context. | |
Clock control definitions for Nordic nRF devices.