nrfx 3.3
Data Structures | Macros | Enumerations | Functions
HFXO64M HAL

Hardware access layer for managing the High Frequency Crystal Oscillator 64MHz (HFXO64M). More...

Data Structures

struct  nrf_hfxo64m_status_t
 HFXO64M status. More...
 
struct  nrf_hfxo64m_statusana_t
 HFXO64M status of analog module output signals. More...
 
struct  nrf_hfxo64m_ts_cfg_t
 HFXO64M Temperature sensor configuration. More...
 
struct  nrf_hfxo64m_ts_ensel_t
 HFXO64M Temperature sensor enable settings. More...
 
struct  nrf_hfxo64m_cfg_t
 HFXO64M configuration. More...
 

Macros

#define NRF_HFXO64M_HAS_TCXO   1
 Symbol indicating whether the TCXO is present.
 

Enumerations

enum  nrf_hfxo64m_event_t {
  NRF_HFXO64M_EVENT_STARTED = offsetof(NRF_HFXO64M_Type, EVENTS_STARTED) ,
  NRF_HFXO64M_EVENT_STOPPED = offsetof(NRF_HFXO64M_Type, EVENTS_STOPPED) ,
  NRF_HFXO64M_EVENT_ERROR_BIAS = offsetof(NRF_HFXO64M_Type, EVENTS_ERRORBIAS) ,
  NRF_HFXO64M_EVENT_ERROR_DETECTOR = offsetof(NRF_HFXO64M_Type, EVENTS_ERRORDETECTOR) ,
  NRF_HFXO64M_EVENT_ERROR_TCXO = offsetof(NRF_HFXO64M_Type, EVENTS_ERRORTCXO) ,
  NRF_HFXO64M_EVENT_STARTREQ = offsetof(NRF_HFXO64M_Type, EVENTS_STARTREQ) ,
  NRF_HFXO64M_EVENT_STOPREQ = offsetof(NRF_HFXO64M_Type, EVENTS_STOPREQ)
}
 HFXO64M events. More...
 
enum  nrf_hfxo64m_int_mask_t {
  NRF_HFXO64M_INT_STARTED_MASK = HFXO64M_INTENSET_STARTED_Msk ,
  NRF_HFXO64M_INT_STOPPED_MASK = HFXO64M_INTENSET_STOPPED_Msk ,
  NRF_HFXO64M_INT_ERROR_BIAS_MASK = HFXO64M_INTENSET_ERRORBIAS_Msk ,
  NRF_HFXO64M_INT_ERROR_DETECTOR_MASK = HFXO64M_INTENSET_ERRORDETECTOR_Msk ,
  NRF_HFXO64M_INT_ERROR_TCXO_MASK = HFXO64M_INTENSET_ERRORTCXO_Msk ,
  NRF_HFXO64M_INT_STARTREQ_MASK = HFXO64M_INTENSET_STARTREQ_Msk ,
  NRF_HFXO64M_INT_STOPREQ_MASK = HFXO64M_INTENSET_STOPREQ_Msk
}
 HFXO64M interrupts. More...
 
enum  nrf_hfxo64m_status_mode_t {
  NRF_HFXO64M_STATUS_MODE_NORMAL = HFXO64M_STATUS_MODE_Normal ,
  NRF_HFXO64M_STATUS_MODE_TCXO = HFXO64M_STATUS_MODE_TCXO
}
 HFXO64M status modes. More...
 
enum  nrf_hfxo64m_process_t {
  NRF_HFXO64M_PROCESS_TYPICAL = 0 ,
  NRF_HFXO64M_PROCESS_SLOW ,
  NRF_HFXO64M_PROCESS_FAST
}
 HFXO64M process modes. More...
 
enum  nrf_hfxo64m_ts_interval_t {
  NRF_HFXO64M_TS_INTERVAL_4US = HFXO64M_TS_CFG_TIMERSEL_Interval4us ,
  NRF_HFXO64M_TS_INTERVAL_8US = HFXO64M_TS_CFG_TIMERSEL_Interval8us ,
  NRF_HFXO64M_TS_INTERVAL_16US = HFXO64M_TS_CFG_TIMERSEL_Interval16us ,
  NRF_HFXO64M_TS_INTERVAL_32US = HFXO64M_TS_CFG_TIMERSEL_Interval32us ,
  NRF_HFXO64M_TS_INTERVAL_64US = HFXO64M_TS_CFG_TIMERSEL_Interval64us ,
  NRF_HFXO64M_TS_INTERVAL_128US = HFXO64M_TS_CFG_TIMERSEL_Interval128us ,
  NRF_HFXO64M_TS_INTERVAL_256US = HFXO64M_TS_CFG_TIMERSEL_Interval256us ,
  NRF_HFXO64M_TS_INTERVAL_512US = HFXO64M_TS_CFG_TIMERSEL_Interval512us
}
 HFXO64M Temperature measurement interval mode. More...
 
