nrfxlib API 0.1.0
Loading...
Searching...
No Matches
mpsl_clock.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include "nrf.h"
#include "nrf_errno.h"

Go to the source code of this file.

Data Structures

struct  mpsl_clock_lfclk_cfg_t
 Type representing LFCLK oscillator source. More...
 

Macros

#define MPSL_RECOMMENDED_RC_CTIV   16
 Recommended RC clock calibration timer interval.
 
#define MPSL_RECOMMENDED_RC_TEMP_CTIV   2
 Recommended RC clock calibration timer interval for temperature changes.
 
#define MPSL_DEFAULT_CLOCK_ACCURACY_PPM   250
 Default LF clock accuracy in parts per million (ppm).
 
#define MPSL_DEFAULT_SKIP_WAIT_LFCLK_STARTED   false
 MPSL waits for low frequency clock to start by default.
 

Typedefs

typedef void(* mpsl_clock_hfclk_callback_t) (void)
 High frequency clock callback.
 

Enumerations

enum  MPSL_CLOCK_LF_SRC { MPSL_CLOCK_LF_SRC_RC = 0 , MPSL_CLOCK_LF_SRC_XTAL = 1 , MPSL_CLOCK_LF_SRC_SYNTH = 2 }
 Low frequency clock source. More...
 
enum  mpsl_clock_hfclk_latency_config_t { MPSL_CLOCK_HF_LATENCY_BEST = 396 , MPSL_CLOCK_HF_LATENCY_TYPICAL = 854 , MPSL_CLOCK_HF_LATENCY_WORST_CASE = 1400 }
 

Functions

int32_t mpsl_clock_hfclk_request (mpsl_clock_hfclk_callback_t hfclk_started_callback)
 Request the high frequency crystal oscillator.
 
int32_t mpsl_clock_hfclk_release (void)
 Releases the high frequency crystal oscillator.
 
int32_t mpsl_clock_hfclk_is_running (uint32_t *p_is_running)
 Checks if the high frequency crystal oscillator is running.
 
int32_t mpsl_clock_hfclk_latency_set (uint16_t hfclk_rampup_time_us)
 Informs MPSL about the actual ramp-up time of the high-frequency crystal oscillator.
 
void mpsl_clock_task_trigger_on_rtc_start_set (uint32_t task_address)
 Trigger a task upon start of the RTC.