![]() |
nrfx 4.5.0
|
Hardware access layer for managing the Control Access Port (CTRL-AP) peripheral. More...
Data Structures | |
| struct | nrf_ctrlap_info_t |
| CTRLAP device information. More... | |
Enumerations | |
| enum | nrf_ctrlap_event_t { NRF_CTRLAP_EVENT_RXREADY = offsetof(NRF_CTRLAPPERI_Type, EVENTS_RXREADY) , NRF_CTRLAP_EVENT_TXDONE = offsetof(NRF_CTRLAPPERI_Type, EVENTS_TXDONE) } |
| CTRLAP events. More... | |
| enum | nrf_ctrlap_int_mask_t { NRF_CTRLAP_INT_RXREADY_MASK = CTRLAPPERI_INTENSET_RXREADY_Msk , NRF_CTRLAP_INT_TXDONE_MASK = CTRLAPPERI_INTENSET_TXDONE_Msk } |
| CTRLAP interrupts. More... | |
| enum | nrf_ctrlap_bootmode_t { NRF_CTRLAP_MODE_NORMAL = CTRLAPPERI_MAILBOX_BOOTMODE_MODE_Normal , NRF_CTRLAP_MODE_ROM_OPERATION = CTRLAPPERI_MAILBOX_BOOTMODE_MODE_ROMOperation } |
| CTRLAP secure domain boot mode. More... | |
| enum | nrf_ctrlap_reset_t { NRF_CTRLAP_RESET_NONE = CTRLAPPERI_RESET_RESET_NoReset , NRF_CTRLAP_RESET_SOFT = CTRLAPPERI_RESET_RESET_SoftReset , NRF_CTRLAP_RESET_HARD = CTRLAPPERI_RESET_RESET_HardReset , NRF_CTRLAP_RESET_PIN = CTRLAPPERI_RESET_RESET_PinReset } |
| CTRLAP reset types. More... | |
Functions | |
| NRF_STATIC_INLINE void | nrf_ctrlap_event_clear (NRF_CTRLAPPERI_Type *p_reg, nrf_ctrlap_event_t event) |
| Function for clearing the specified CTRLAP event. | |
| NRF_STATIC_INLINE bool | nrf_ctrlap_event_check (NRF_CTRLAPPERI_Type const *p_reg, nrf_ctrlap_event_t event) |
| Function for retrieving the state of the CTRLAP event. | |
| NRF_STATIC_INLINE uint32_t | nrf_ctrlap_event_address_get (NRF_CTRLAPPERI_Type const *p_reg, nrf_ctrlap_event_t event) |
| Function for getting the address of the specified CTRLAP event register. | |
| NRF_STATIC_INLINE void | nrf_ctrlap_int_enable (NRF_CTRLAPPERI_Type *p_reg, uint32_t mask) |
| Function for enabling the specified interrupts. | |
| NRF_STATIC_INLINE void | nrf_ctrlap_int_disable (NRF_CTRLAPPERI_Type *p_reg, uint32_t mask) |
| Function for disabling the specified interrupts. | |
| NRF_STATIC_INLINE uint32_t | nrf_ctrlap_int_enable_check (NRF_CTRLAPPERI_Type const *p_reg, uint32_t mask) |
| Function for checking if the specified interrupts are enabled. | |
| NRF_STATIC_INLINE uint32_t | nrf_ctrlap_int_pending_get (NRF_CTRLAPPERI_Type const *p_reg) |
| Function for retrieving the state of pending interrupts. | |
| NRF_STATIC_INLINE uint32_t | nrf_ctrlap_mailbox_rxdata_get (NRF_CTRLAPPERI_Type const *p_reg) |
| Function for reading data sent from the debugger to the CPU. | |
| NRF_STATIC_INLINE bool | nrf_ctrlap_mailbox_rxstatus_pending_check (NRF_CTRLAPPERI_Type const *p_reg) |
| Function for checking if data sent from the debugger to the CPU has been read. | |
| NRF_STATIC_INLINE uint32_t | nrf_ctrlap_mailbox_txdata_get (NRF_CTRLAPPERI_Type const *p_reg) |
| Function for reading data sent from CPU to debugger. | |
| NRF_STATIC_INLINE void | nrf_ctrlap_mailbox_txdata_set (NRF_CTRLAPPERI_Type *p_reg, uint32_t data) |
| Function for writing data sent from CPU to debugger. | |
| NRF_STATIC_INLINE bool | nrf_ctrlap_mailbox_txstatus_pending_check (NRF_CTRLAPPERI_Type const *p_reg) |
| Function for checking if data sent from the CPU to the debugger has been read. | |
| NRF_STATIC_INLINE nrf_ctrlap_bootmode_t | nrf_ctrlap_mailbox_bootmode_get (NRF_CTRLAPPERI_Type const *p_reg) |
| Function for checking boot mode. | |
| NRF_STATIC_INLINE void | nrf_ctrlap_info_set (NRF_CTRLAPPERI_Type *p_reg, nrf_ctrlap_info_t const *p_data) |
| Function for setting the CTRLAP device information. | |
| NRF_STATIC_INLINE void | nrf_ctrlap_info_get (NRF_CTRLAPPERI_Type const *p_reg, nrf_ctrlap_info_t *p_data) |
| Function for getting the CTRLAP device information. | |
| NRF_STATIC_INLINE void | nrf_ctrlap_erase_lock_set (NRF_CTRLAPPERI_Type *p_reg, bool enable) |
| Function for locking erase operation in CTRLAP until next reset. | |
| NRF_STATIC_INLINE bool | nrf_ctrlap_erase_lock_get (NRF_CTRLAPPERI_Type const *p_reg) |
| Function for reading lock of the CTRLAP erase protection. | |
| NRF_STATIC_INLINE void | nrf_ctrlap_erase_all (NRF_CTRLAPPERI_Type *p_reg, uint32_t key) |
| Function for performing a secure erase of the device. | |
| NRF_STATIC_INLINE void | nrf_ctrlap_reset_trigger (NRF_CTRLAPPERI_Type *p_reg, nrf_ctrlap_reset_t reset) |
| Function for triggering a reset of requested type. | |
Hardware access layer for managing the Control Access Port (CTRL-AP) peripheral.
| enum nrf_ctrlap_event_t |
| enum nrf_ctrlap_reset_t |
| NRF_STATIC_INLINE void nrf_ctrlap_erase_all | ( | NRF_CTRLAPPERI_Type * | p_reg, |
| uint32_t | key ) |
Function for performing a secure erase of the device.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | key | Key for performing a secure erase. |
| NRF_STATIC_INLINE bool nrf_ctrlap_erase_lock_get | ( | NRF_CTRLAPPERI_Type const * | p_reg | ) |
Function for reading lock of the CTRLAP erase protection.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_ctrlap_erase_lock_set | ( | NRF_CTRLAPPERI_Type * | p_reg, |
| bool | enable ) |
Function for locking erase operation in CTRLAP until next reset.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | enable | True if erase is to be locked, false otherwise. |
| NRF_STATIC_INLINE uint32_t nrf_ctrlap_event_address_get | ( | NRF_CTRLAPPERI_Type const * | p_reg, |
| nrf_ctrlap_event_t | event ) |
Function for getting the address of the specified CTRLAP event register.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Requested event. |
| Address | of the specified event register. |
| NRF_STATIC_INLINE bool nrf_ctrlap_event_check | ( | NRF_CTRLAPPERI_Type const * | p_reg, |
| nrf_ctrlap_event_t | event ) |
Function for retrieving the state of the CTRLAP 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. |
| NRF_STATIC_INLINE void nrf_ctrlap_event_clear | ( | NRF_CTRLAPPERI_Type * | p_reg, |
| nrf_ctrlap_event_t | event ) |
Function for clearing the specified CTRLAP event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | Event to clear. |
| NRF_STATIC_INLINE void nrf_ctrlap_info_get | ( | NRF_CTRLAPPERI_Type const * | p_reg, |
| nrf_ctrlap_info_t * | p_data ) |
Function for getting the CTRLAP device information.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [out] | p_data | Pointer to the data structure to be filled with device information. |
| NRF_STATIC_INLINE void nrf_ctrlap_info_set | ( | NRF_CTRLAPPERI_Type * | p_reg, |
| nrf_ctrlap_info_t const * | p_data ) |
Function for setting the CTRLAP device information.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | p_data | Pointer to the device information structure. |
| NRF_STATIC_INLINE void nrf_ctrlap_int_disable | ( | NRF_CTRLAPPERI_Type * | p_reg, |
| uint32_t | mask ) |
Function for disabling the specified interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be disabled. Use nrf_ctrlap_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE void nrf_ctrlap_int_enable | ( | NRF_CTRLAPPERI_Type * | p_reg, |
| uint32_t | mask ) |
Function for enabling the specified interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be enabled. Use nrf_ctrlap_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE uint32_t nrf_ctrlap_int_enable_check | ( | NRF_CTRLAPPERI_Type const * | p_reg, |
| uint32_t | mask ) |
Function for checking if the specified interrupts are enabled.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be checked. Use nrf_ctrlap_int_mask_t values for bit masking. |
| Mask | of enabled interrupts. |
| NRF_STATIC_INLINE uint32_t nrf_ctrlap_int_pending_get | ( | NRF_CTRLAPPERI_Type const * | p_reg | ) |
Function for retrieving the state of pending interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| Bitmask | with information about pending interrupts. Use nrf_ctrlap_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE nrf_ctrlap_bootmode_t nrf_ctrlap_mailbox_bootmode_get | ( | NRF_CTRLAPPERI_Type const * | p_reg | ) |
Function for checking boot mode.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE uint32_t nrf_ctrlap_mailbox_rxdata_get | ( | NRF_CTRLAPPERI_Type const * | p_reg | ) |
Function for reading data sent from the debugger to the CPU.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| Data | sent from the debugger to the CPU. |
| NRF_STATIC_INLINE bool nrf_ctrlap_mailbox_rxstatus_pending_check | ( | NRF_CTRLAPPERI_Type const * | p_reg | ) |
Function for checking if data sent from the debugger to the CPU has been read.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | Data pending in register RXDATA. |
| false | No data pending in register RXDATA. |
| NRF_STATIC_INLINE uint32_t nrf_ctrlap_mailbox_txdata_get | ( | NRF_CTRLAPPERI_Type const * | p_reg | ) |
Function for reading data sent from CPU to debugger.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| Data | sent from the CPU to the debugger. |
| NRF_STATIC_INLINE void nrf_ctrlap_mailbox_txdata_set | ( | NRF_CTRLAPPERI_Type * | p_reg, |
| uint32_t | data ) |
Function for writing data sent from CPU to debugger.
Writing to this register will automatically set field DataPending in register TXSTATUS.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | data | Data to send. |
| NRF_STATIC_INLINE bool nrf_ctrlap_mailbox_txstatus_pending_check | ( | NRF_CTRLAPPERI_Type const * | p_reg | ) |
Function for checking if data sent from the CPU to the debugger has been read.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | Data pending in register TXDATA. |
| false | No data pending in register TXDATA. |
| NRF_STATIC_INLINE void nrf_ctrlap_reset_trigger | ( | NRF_CTRLAPPERI_Type * | p_reg, |
| nrf_ctrlap_reset_t | reset ) |
Function for triggering a reset of requested type.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | reset | Requested reset type. |