enum  nrf_hfxo64m_power_control_t {
  NRF_HFXO64M_POWER_CONTROL_AUTO = HFXO64M_PWRUPCTRL_CTRL_Auto ,
  NRF_HFXO64M_POWER_CONTROL_POWER_UP = HFXO64M_PWRUPCTRL_CTRL_PowerUp ,
  NRF_HFXO64M_POWER_CONTROL_POWER_DOWN = HFXO64M_PWRUPCTRL_CTRL_PowerDown
}
 Power up control modes. More...
 
enum  nrf_hfxo64m_mode_t {
  NRF_HFXO64M_MODE_NORMAL = HFXO64M_MODE_MODE_Normal ,
  NRF_HFXO64M_MODE_TCXO = HFXO64M_MODE_MODE_TCXO
}
 HFXO64M modes. More...
 
enum  nrf_hfxo64m_xtal_settletime_t {
  NRF_HFXO64M_XTAL_SETTLETIME_250US = HFXO64M_XTALSETTLETIME_VAL_Settle250us ,
  NRF_HFXO64M_XTAL_SETTLETIME_300US = HFXO64M_XTALSETTLETIME_VAL_Settle300us ,
  NRF_HFXO64M_XTAL_SETTLETIME_350US = HFXO64M_XTALSETTLETIME_VAL_Settle350us ,
  NRF_HFXO64M_XTAL_SETTLETIME_400US = HFXO64M_XTALSETTLETIME_VAL_Settle400us ,
  NRF_HFXO64M_XTAL_SETTLETIME_500US = HFXO64M_XTALSETTLETIME_VAL_Settle500us ,
  NRF_HFXO64M_XTAL_SETTLETIME_600US = HFXO64M_XTALSETTLETIME_VAL_Settle600us ,
  NRF_HFXO64M_XTAL_SETTLETIME_700US = HFXO64M_XTALSETTLETIME_VAL_Settle700us ,
  NRF_HFXO64M_XTAL_SETTLETIME_800US = HFXO64M_XTALSETTLETIME_VAL_Settle800us ,
  NRF_HFXO64M_XTAL_SETTLETIME_1000US = HFXO64M_XTALSETTLETIME_VAL_Settle1000us ,
  NRF_HFXO64M_XTAL_SETTLETIME_2000US = HFXO64M_XTALSETTLETIME_VAL_Settle2000us ,
  NRF_HFXO64M_XTAL_SETTLETIME_3000US = HFXO64M_XTALSETTLETIME_VAL_Settle3000us ,
  NRF_HFXO64M_XTAL_SETTLETIME_4000US = HFXO64M_XTALSETTLETIME_VAL_Settle4000us ,
  NRF_HFXO64M_XTAL_SETTLETIME_5000US = HFXO64M_XTALSETTLETIME_VAL_Settle5000us ,
  NRF_HFXO64M_XTAL_SETTLETIME_6000US = HFXO64M_XTALSETTLETIME_VAL_Settle6000us ,
  NRF_HFXO64M_XTAL_SETTLETIME_7000US = HFXO64M_XTALSETTLETIME_VAL_Settle7000us ,
  NRF_HFXO64M_XTAL_SETTLETIME_8500US = HFXO64M_XTALSETTLETIME_VAL_Settle8500us
}
 HFXO64M Crystal settle time mode. More...
 
