TBM HALY
- group nrfy_tbm
Hardware access layer with cache and barrier support for managing the Trace Buffer Monitor (TBM).
Functions
-
NRFY_STATIC_INLINE void nrfy_tbm_configure(NRF_TBM_Type *p_reg, uint32_t size)
Function for configuring the TBM.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
size – [in] Buffer size (in 32 bit words).
-
NRFY_STATIC_INLINE void nrfy_tbm_int_init(NRF_TBM_Type *p_reg, uint32_t mask, uint8_t irq_priority, bool enable)
Function for initializing the specified TBM interrutps.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
mask – [in] Mask of interrupts to be initialized.
irq_priority – [in] Interrupt priority.
enable – [in] True if the interrupts are to be enabled, false otherwise.
-
NRFY_STATIC_INLINE void nrfy_tbm_int_uninit(NRF_TBM_Type *p_reg)
Function for uninitializing the TBM interrupts.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
-
NRFY_STATIC_INLINE uint32_t nrfy_tbm_events_process(NRF_TBM_Type *p_reg, uint32_t mask)
Function for processing the specified TBM events.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
mask – [in] Mask of events to be processed, created by NRFY_EVENT_TO_INT_BITMASK().
- Returns:
Mask of events that were generated and processed. To be checked against the result of NRFY_EVENT_TO_INT_BITMASK().
-
NRFY_STATIC_INLINE uint32_t nrfy_tbm_count_get(NRF_TBM_Type *p_reg)
See also
nrf_tbm_count_get Function for getting current count value.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
- Returns:
Current count value.
-
NRFY_STATIC_INLINE void nrfy_tbm_task_trigger(NRF_TBM_Type *p_reg, nrf_tbm_task_t task)
See also
nrf_tbm_task_trigger Function for activating the specified TBM task.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
task – [in] Task to be activated.
-
NRFY_STATIC_INLINE void nrfy_tbm_event_clear(NRF_TBM_Type *p_reg, nrf_tbm_event_t event)
See also
nrf_tbm_event_clear Function for clearing the specified TBM event.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
event – [in] Event to be cleared.
-
NRFY_STATIC_INLINE bool nrfy_tbm_event_check(NRF_TBM_Type const *p_reg, nrf_tbm_event_t event)
See also
nrf_tbm_event_check Function for retrieving the state of the TBM event.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
event – [in] Event to be checked.
- Return values:
true – The event has been generated.
false – The event has not been generated.
-
NRFY_STATIC_INLINE void nrfy_tbm_int_enable(NRF_TBM_Type *p_reg, uint32_t mask)
See also
nrf_tbm_int_enable Function for enabling the specified interrupts.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
mask – [in] Mask of interrupts to be enabled. Use nrf_tbm_int_mask_t values for bit masking.
-
NRFY_STATIC_INLINE void nrfy_tbm_int_disable(NRF_TBM_Type *p_reg, uint32_t mask)
See also
nrf_tbm_int_disable Function for disabling the specified interrupts.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
mask – [in] Mask of interrupts to be disabled. Use nrf_tbm_int_mask_t values for bit masking.
-
NRFY_STATIC_INLINE uint32_t nrfy_tbm_int_enable_check(NRF_TBM_Type const *p_reg, uint32_t mask)
See also
nrf_tbm_int_enable_check Function for checking if the specified interrupts are enabled.
- Parameters:
p_reg – [in] Pointer to the structure of registers of the peripheral.
mask – [in] Mask of interrupts to be checked. Use nrf_tbm_int_mask_t values for bit masking.
- Returns:
Mask of enabled interrupts.
-
NRFY_STATIC_INLINE void nrfy_tbm_configure(NRF_TBM_Type *p_reg, uint32_t size)