![]() |
nrfx 4.5.0
|
Hardware access layer with cache and barrier support for managing the RTC peripheral. More...
Data Structures | |
| struct | nrfy_rtc_config_t |
| Structure for RTC configuration. More... | |
Functions | |
| NRFY_STATIC_INLINE void | nrfy_rtc_periph_configure (NRF_RTC_Type *p_reg, nrfy_rtc_config_t const *p_config) |
| Function for configuring the RTC. | |
| NRFY_STATIC_INLINE void | nrfy_rtc_int_init (NRF_RTC_Type *p_reg, uint32_t mask, uint8_t irq_priority, bool enable) |
| Function for initializing the specified RTC interrupts. | |
| NRFY_STATIC_INLINE void | nrfy_rtc_int_uninit (NRF_RTC_Type *p_reg) |
| Function for uninitializing the RTC interrupts. | |
| NRFY_STATIC_INLINE uint32_t | nrfy_rtc_events_process (NRF_RTC_Type *p_reg, uint32_t mask) |
| Function for processing the specified RTC events. | |
| NRFY_STATIC_INLINE void | nrfy_rtc_stop (NRF_RTC_Type *p_reg, uint32_t mask) |
| Function for stopping the RTC. | |
| NRFY_STATIC_INLINE void | nrfy_rtc_event_int_clear_enable (NRF_RTC_Type *p_reg, nrf_rtc_event_t event, bool enable) |
| Function for enabling the RTC event and optionally associated interrupt. | |
| NRFY_STATIC_INLINE void | nrfy_rtc_event_int_disable (NRF_RTC_Type *p_reg, uint32_t mask) |
| Function for disabling the RTC events and corresponding interrupts. | |
| NRFY_STATIC_INLINE void | nrfy_rtc_cc_set (NRF_RTC_Type *p_reg, uint32_t ch, uint32_t cc_val) |
| NRFY_STATIC_INLINE uint32_t | nrfy_rtc_cc_get (NRF_RTC_Type const *p_reg, uint32_t ch) |
| NRFY_STATIC_INLINE void | nrfy_rtc_int_enable (NRF_RTC_Type *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE void | nrfy_rtc_int_disable (NRF_RTC_Type *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE uint32_t | nrfy_rtc_int_enable_check (NRF_RTC_Type *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE void | nrfy_rtc_subscribe_set (NRF_RTC_Type *p_reg, nrf_rtc_task_t task, uint8_t channel) |
| NRFY_STATIC_INLINE void | nrfy_rtc_subscribe_clear (NRF_RTC_Type *p_reg, nrf_rtc_task_t task) |
| NRFY_STATIC_INLINE void | nrfy_rtc_publish_set (NRF_RTC_Type *p_reg, nrf_rtc_event_t event, uint8_t channel) |
| NRFY_STATIC_INLINE void | nrfy_rtc_publish_clear (NRF_RTC_Type *p_reg, nrf_rtc_event_t event) |
| NRFY_STATIC_INLINE bool | nrfy_rtc_event_check (NRF_RTC_Type *p_reg, nrf_rtc_event_t event) |
| NRFY_STATIC_INLINE void | nrfy_rtc_event_clear (NRF_RTC_Type *p_reg, nrf_rtc_event_t event) |
| NRFY_STATIC_INLINE uint32_t | nrfy_rtc_counter_get (NRF_RTC_Type const *p_reg) |
| NRFY_STATIC_INLINE void | nrfy_rtc_prescaler_set (NRF_RTC_Type *p_reg, uint32_t val) |
| NRFY_STATIC_INLINE uint32_t | nrfy_rtc_prescaler_get (NRF_RTC_Type const *p_reg) |
| NRFY_STATIC_INLINE uint32_t | nrfy_rtc_event_address_get (NRF_RTC_Type const *p_reg, nrf_rtc_event_t event) |
| NRFY_STATIC_INLINE uint32_t | nrfy_rtc_task_address_get (NRF_RTC_Type const *p_reg, nrf_rtc_task_t task) |
| NRFY_STATIC_INLINE void | nrfy_rtc_task_trigger (NRF_RTC_Type *p_reg, nrf_rtc_task_t task) |
| NRFY_STATIC_INLINE nrf_rtc_task_t | nrfy_rtc_capture_task_get (uint8_t index) |
| NRFY_STATIC_INLINE void | nrfy_rtc_event_enable (NRF_RTC_Type *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE void | nrfy_rtc_event_disable (NRF_RTC_Type *p_reg, uint32_t mask) |
| NRFY_STATIC_INLINE nrf_rtc_event_t | nrfy_rtc_compare_event_get (uint8_t index) |
Hardware access layer with cache and barrier support for managing the RTC peripheral.
| NRFY_STATIC_INLINE nrf_rtc_task_t nrfy_rtc_capture_task_get | ( | uint8_t | index | ) |
| [in] | index | Capture channel index. |
| NRFY_STATIC_INLINE uint32_t nrfy_rtc_cc_get | ( | NRF_RTC_Type const * | p_reg, |
| uint32_t | ch ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | ch | Channel. |
| NRFY_STATIC_INLINE void nrfy_rtc_cc_set | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | ch, | ||
| uint32_t | cc_val ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | ch | Channel. |
| [in] | cc_val | Compare value to be set. |
| NRFY_STATIC_INLINE nrf_rtc_event_t nrfy_rtc_compare_event_get | ( | uint8_t | index | ) |
| [in] | index | Compare channel index. |
| NRFY_STATIC_INLINE uint32_t nrfy_rtc_counter_get | ( | NRF_RTC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE uint32_t nrfy_rtc_event_address_get | ( | NRF_RTC_Type const * | p_reg, |
| nrf_rtc_event_t | event ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Requested event. |
| NRFY_STATIC_INLINE bool nrfy_rtc_event_check | ( | NRF_RTC_Type * | p_reg, |
| nrf_rtc_event_t | event ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to be checked. |
| true | The event has been generated. |
| false | The event has not been generated. |
| NRFY_STATIC_INLINE void nrfy_rtc_event_clear | ( | NRF_RTC_Type * | p_reg, |
| nrf_rtc_event_t | event ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to be cleared. |
| NRFY_STATIC_INLINE void nrfy_rtc_event_disable | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | mask ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of event flags to be disabled. |
| NRFY_STATIC_INLINE void nrfy_rtc_event_enable | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | mask ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of event flags to be enabled. |
| NRFY_STATIC_INLINE void nrfy_rtc_event_int_clear_enable | ( | NRF_RTC_Type * | p_reg, |
| nrf_rtc_event_t | event, | ||
| bool | enable ) |
Function for enabling the RTC event and optionally associated interrupt.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to be enabled. |
| [in] | enable | True if associated interrupt is to be enabled, false otherwise. |
| NRFY_STATIC_INLINE void nrfy_rtc_event_int_disable | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | mask ) |
Function for disabling the RTC events and corresponding interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of events to be disabled. |
| NRFY_STATIC_INLINE uint32_t nrfy_rtc_events_process | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | mask ) |
Function for processing the specified RTC events.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of events to be processed, created by NRFY_EVENT_TO_INT_BITMASK(). |
| NRFY_STATIC_INLINE void nrfy_rtc_int_disable | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | mask ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be disabled. Use nrf_rtc_int_t values for bit masking. |
| NRFY_STATIC_INLINE void nrfy_rtc_int_enable | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | mask ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be enabled. Use nrf_rtc_int_t values for bit masking. |
| NRFY_STATIC_INLINE uint32_t nrfy_rtc_int_enable_check | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | mask ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be checked. Use nrf_rtc_int_t values for bit masking. |
| NRFY_STATIC_INLINE void nrfy_rtc_int_init | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | mask, | ||
| uint8_t | irq_priority, | ||
| bool | enable ) |
Function for initializing the specified RTC interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be initialized. |
| [in] | irq_priority | Interrupt priority. |
| [in] | enable | True if interrupts are to be enabled, false otherwise. |
| NRFY_STATIC_INLINE void nrfy_rtc_int_uninit | ( | NRF_RTC_Type * | p_reg | ) |
Function for uninitializing the RTC interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_rtc_periph_configure | ( | NRF_RTC_Type * | p_reg, |
| nrfy_rtc_config_t const * | p_config ) |
Function for configuring the RTC.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | p_config | Pointer to the peripheral configuration structure. |
| NRFY_STATIC_INLINE uint32_t nrfy_rtc_prescaler_get | ( | NRF_RTC_Type const * | p_reg | ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRFY_STATIC_INLINE void nrfy_rtc_prescaler_set | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | val ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | val | Value to set the prescaler to. |
| NRFY_STATIC_INLINE void nrfy_rtc_publish_clear | ( | NRF_RTC_Type * | p_reg, |
| nrf_rtc_event_t | event ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event for which to clear the configuration. |
| NRFY_STATIC_INLINE void nrfy_rtc_publish_set | ( | NRF_RTC_Type * | p_reg, |
| nrf_rtc_event_t | event, | ||
| uint8_t | channel ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event for which to set the configuration. |
| [in] | channel | Channel through which to publish the event. |
| NRFY_STATIC_INLINE void nrfy_rtc_stop | ( | NRF_RTC_Type * | p_reg, |
| uint32_t | mask ) |
Function for stopping the RTC.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of events to be disabled. |
| NRFY_STATIC_INLINE void nrfy_rtc_subscribe_clear | ( | NRF_RTC_Type * | p_reg, |
| nrf_rtc_task_t | task ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task for which to clear the configuration. |
| NRFY_STATIC_INLINE void nrfy_rtc_subscribe_set | ( | NRF_RTC_Type * | p_reg, |
| nrf_rtc_task_t | task, | ||
| uint8_t | channel ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Task for which to set the configuration. |
| [in] | channel | Channel through which to subscribe events. |
| NRFY_STATIC_INLINE uint32_t nrfy_rtc_task_address_get | ( | NRF_RTC_Type const * | p_reg, |
| nrf_rtc_task_t | task ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Requested task. |
| NRFY_STATIC_INLINE void nrfy_rtc_task_trigger | ( | NRF_RTC_Type * | p_reg, |
| nrf_rtc_task_t | task ) |
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | task | Requested task. |