enum  nrf_hfxo64m_chirp_period_t {
  NRF_HFXO64M_CHIRP_PERIOD_32US = HFXO64M_CHIRPTIME_VAL_Chirp32us ,
  NRF_HFXO64M_CHIRP_PERIOD_40US = HFXO64M_CHIRPTIME_VAL_Chirp40us ,
  NRF_HFXO64M_CHIRP_PERIOD_48US = HFXO64M_CHIRPTIME_VAL_Chirp48us ,
  NRF_HFXO64M_CHIRP_PERIOD_56US = HFXO64M_CHIRPTIME_VAL_Chirp56us ,
  NRF_HFXO64M_CHIRP_PERIOD_65US = HFXO64M_CHIRPTIME_VAL_Chirp65us ,
  NRF_HFXO64M_CHIRP_PERIOD_73US = HFXO64M_CHIRPTIME_VAL_Chirp73us ,
  NRF_HFXO64M_CHIRP_PERIOD_81US = HFXO64M_CHIRPTIME_VAL_Chirp81us ,
  NRF_HFXO64M_CHIRP_PERIOD_89US = HFXO64M_CHIRPTIME_VAL_Chirp89us ,
  NRF_HFXO64M_CHIRP_PERIOD_98US = HFXO64M_CHIRPTIME_VAL_Chirp98us ,
  NRF_HFXO64M_CHIRP_PERIOD_106US = HFXO64M_CHIRPTIME_VAL_Chirp106us ,
  NRF_HFXO64M_CHIRP_PERIOD_114US = HFXO64M_CHIRPTIME_VAL_Chirp114us ,
  NRF_HFXO64M_CHIRP_PERIOD_122US = HFXO64M_CHIRPTIME_VAL_Chirp122us ,
  NRF_HFXO64M_CHIRP_PERIOD_131US = HFXO64M_CHIRPTIME_VAL_Chirp131us ,
  NRF_HFXO64M_CHIRP_PERIOD_139US = HFXO64M_CHIRPTIME_VAL_Chirp139us ,
  NRF_HFXO64M_CHIRP_PERIOD_147US = HFXO64M_CHIRPTIME_VAL_Chirp147us ,
  NRF_HFXO64M_CHIRP_PERIOD_156US = HFXO64M_CHIRPTIME_VAL_Chirp156us
}
 HFXO64M Chirp period length. More...
 
enum  nrf_hfxo64m_levelselect_t {
  NRF_HFXO64M_LEVELSELECT_HIGH = HFXO64M_CFG_LEVELSELECT_High ,
  NRF_HFXO64M_LEVELSELECT_LOW = HFXO64M_CFG_LEVELSELECT_Low
}
 HFXO64M select for AREG level. More...
 

Functions

NRF_STATIC_INLINE uint32_t nrf_hfxo64m_event_address_get (NRF_HFXO64M_Type const *p_reg, nrf_hfxo64m_event_t event)
 Function for retrieving the address of the specified event.
 
NRF_STATIC_INLINE void nrf_hfxo64m_event_clear (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_event_t event)
 Function for clearing the specified event.
 
NRF_STATIC_INLINE bool nrf_hfxo64m_event_check (NRF_HFXO64M_Type const *p_reg, nrf_hfxo64m_event_t event)
 Function for retrieving the state of the specified event.
 
NRF_STATIC_INLINE void nrf_hfxo64m_int_enable (NRF_HFXO64M_Type *p_reg, uint32_t mask)
 Function for enabling the specified interrupt.
 
NRF_STATIC_INLINE void nrf_hfxo64m_int_disable (NRF_HFXO64M_Type *p_reg, uint32_t mask)
 Function for disabling the specified interrupt.
 
NRF_STATIC_INLINE uint32_t nrf_hfxo64m_int_enable_check (NRF_HFXO64M_Type const *p_reg, uint32_t mask)
 Function for checking if the specified interrupts are enabled.
 
NRF_STATIC_INLINE uint32_t nrf_hfxo64m_int_pending_get (NRF_HFXO64M_Type const *p_reg)
 Function for retrieving the state of pending interrupts.
 
NRF_STATIC_INLINE void nrf_hfxo64m_status_get (NRF_HFXO64M_Type const *p_reg, nrf_hfxo64m_status_t *p_status)
 Function for getting HFXO64M status.
 
NRF_STATIC_INLINE void nrf_hfxo64m_statusana_get (NRF_HFXO64M_Type const *p_reg, nrf_hfxo64m_statusana_t *p_status)
 Function for getting HFXO64M status of analog module output signals.
 
NRF_STATIC_INLINE uint8_t nrf_hfxo64m_trim_rtune_get (NRF_HFXO64M_Type const *p_reg)
 Function for getting the HFXO64M voltage reference tuning.
 
