Hardware access layer for managing the Low Frequency 32 KHz RC Oscillator (LFRC).
More...
|
|
#define | NRF_LFRC_HAS_DOUBLE_TAIL_CURRENT 1 |
| | Symbol indicating whether double tail current is present.
|
|
#define | NRF_LFRC_HAS_CONTINUOUS_TAIL_BIAS 1 |
| | Symbol indicating whether continuous tail bias is present.
|
|
#define | NRF_LFRC_HAS_RETENTION 1 |
| | Symbol indicating whether CAL retention is present.
|
|
#define | NRF_LFRC_HAS_CFG_SPARE 1 |
| | Symbol indicating whether spare general purpose configuration is present.
|
|
#define | NRF_LFRC_HAS_INTPEND 1 |
| | Symbol indicating whether INTPEND register is present.
|
|
#define | NRF_LFRC_HAS_CALIBRATION 1 |
| | Symbol indicating whether the Low Frequency Clock calibration is present.
|
|
#define | NRF_LFRC_HAS_MIRROR 1 |
| | Symbol indicating whether the MIRROR register is present.
|
|
#define | NRF_LFRC_HAS_PWRUPCTRL 1 |
| | Symbol indicating whether the PWRUPCTRL register is present.
|
|
#define | NRF_LFRC_HAS_STATUSTRIM 1 |
| | Symbol indicating whether the STATUSTRIM register is present.
|
|
#define | NRF_LFRC_HAS_STATUSANA 1 |
| | Symbol indicating whether the STATUSANA register is present.
|
|
#define | NRF_LFRC_HAS_CONFIG_CFG 1 |
| | Symbol indicating whether the CONFIG.CFG register is present.
|
|
#define | NRF_LFRC_HAS_CAL_TRIMLIMITLO 1 |
| | Symbol indicating whether the CAL.TRIMLIMITLO register is present.
|
|
#define | NRF_LFRC_HAS_CAL_TRIMLIMITHI 1 |
| | Symbol indicating whether the CAL.TRIMLIMITHI register is present.
|
|
#define | NRF_LFRC_HAS_CAL_RESULT 1 |
| | Symbol indicating whether the CAL.RESULT register is present.
|
|
#define | NRF_LFRC_HAS_CAL_LENGTH 1 |
| | Symbol indicating whether the CAL.LENGTH register is present.
|
|
#define | NRF_LFRC_HAS_CAL_NHI 1 |
| | Symbol indicating whether the CAL.NHI register is present.
|
|
#define | NRF_LFRC_HAS_CKSYNSTARTED_EVENT 1 |
| | Symbol indicating whether the CKSYNSTARTED event is present.
|
|
#define | NRF_LFRC_HAS_CKLFRCSTARTED_EVENT 1 |
| | Symbol indicating whether the CKLFRCSTARTED event is present.
|
|
| enum | nrf_lfrc_task_t {
NRF_LFRC_TASK_CAL = offsetof(NRF_LFRC_Type, TASKS_CAL)
,
NRF_LFRC_TASK_CANCELCAL = offsetof(NRF_LFRC_Type, TASKS_CANCELCAL)
} |
| | LFRC tasks. More...
|
| enum | nrf_lfrc_event_t {
NRF_LFRC_EVENT_CALDONE = offsetof(NRF_LFRC_Type, EVENTS_CALDONE)
,
NRF_LFRC_EVENT_TRIMDONE = offsetof(NRF_LFRC_Type, EVENTS_TRIMDONE)
,
NRF_LFRC_EVENT_TRIMERROR = offsetof(NRF_LFRC_Type, EVENTS_TRIMERROR)
,
NRF_LFRC_EVENT_CKSYNSTARTED = offsetof(NRF_LFRC_Type, EVENTS_CKSYNSTARTED)
,
NRF_LFRC_EVENT_CKLFRCSTARTED = offsetof(NRF_LFRC_Type, EVENTS_CKLFRCSTARTED)
} |
| | LFRC events. More...
|
| enum | nrf_lfrc_int_mask_t {
NRF_LFRC_INT_CALDONE_MASK = LFRC_INTENSET_CALDONE_Msk
,
NRF_LFRC_INT_TRIMDONE_MASK = LFRC_INTENSET_TRIMDONE_Msk
,
NRF_LFRC_INT_TRIMERROR_MASK = LFRC_INTENSET_TRIMERROR_Msk
,
NRF_LFRC_INT_CKSYNSTARTED_MASK = LFRC_INTENSET_CKSYNSTARTED_Msk
,
NRF_LFRC_INT_CKLFRCSTARTED_MASK = LFRC_INTENSET_CKLFRCSTARTED_Msk
} |
| | LFRC interrupts. More...
|
| enum | nrf_lfrc_cal_cycle_length_t {
NRF_LFRC_CAL_CYCLE_LENGTH_64 = LFRC_CAL_LENGTH_LENGTH_N64
,
NRF_LFRC_CAL_CYCLE_LENGTH_128 = LFRC_CAL_LENGTH_LENGTH_N128
,
NRF_LFRC_CAL_CYCLE_LENGTH_256 = LFRC_CAL_LENGTH_LENGTH_N256
,
NRF_LFRC_CAL_CYCLE_LENGTH_512 = LFRC_CAL_LENGTH_LENGTH_N512
} |
| | Number of measurement cycles used during calibration. More...
|
| enum | nrf_lfrc_power_control_t {
NRF_LFRC_POWER_CONTROL_AUTO = LFRC_PWRUPCTRL_CTRL_Auto
,
NRF_LFRC_POWER_CONTROL_POWER_UP = LFRC_PWRUPCTRL_CTRL_PowerUp
,
NRF_LFRC_POWER_CONTROL_POWER_DOWN = LFRC_PWRUPCTRL_CTRL_PowerDown
} |
| | Power up control. More...
|
|
| NRF_STATIC_INLINE uint32_t | nrf_lfrc_task_address_get (NRF_LFRC_Type const *p_reg, nrf_lfrc_task_t task) |
| | Function for retrieving the address of the specified task.
|
| NRF_STATIC_INLINE void | nrf_lfrc_task_trigger (NRF_LFRC_Type *p_reg, nrf_lfrc_task_t task) |
| | Function for setting the specified task.
|
| NRF_STATIC_INLINE uint32_t | nrf_lfrc_event_address_get (NRF_LFRC_Type const *p_reg, nrf_lfrc_event_t event) |
| | Function for retrieving the address of the specified event.
|
| NRF_STATIC_INLINE void | nrf_lfrc_event_clear (NRF_LFRC_Type *p_reg, nrf_lfrc_event_t event) |
| | Function for clearing the specified event.
|
| NRF_STATIC_INLINE bool | nrf_lfrc_event_check (NRF_LFRC_Type const *p_reg, nrf_lfrc_event_t event) |
| | Function for retrieving the state of the specified event.
|
| NRF_STATIC_INLINE void | nrf_lfrc_int_enable (NRF_LFRC_Type *p_reg, uint32_t mask) |
| | Function for enabling the specified interrupt.
|
| NRF_STATIC_INLINE void | nrf_lfrc_int_disable (NRF_LFRC_Type *p_reg, uint32_t mask) |
| | Function for disabling the specified interrupt.
|
| NRF_STATIC_INLINE uint32_t | nrf_lfrc_int_enable_check (NRF_LFRC_Type const *p_reg, uint32_t mask) |
| | Function for checking if the specified interrupts are enabled.
|
| NRF_STATIC_INLINE uint32_t | nrf_lfrc_int_pending_get (NRF_LFRC_Type const *p_reg) |
| | Function for retrieving the state of pending interrupts.
|
| NRF_STATIC_INLINE int32_t | nrf_lfrc_trim_status_get (NRF_LFRC_Type const *p_reg) |
| | Function for getting current trimming value of the LFRCOSC.
|
| NRF_STATIC_INLINE bool | nrf_lfrc_statusana_ready_check (NRF_LFRC_Type const *p_reg) |
| | Function for checking status of analog module READY signal.
|
| NRF_STATIC_INLINE bool | nrf_lfrc_statusana_settled_check (NRF_LFRC_Type const *p_reg) |
| | Function for checking status of analog module SETTLED signal.
|
| NRF_STATIC_INLINE void | nrf_lfrc_config_set (NRF_LFRC_Type *p_reg, nrf_lfrc_config_t const *p_config) |
| | Function for override the configuration.
|
| NRF_STATIC_INLINE void | nrf_lfrc_cal_cycle_length_set (NRF_LFRC_Type *p_reg, nrf_lfrc_cal_cycle_length_t length) |
| | Function for setting measurement cycle count length used while calibration.
|
| NRF_STATIC_INLINE void | nrf_lfrc_cal_trim_limit_low_set (NRF_LFRC_Type *p_reg, uint32_t trimlimit) |
| | Function for setting lower trim limit.
|
| NRF_STATIC_INLINE void | nrf_lfrc_cal_trim_limit_high_set (NRF_LFRC_Type *p_reg, uint32_t trimlimit) |
| | Function for setting higher trim limit.
|
| NRF_STATIC_INLINE uint32_t | nrf_lfrc_cal_result_get (NRF_LFRC_Type const *p_reg, uint8_t number) |
| | Function for reading calibration results.
|
| NRF_STATIC_INLINE uint16_t | nrf_lfrc_cal_num_of_cycles_get (NRF_LFRC_Type const *p_reg) |
| | Function for reading number of cycles when the CAL signal is high.
|
| NRF_STATIC_INLINE void | nrf_lfrc_mirror_lock_set (NRF_LFRC_Type *p_reg, bool enable) |
| | Function for setting the lock for mirrored registers.
|
| NRF_STATIC_INLINE bool | nrf_lfrc_mirror_lock_check (NRF_LFRC_Type const *p_reg) |
| | Function for checking if the lock for mirrored registers is enabled.
|
| NRF_STATIC_INLINE void | nrf_lfrc_power_control_set (NRF_LFRC_Type *p_reg, nrf_lfrc_power_control_t pwrctrl) |
| | Function for power control set.
|
Hardware access layer for managing the Low Frequency 32 KHz RC Oscillator (LFRC).