Hardware access layer with cache and barrier support for managing the Trace Buffer Monitor (TBM).
More...
|
NRFY_STATIC_INLINE void | nrfy_tbm_configure (NRF_TBM_Type *p_reg, uint32_t size) |
| Function for configuring the TBM.
|
|
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.
|
|
NRFY_STATIC_INLINE void | nrfy_tbm_int_uninit (NRF_TBM_Type *p_reg) |
| Function for uninitializing the TBM interrupts.
|
|
NRFY_STATIC_INLINE uint32_t | nrfy_tbm_events_process (NRF_TBM_Type *p_reg, uint32_t mask) |
| Function for processing the specified TBM events.
|
|
NRFY_STATIC_INLINE uint32_t | nrfy_tbm_count_get (NRF_TBM_Type *p_reg) |
|
NRFY_STATIC_INLINE void | nrfy_tbm_task_trigger (NRF_TBM_Type *p_reg, nrf_tbm_task_t task) |
|
NRFY_STATIC_INLINE void | nrfy_tbm_event_clear (NRF_TBM_Type *p_reg, nrf_tbm_event_t event) |
|
NRFY_STATIC_INLINE bool | nrfy_tbm_event_check (NRF_TBM_Type const *p_reg, nrf_tbm_event_t event) |
|
NRFY_STATIC_INLINE void | nrfy_tbm_int_enable (NRF_TBM_Type *p_reg, uint32_t mask) |
|
NRFY_STATIC_INLINE void | nrfy_tbm_int_disable (NRF_TBM_Type *p_reg, uint32_t mask) |
|
NRFY_STATIC_INLINE uint32_t | nrfy_tbm_int_enable_check (NRF_TBM_Type const *p_reg, uint32_t mask) |
|
Hardware access layer with cache and barrier support for managing the Trace Buffer Monitor (TBM).
◆ nrfy_tbm_configure()
NRFY_STATIC_INLINE void nrfy_tbm_configure |
( |
NRF_TBM_Type * |
p_reg, |
|
|
uint32_t |
size |
|
) |
| |
Function for configuring the TBM.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | size | Buffer size (in 32 bit words). |
◆ nrfy_tbm_count_get()
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
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
- Returns
- Current count value.
◆ nrfy_tbm_event_check()
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
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
- Return values
-
true | The event has been generated. |
false | The event has not been generated. |
◆ nrfy_tbm_event_clear()
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
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
◆ nrfy_tbm_events_process()
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
-
[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(). |
- Returns
- Mask of events that were generated and processed. To be checked against the result of NRFY_EVENT_TO_INT_BITMASK().
◆ nrfy_tbm_int_disable()
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
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_tbm_int_mask_t values for bit masking. |
◆ nrfy_tbm_int_enable()
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
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_tbm_int_mask_t values for bit masking. |
◆ nrfy_tbm_int_enable_check()
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
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be checked. Use nrf_tbm_int_mask_t values for bit masking. |
- Returns
- Mask of enabled interrupts.
◆ nrfy_tbm_int_init()
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
-
[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 the interrupts are to be enabled, false otherwise. |
◆ nrfy_tbm_int_uninit()
NRFY_STATIC_INLINE void nrfy_tbm_int_uninit |
( |
NRF_TBM_Type * |
p_reg | ) |
|
Function for uninitializing the TBM interrupts.
- Parameters
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
◆ nrfy_tbm_task_trigger()
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
-
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task to be activated. |