NRF_STATIC_INLINE void nrf_hfxo64m_trim_rtune_set (NRF_HFXO64M_Type *p_reg, uint8_t value)
 Function for setting the HFXO64M voltage reference tuning.
 
NRF_STATIC_INLINE nrf_hfxo64m_process_t nrf_hfxo64m_trim_chirptune_get (NRF_HFXO64M_Type const *p_reg)
 Function for getting the HFXO64M process compensation tuning mode for chirp generator.
 
NRF_STATIC_INLINE void nrf_hfxo64m_trim_chirptune_set (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_process_t mode)
 Function for setting the HFXO64M process compensation tuning mode for chirp generator.
 
NRF_STATIC_INLINE nrf_hfxo64m_process_t nrf_hfxo64m_trim_doublercomp_get (NRF_HFXO64M_Type const *p_reg)
 Function for getting the HFXO64M process compensation mode for frequency doubler.
 
NRF_STATIC_INLINE void nrf_hfxo64m_trim_doublercomp_set (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_process_t mode)
 Function for setting the HFXO64M process compensation mode for frequency doubler.
 
NRF_STATIC_INLINE void nrf_hfxo64m_ts_cfg_get (NRF_HFXO64M_Type const *p_reg, nrf_hfxo64m_ts_cfg_t *p_cfg)
 Function for getting the HFXO64M temperature sensor configuration.
 
NRF_STATIC_INLINE void nrf_hfxo64m_ts_cfg_set (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_ts_cfg_t *p_cfg)
 Function for setting the HFXO64M temperature sensor measurement mode for ch1.
 
NRF_STATIC_INLINE void nrf_hfxo64m_ts_ensel_set (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_ts_ensel_t *p_sel)
 Function for enabling/disabling the HFXO64M temperature sensor enabling per clock request.
 
NRF_STATIC_INLINE void nrf_hfxo64m_ts_datain_set (NRF_HFXO64M_Type *p_reg, uint16_t value)
 Function for setting the HFXO64M temperature sensor test data input.
 
NRF_STATIC_INLINE void nrf_hfxo64m_ts_datainload_set (NRF_HFXO64M_Type *p_reg, bool enable)
 Function for enabling/disabling the HFXO64M temperature sensor test data latch pulse input.
 
NRF_STATIC_INLINE void nrf_hfxo64m_mirror_lock_set (NRF_HFXO64M_Type *p_reg, bool enable)
 Function for enabling/disabling lock for mirrored registers.
 
NRF_STATIC_INLINE void nrf_hfxo64m_power_control_set (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_power_control_t pwrctrl)
 Function for setting the power control configuration.
 
NRF_STATIC_INLINE void nrf_hfxo64m_mode_set (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_mode_t oscmode)
 Function for setting HFXO64M mode.
 
NRF_STATIC_INLINE void nrf_hfxo64m_xtal_settletime_set (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_xtal_settletime_t settle_time)
 Function for setting the HFXO64M settle time of the crystal.
 
NRF_STATIC_INLINE void nrf_hfxo64m_chirp_period_set (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_chirp_period_t period)
 Function for setting the HFXO64M chirp period length.
 
NRF_STATIC_INLINE void nrf_hfxo64m_damping_set (NRF_HFXO64M_Type *p_reg, bool enable)
 Function for enabling/disabling the HFXO64M MMI to do crystal damping when stopping the oscillator.
 
NRF_STATIC_INLINE void nrf_hfxo64m_forcebuff_set (NRF_HFXO64M_Type *p_reg, bool enable)
 Function for enabling/disabling all clock buffers when sinOut4_ana buffer is enabled.
 
NRF_STATIC_INLINE void nrf_hfxo64m_cfg_get (NRF_HFXO64M_Type const *p_reg, nrf_hfxo64m_cfg_t *p_cfg)
 Function for getting the HFXO64M configuration.
 
NRF_STATIC_INLINE void nrf_hfxo64m_cfg_set (NRF_HFXO64M_Type *p_reg, nrf_hfxo64m_cfg_t *p_cfg)
 Function for setting the HFXO64M configuration.
 
NRF_STATIC_INLINE bool nrf_hfxo64m_tcxopowered_check (NRF_HFXO64M_Type const *p_reg)
 Function for checking the status of the TCXO power.
 
NRF_STATIC_INLINE void nrf_hfxo64m_tcxopowered_set (NRF_HFXO64M_Type *p_reg, bool enable)
 Function for setting the status of the TCXO power.
 

Detailed Description

Hardware access layer for managing the High Frequency Crystal Oscillator 64MHz (HFXO64M).

Enumeration Type Documentation

◆ nrf_hfxo64m_chirp_period_t

HFXO64M Chirp period length.

Enumerator
NRF_HFXO64M_CHIRP_PERIOD_32US 

32.0 us.

NRF_HFXO64M_CHIRP_PERIOD_40US 

40.3 us.

NRF_HFXO64M_CHIRP_PERIOD_48US 

48.5 us.

NRF_HFXO64M_CHIRP_PERIOD_56US 

56.8 us.

NRF_HFXO64M_CHIRP_PERIOD_65US 

65.1 us.

NRF_HFXO64M_CHIRP_PERIOD_73US 

73.3 us.

NRF_HFXO64M_CHIRP_PERIOD_81US 

81.6 us.

NRF_HFXO64M_CHIRP_PERIOD_89US 

89.9 us.

NRF_HFXO64M_CHIRP_PERIOD_98US 

98.1 us.

NRF_HFXO64M_CHIRP_PERIOD_106US 

106.4 us.

NRF_HFXO64M_CHIRP_PERIOD_114US 

114.7 us.

NRF_HFXO64M_CHIRP_PERIOD_122US 

122.9 us.

NRF_HFXO64M_CHIRP_PERIOD_131US 

131.2 us.

NRF_HFXO64M_CHIRP_PERIOD_139US 

139.5 us.

NRF_HFXO64M_CHIRP_PERIOD_147US 

147.7 us.

NRF_HFXO64M_CHIRP_PERIOD_156US 

156.0 us.

◆ nrf_hfxo64m_event_t

HFXO64M events.

Enumerator
NRF_HFXO64M_EVENT_STARTED 

HFXO64M started.

NRF_HFXO64M_EVENT_STOPPED 

HFXO64M stopped.

NRF_HFXO64M_EVENT_ERROR_BIAS 

Error in BIAS setup.

NRF_HFXO64M_EVENT_ERROR_DETECTOR 

Error with DETECTOR.

NRF_HFXO64M_EVENT_ERROR_TCXO 

Error with TCXO startup.

NRF_HFXO64M_EVENT_STARTREQ 

Clock start has been requested.

NRF_HFXO64M_EVENT_STOPREQ 

Clock start has been requested.

◆ nrf_hfxo64m_int_mask_t

HFXO64M interrupts.

Enumerator
NRF_HFXO64M_INT_STARTED_MASK 

Interrupt on STARTED event.

NRF_HFXO64M_INT_STOPPED_MASK 

Interrupt on STOPPED event.

NRF_HFXO64M_INT_ERROR_BIAS_MASK 

Interrupt on ERRORBIAS event.

NRF_HFXO64M_INT_ERROR_DETECTOR_MASK 

Interrupt on ERRORDETECTOR event.

NRF_HFXO64M_INT_ERROR_TCXO_MASK 

Interrupt on ERRORTCXO event.

NRF_HFXO64M_INT_STARTREQ_MASK 

Interrupt on STARTREQ event.

NRF_HFXO64M_INT_STOPREQ_MASK 

Interrupt on STOPREQ event.

◆ nrf_hfxo64m_levelselect_t

HFXO64M select for AREG level.

Enumerator
NRF_HFXO64M_LEVELSELECT_HIGH 

Normal, high amplitude.

NRF_HFXO64M_LEVELSELECT_LOW 

Low power, low amplitude.

◆ nrf_hfxo64m_mode_t

HFXO64M modes.

Enumerator
NRF_HFXO64M_MODE_NORMAL 

Normal operating mode.

NRF_HFXO64M_MODE_TCXO 

TCXO/bypass mode.

◆ nrf_hfxo64m_power_control_t

Power up control modes.

Enumerator
NRF_HFXO64M_POWER_CONTROL_AUTO 

Automatically handled by the peripheral.

NRF_HFXO64M_POWER_CONTROL_POWER_UP 

Power up.

NRF_HFXO64M_POWER_CONTROL_POWER_DOWN 

Power down.

◆ nrf_hfxo64m_process_t

HFXO64M process modes.

Enumerator
NRF_HFXO64M_PROCESS_TYPICAL 

Typical process compensation.

NRF_HFXO64M_PROCESS_SLOW 

Slow process compensation.

NRF_HFXO64M_PROCESS_FAST 

Fast process compensation.

◆ nrf_hfxo64m_status_mode_t

HFXO64M status modes.

Enumerator
NRF_HFXO64M_STATUS_MODE_NORMAL 

Normal HFXO64M mode.

NRF_HFXO64M_STATUS_MODE_TCXO 

External TCXO used, HFXO64M core is bypassed.

◆ nrf_hfxo64m_ts_interval_t

HFXO64M Temperature measurement interval mode.

Enumerator
NRF_HFXO64M_TS_INTERVAL_4US 

4 us.

NRF_HFXO64M_TS_INTERVAL_8US 

8 us.

NRF_HFXO64M_TS_INTERVAL_16US 

16 us.

NRF_HFXO64M_TS_INTERVAL_32US 

32 us.

NRF_HFXO64M_TS_INTERVAL_64US 

64 us.

NRF_HFXO64M_TS_INTERVAL_128US 

128 us.

NRF_HFXO64M_TS_INTERVAL_256US 

256 us.

NRF_HFXO64M_TS_INTERVAL_512US 

512 us.

◆ nrf_hfxo64m_xtal_settletime_t

HFXO64M Crystal settle time mode.

Enumerator
NRF_HFXO64M_XTAL_SETTLETIME_250US 

250 us.

NRF_HFXO64M_XTAL_SETTLETIME_300US 

300 us.

NRF_HFXO64M_XTAL_SETTLETIME_350US 

350 us.

NRF_HFXO64M_XTAL_SETTLETIME_400US 

400 us.

NRF_HFXO64M_XTAL_SETTLETIME_500US 

500 us.

NRF_HFXO64M_XTAL_SETTLETIME_600US 

600 us.

NRF_HFXO64M_XTAL_SETTLETIME_700US 

700 us.

NRF_HFXO64M_XTAL_SETTLETIME_800US 

800 us.

NRF_HFXO64M_XTAL_SETTLETIME_1000US 

1000 us.

NRF_HFXO64M_XTAL_SETTLETIME_2000US 

2000 us.

NRF_HFXO64M_XTAL_SETTLETIME_3000US 

3000 us.

NRF_HFXO64M_XTAL_SETTLETIME_4000US 

4000 us.

NRF_HFXO64M_XTAL_SETTLETIME_5000US 

5000 us.

NRF_HFXO64M_XTAL_SETTLETIME_6000US 

6000 us.

NRF_HFXO64M_XTAL_SETTLETIME_7000US 

7000 us.

NRF_HFXO64M_XTAL_SETTLETIME_8500US 

8000 us.

Function Documentation

◆ nrf_hfxo64m_cfg_get()

NRF_STATIC_INLINE void nrf_hfxo64m_cfg_get ( NRF_HFXO64M_Type const *  p_reg,
nrf_hfxo64m_cfg_t p_cfg 
)

Function for getting the HFXO64M configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[out]p_cfgPointer to the structure to be filled with temperature sensor configuration.

◆ nrf_hfxo64m_cfg_set()

NRF_STATIC_INLINE void nrf_hfxo64m_cfg_set ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_cfg_t p_cfg 
)

Function for setting the HFXO64M configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]p_cfgPointer to the structure with HFXO64M configuration.

◆ nrf_hfxo64m_chirp_period_set()

NRF_STATIC_INLINE void nrf_hfxo64m_chirp_period_set ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_chirp_period_t  period 
)

Function for setting the HFXO64M chirp period length.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]periodChirp period length.

◆ nrf_hfxo64m_damping_set()

NRF_STATIC_INLINE void nrf_hfxo64m_damping_set ( NRF_HFXO64M_Type *  p_reg,
bool  enable 
)

Function for enabling/disabling the HFXO64M MMI to do crystal damping when stopping the oscillator.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableEnable crystal damping.

◆ nrf_hfxo64m_event_address_get()

NRF_STATIC_INLINE uint32_t nrf_hfxo64m_event_address_get ( NRF_HFXO64M_Type const *  p_reg,
nrf_hfxo64m_event_t  event 
)

Function for retrieving the address of the specified event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventHFXO64M Event.
Returns
Address of the specified event register.

◆ nrf_hfxo64m_event_check()

NRF_STATIC_INLINE bool nrf_hfxo64m_event_check ( NRF_HFXO64M_Type const *  p_reg,
nrf_hfxo64m_event_t  event 
)

Function for retrieving the state of the specified event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be checked.
Return values
trueThe event has been generated.
falseThe event has not been generated.

◆ nrf_hfxo64m_event_clear()

NRF_STATIC_INLINE void nrf_hfxo64m_event_clear ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_event_t  event 
)

Function for clearing the specified event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to clear.

◆ nrf_hfxo64m_forcebuff_set()

NRF_STATIC_INLINE void nrf_hfxo64m_forcebuff_set ( NRF_HFXO64M_Type *  p_reg,
bool  enable 
)

Function for enabling/disabling all clock buffers when sinOut4_ana buffer is enabled.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableEnable all clock buffers.

◆ nrf_hfxo64m_int_disable()

NRF_STATIC_INLINE void nrf_hfxo64m_int_disable ( NRF_HFXO64M_Type *  p_reg,
uint32_t  mask 
)

Function for disabling the specified interrupt.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be disabled. Use nrf_hfxo64m_int_mask_t values for bit masking.

◆ nrf_hfxo64m_int_enable()

NRF_STATIC_INLINE void nrf_hfxo64m_int_enable ( NRF_HFXO64M_Type *  p_reg,
uint32_t  mask 
)

Function for enabling the specified interrupt.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be enabled. Use nrf_hfxo64m_int_mask_t values for bit masking.

◆ nrf_hfxo64m_int_enable_check()

NRF_STATIC_INLINE uint32_t nrf_hfxo64m_int_enable_check ( NRF_HFXO64M_Type const *  p_reg,
uint32_t  mask 
)

Function for checking if the specified interrupts are enabled.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be checked. Use nrf_hfxo64m_int_mask_t values for bit masking.
Returns
Mask of enabled interrupts.

◆ nrf_hfxo64m_int_pending_get()

NRF_STATIC_INLINE uint32_t nrf_hfxo64m_int_pending_get ( NRF_HFXO64M_Type const *  p_reg)

Function for retrieving the state of pending interrupts.

States of pending interrupt are saved as a bitmask. One set at particular position means that interrupt for event is pending.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Bitmask with information about pending interrupts. Use nrf_hfxo64m_int_mask_t values for bit masking.

◆ nrf_hfxo64m_mirror_lock_set()

NRF_STATIC_INLINE void nrf_hfxo64m_mirror_lock_set ( NRF_HFXO64M_Type *  p_reg,
bool  enable 
)

Function for enabling/disabling lock for mirrored registers.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableEnable lock.

◆ nrf_hfxo64m_mode_set()

NRF_STATIC_INLINE void nrf_hfxo64m_mode_set ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_mode_t  oscmode 
)

Function for setting HFXO64M mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]oscmodeOscillator mode.

◆ nrf_hfxo64m_power_control_set()

NRF_STATIC_INLINE void nrf_hfxo64m_power_control_set ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_power_control_t  pwrctrl 
)

Function for setting the power control configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]pwrctrlPower up control mode.

◆ nrf_hfxo64m_status_get()

NRF_STATIC_INLINE void nrf_hfxo64m_status_get ( NRF_HFXO64M_Type const *  p_reg,
nrf_hfxo64m_status_t p_status 
)

Function for getting HFXO64M status.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[out]p_statusPointer to the structure to be filled with HFXO64M status.

◆ nrf_hfxo64m_statusana_get()

NRF_STATIC_INLINE void nrf_hfxo64m_statusana_get ( NRF_HFXO64M_Type const *  p_reg,
nrf_hfxo64m_statusana_t p_status 
)

Function for getting HFXO64M status of analog module output signals.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[out]p_statusPointer to the structure to be filled with HFXO64M status of analog module output signals.

◆ nrf_hfxo64m_tcxopowered_check()

NRF_STATIC_INLINE bool nrf_hfxo64m_tcxopowered_check ( NRF_HFXO64M_Type const *  p_reg)

Function for checking the status of the TCXO power.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Return values
trueTCXO is powered on.
falseTCXO is powered off.

◆ nrf_hfxo64m_tcxopowered_set()

NRF_STATIC_INLINE void nrf_hfxo64m_tcxopowered_set ( NRF_HFXO64M_Type *  p_reg,
bool  enable 
)

Function for setting the status of the TCXO power.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableTrue if the TCXO power status is to be set, false otherwise.

◆ nrf_hfxo64m_trim_chirptune_get()

NRF_STATIC_INLINE nrf_hfxo64m_process_t nrf_hfxo64m_trim_chirptune_get ( NRF_HFXO64M_Type const *  p_reg)

Function for getting the HFXO64M process compensation tuning mode for chirp generator.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Process compensation tuning mode.

◆ nrf_hfxo64m_trim_chirptune_set()

NRF_STATIC_INLINE void nrf_hfxo64m_trim_chirptune_set ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_process_t  mode 
)

Function for setting the HFXO64M process compensation tuning mode for chirp generator.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeMode to set for process compensation tuning.

◆ nrf_hfxo64m_trim_doublercomp_get()

NRF_STATIC_INLINE nrf_hfxo64m_process_t nrf_hfxo64m_trim_doublercomp_get ( NRF_HFXO64M_Type const *  p_reg)

Function for getting the HFXO64M process compensation mode for frequency doubler.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Process compensation mode.

◆ nrf_hfxo64m_trim_doublercomp_set()

NRF_STATIC_INLINE void nrf_hfxo64m_trim_doublercomp_set ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_process_t  mode 
)

Function for setting the HFXO64M process compensation mode for frequency doubler.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeMode to set for process compensation.

◆ nrf_hfxo64m_trim_rtune_get()

NRF_STATIC_INLINE uint8_t nrf_hfxo64m_trim_rtune_get ( NRF_HFXO64M_Type const *  p_reg)

Function for getting the HFXO64M voltage reference tuning.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Voltage reference tuning value. 2's complement (MSB bit is inverted).

◆ nrf_hfxo64m_trim_rtune_set()

NRF_STATIC_INLINE void nrf_hfxo64m_trim_rtune_set ( NRF_HFXO64M_Type *  p_reg,
uint8_t  value 
)

Function for setting the HFXO64M voltage reference tuning.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valueValue to set as voltage reference tuning. 2's complement (MSB bit is inverted).

◆ nrf_hfxo64m_ts_cfg_get()

NRF_STATIC_INLINE void nrf_hfxo64m_ts_cfg_get ( NRF_HFXO64M_Type const *  p_reg,
nrf_hfxo64m_ts_cfg_t p_cfg 
)

Function for getting the HFXO64M temperature sensor configuration.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[out]p_cfgPointer to the structure to be filled with temperature sensor configuration.

◆ nrf_hfxo64m_ts_cfg_set()

NRF_STATIC_INLINE void nrf_hfxo64m_ts_cfg_set ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_ts_cfg_t p_cfg 
)

Function for setting the HFXO64M temperature sensor measurement mode for ch1.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]p_cfgPointer to the structure with temperature sensor configuration.

◆ nrf_hfxo64m_ts_datain_set()

NRF_STATIC_INLINE void nrf_hfxo64m_ts_datain_set ( NRF_HFXO64M_Type *  p_reg,
uint16_t  value 
)

Function for setting the HFXO64M temperature sensor test data input.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valueTest data input value.

◆ nrf_hfxo64m_ts_datainload_set()

NRF_STATIC_INLINE void nrf_hfxo64m_ts_datainload_set ( NRF_HFXO64M_Type *  p_reg,
bool  enable 
)

Function for enabling/disabling the HFXO64M temperature sensor test data latch pulse input.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableEnable/disable test data latch pulse input value.

◆ nrf_hfxo64m_ts_ensel_set()

NRF_STATIC_INLINE void nrf_hfxo64m_ts_ensel_set ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_ts_ensel_t p_sel 
)

Function for enabling/disabling the HFXO64M temperature sensor enabling per clock request.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]p_selPointer to the structure with temperature sensor enable settings.

◆ nrf_hfxo64m_xtal_settletime_set()

NRF_STATIC_INLINE void nrf_hfxo64m_xtal_settletime_set ( NRF_HFXO64M_Type *  p_reg,
nrf_hfxo64m_xtal_settletime_t  settle_time 
)

Function for setting the HFXO64M settle time of the crystal.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]settle_timeSettle time of the crystal.

Documentation feedback | Developer Zone | Subscribe | Updated