Hardware access layer for managing the Tamper Controller (TAMPC) peripheral. More...
Macros | |
#define | NRF_TAMPC_KEY_MASK |
Protect register write key mask. | |
#define | NRF_TAMPC_HAS_EVENT_WRITE_ERROR 1 |
Symbol indicating whether TAMPC write error event is present. | |
#define | NRF_TAMPC_HAS_ACTIVE_SHIELD_CHANNELS 1 |
Symbol indicating whether TAMPC active shield channels are present. | |
#define | NRF_TAMPC_HAS_EXTENDED_PROTECTORS 1 |
Symbol indicating whether TAMPC extended protection is present. | |
#define | NRF_TAMPC_HAS_ERASE_PROTECTOR 1 |
Symbol indicating whether TAMPC erase protector is present. | |
#define | NRF_TAMPC_HAS_DETECTORS_ENABLE 1 |
Symbol indicating whether the availability to enable the TAMPC detectors feature is present. | |
#define | NRF_TAMPC_HAS_CORESIGHT 1 |
Symbol indicating whether the configuration of Coresight debugger signals protection is present. | |
#define | NRF_TAMPC_HAS_WARMBOOT 1 |
Symbol indicating whether the configuration of warm boot protection is present. | |
Enumerations | |
enum | nrf_tampc_event_t { NRF_TAMPC_EVENT_TAMPER = offsetof(NRF_TAMPC_Type, EVENTS_TAMPER) , NRF_TAMPC_EVENT_WRITE_ERROR = offsetof(NRF_TAMPC_Type, EVENTS_WRITEERROR) } |
TAMPC events. More... | |
enum | nrf_tapmc_int_mask_t { NRF_TAMPC_INT_TAMPER_MASK = TAMPC_INTENSET_TAMPER_Msk , NRF_TAMPC_INT_WRITE_ERROR_MASK = TAMPC_INTENSET_WRITEERROR_Msk , NRF_TAMPC_ALL_INTS_MASK } |
TAMPC interrupts. More... | |
enum | nrf_tampc_activeshield_mask_t { NRF_TAMPC_ACTIVESHIELD_CHANNEL_0_MASK = TAMPC_ACTIVESHIELD_CHEN_CH0_Msk , NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK = TAMPC_ACTIVESHIELD_CHEN_CH1_Msk , NRF_TAMPC_ACTIVESHIELD_CHANNEL_2_MASK = TAMPC_ACTIVESHIELD_CHEN_CH2_Msk , NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK = TAMPC_ACTIVESHIELD_CHEN_CH3_Msk , NRF_TAMPC_ALL_ACTIVESHIELD_CHANNELS_MASK } |
Active shield channel mask. More... | |
enum | nrf_tampc_detector_t { NRF_TAMPC_DETECTOR_ACTIVE_SHIELD = TAMPC_STATUS_ACTIVESHIELD_Msk , NRF_TAMPC_DETECTOR_TAMPER_SWITCH = TAMPC_STATUS_TAMPERSWITCH_Msk , NRF_TAMPC_DETECTOR_PROTECTED_SIGNAL = TAMPC_STATUS_PROTECT_Msk , NRF_TAMPC_DETECTOR_CRACEN = TAMPC_STATUS_CRACENTAMP_Msk , NRF_TAMPC_DETECTOR_GLITCH_DOMAIN_SLOW = TAMPC_STATUS_GLITCHSLOWDOMAIN0_Msk , NRF_TAMPC_DETECTOR_GLITCH_DOMAIN_FAST } |
TAMPC error detectors. More... | |
enum | nrf_tampc_protect_t { NRF_TAMPC_PROTECT_ACTIVE_SHIELD = offsetof(NRF_TAMPC_Type, PROTECT.ACTIVESHIELD) , NRF_TAMPC_PROTECT_TAMPER_SWITCH = offsetof(NRF_TAMPC_Type, PROTECT.TAMPERSWITCH) , NRF_TAMPC_PROTECT_CRACEN = offsetof(NRF_TAMPC_Type, PROTECT.CRACENTAMP) , NRF_TAMPC_PROTECT_GLITCH_DOMAIN_SLOW = offsetof(NRF_TAMPC_Type, PROTECT.GLITCHSLOWDOMAIN) , NRF_TAMPC_PROTECT_GLITCH_DOMAIN_FAST = offsetof(NRF_TAMPC_Type, PROTECT.GLITCHFASTDOMAIN) , NRF_TAMPC_PROTECT_RESETEN_EXT = offsetof(NRF_TAMPC_Type, PROTECT.EXTRESETEN) , NRF_TAMPC_PROTECT_RESETEN_INT = offsetof(NRF_TAMPC_Type, PROTECT.INTRESETEN) , NRF_TAMPC_PROTECT_ERASE_PROTECT = offsetof(NRF_TAMPC_Type, PROTECT.ERASEPROTECT) } |
Signal protector registers. More... | |
enum | nrf_tampc_debug_type_t { NRF_TAMPC_DEBUG_TYPE_DBGEN , NRF_TAMPC_DEBUG_TYPE_NIDEN , NRF_TAMPC_DEBUG_TYPE_SPIDEN , NRF_TAMPC_DEBUG_TYPE_SPNIDEN , NRF_TAMPC_DEBUG_TYPE_DEVICEEN } |
Control register debug types. More... | |
enum | nrf_tampc_warmboot_mode_t { NRF_TAMPC_WARMBOOT_MODE_UNRET_IDLE , NRF_TAMPC_WARMBOOT_MODE_SYSTEMOFF } |
Warm boot control register mode types. More... | |
Functions | |
NRF_STATIC_INLINE void | nrf_tampc_event_clear (NRF_TAMPC_Type *p_reg, nrf_tampc_event_t event) |
Function for clearing the specified TAMPC event. | |
NRF_STATIC_INLINE bool | nrf_tampc_event_check (NRF_TAMPC_Type const *p_reg, nrf_tampc_event_t event) |
Function for retrieving the state of the TAMPC event. | |
NRF_STATIC_INLINE uint32_t | nrf_tampc_event_address_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_event_t event) |
Function for getting the address of the specified TAMPC event register. | |
NRF_STATIC_INLINE void | nrf_tampc_int_enable (NRF_TAMPC_Type *p_reg, uint32_t mask) |
Function for enabling the specified interrupts. | |
NRF_STATIC_INLINE void | nrf_tampc_int_disable (NRF_TAMPC_Type *p_reg, uint32_t mask) |
Function for disabling the specified interrupts. | |
NRF_STATIC_INLINE uint32_t | nrf_tampc_int_enable_check (NRF_TAMPC_Type const *p_reg, uint32_t mask) |
Function for checking if the specified interrupts are enabled. | |
NRF_STATIC_INLINE uint32_t | nrf_tampc_int_pending_get (NRF_TAMPC_Type const *p_reg) |
Function for retrieving the state of pending interrupts. | |
NRF_STATIC_INLINE bool | nrf_tampc_detector_status_check (NRF_TAMPC_Type const *p_reg, nrf_tampc_detector_t detector) |
Function for getting the error detection status for given error detector. | |
NRF_STATIC_INLINE void | nrf_tampc_detector_status_clear (NRF_TAMPC_Type *p_reg, nrf_tampc_detector_t detector) |
Function for clearing the error detection status for given error detector. | |
NRF_STATIC_INLINE void | nrf_tampc_activeshield_channel_enable (NRF_TAMPC_Type *p_reg, uint32_t mask) |
Function for enabling the specified active shield detector channels. | |
NRF_STATIC_INLINE void | nrf_tampc_activeshield_channel_disable (NRF_TAMPC_Type *p_reg, uint32_t mask) |
Function for disabling the specified active shield detector channels. | |
NRF_STATIC_INLINE uint32_t | nrf_tampc_activeshield_channel_enable_check (NRF_TAMPC_Type const *p_reg, uint32_t mask) |
Function for checking if the specified active shield detector channels are enabled. | |
NRF_STATIC_INLINE void | nrf_tampc_domain_ctrl_value_set (NRF_TAMPC_Type *p_reg, nrf_tampc_debug_type_t type, nrf_domain_t domain, bool enable) |
Function for setting signal value of the domain control register for given debug type and domain. | |
NRF_STATIC_INLINE bool | nrf_tampc_domain_ctrl_value_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_debug_type_t type, nrf_domain_t domain) |
Function for getting the signal value of the domain control register for given debug type and domain. | |
NRF_STATIC_INLINE void | nrf_tampc_domain_ctrl_lock_set (NRF_TAMPC_Type *p_reg, nrf_tampc_debug_type_t type, nrf_domain_t domain, bool enable) |
Function for setting lock value of the domain control register for given debug type and domain. | |
NRF_STATIC_INLINE bool | nrf_tampc_domain_ctrl_lock_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_debug_type_t type, nrf_domain_t domain) |
Function for getting the lock value of the domain control register for given debug type and domain. | |
NRF_STATIC_INLINE void | nrf_tampc_ap_ctrl_value_set (NRF_TAMPC_Type *p_reg, nrf_tampc_debug_type_t type, nrf_domain_t domain, bool enable) |
Function for setting signal value of the access port control register for given debug type and domain. | |
NRF_STATIC_INLINE bool | nrf_tampc_ap_ctrl_value_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_debug_type_t type, nrf_domain_t domain) |
Function for getting the signal value of the access port control register for given debug type and domain. | |
NRF_STATIC_INLINE void | nrf_tampc_ap_ctrl_lock_set (NRF_TAMPC_Type *p_reg, nrf_tampc_debug_type_t type, nrf_domain_t domain, bool enable) |
Function for setting lock value of the access port control register for given debug type and domain. | |
NRF_STATIC_INLINE bool | nrf_tampc_ap_ctrl_lock_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_debug_type_t type, nrf_domain_t domain) |
Function for getting the lock value of the access port control register for given debug type and domain. | |
NRF_STATIC_INLINE void | nrf_tampc_coresight_ctrl_value_set (NRF_TAMPC_Type *p_reg, nrf_tampc_debug_type_t type, bool enable) |
Function for setting signal value of the Coresight register for given debug type. | |
NRF_STATIC_INLINE bool | nrf_tampc_coresight_ctrl_value_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_debug_type_t type) |
Function for getting the signal value of the Coresight register for given debug type. | |
NRF_STATIC_INLINE void | nrf_tampc_coresight_ctrl_lock_set (NRF_TAMPC_Type *p_reg, nrf_tampc_debug_type_t type, bool enable) |
Function for setting lock value of the Coresight register for given debug type. | |
NRF_STATIC_INLINE bool | nrf_tampc_coresight_ctrl_lock_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_debug_type_t type) |
Function for getting the lock value of the Coresight register for given debug type. | |
NRF_STATIC_INLINE void | nrf_tampc_coresight_ctrl_fault_set (NRF_TAMPC_Type *p_reg, nrf_tampc_debug_type_t type, bool enable) |
Function for setting fault injection of the Coresight register for given debug type. | |
NRF_STATIC_INLINE bool | nrf_tampc_coresight_ctrl_fault_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_debug_type_t type) |
Function for getting the fault injection of the Coresight register for given debug type. | |
NRF_STATIC_INLINE void | nrf_tampc_warmboot_ctrl_value_set (NRF_TAMPC_Type *p_reg, nrf_tampc_warmboot_mode_t mode, bool enable) |
Function for setting signal value of the warm boot register for given warm boot mode. | |
NRF_STATIC_INLINE bool | nrf_tampc_warmboot_ctrl_value_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_warmboot_mode_t mode) |
Function for getting the signal value of the warm boot register for given warm boot mode. | |
NRF_STATIC_INLINE void | nrf_tampc_warmboot_ctrl_lock_set (NRF_TAMPC_Type *p_reg, nrf_tampc_warmboot_mode_t mode, bool enable) |
Function for setting lock value of the warm boot register for given warm boot mode. | |
NRF_STATIC_INLINE bool | nrf_tampc_warmboot_ctrl_lock_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_warmboot_mode_t mode) |
Function for getting the lock value of the warm boot register for given warm boot mode. | |
NRF_STATIC_INLINE void | nrf_tampc_warmboot_ctrl_fault_set (NRF_TAMPC_Type *p_reg, nrf_tampc_warmboot_mode_t mode, bool enable) |
Function for setting fault injection of the warm boot register for given warm boot mode. | |
NRF_STATIC_INLINE bool | nrf_tampc_warmboot_ctrl_fault_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_warmboot_mode_t mode) |
Function for getting the fault injection of the warm boot register for given warm boot mode. | |
NRF_STATIC_INLINE bool | nrf_tampc_warmboot_status_check (NRF_TAMPC_Type const *p_reg, nrf_tampc_warmboot_mode_t mode) |
Function for checking the error detection status for given warm boot mode. | |
NRF_STATIC_INLINE void | nrf_tampc_warmboot_status_clear (NRF_TAMPC_Type *p_reg, nrf_tampc_warmboot_mode_t mode) |
Function for clearing the error detection status for given warm boot mode. | |
NRF_STATIC_INLINE void | nrf_tampc_protector_ctrl_value_set (NRF_TAMPC_Type *p_reg, nrf_tampc_protect_t ctrl, bool enable) |
Function for setting signal value of the given signal protector register. | |
NRF_STATIC_INLINE bool | nrf_tampc_protector_ctrl_value_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_protect_t ctrl) |
Function for getting the signal value of the given signal protector register. | |
NRF_STATIC_INLINE void | nrf_tampc_protector_ctrl_lock_set (NRF_TAMPC_Type *p_reg, nrf_tampc_protect_t ctrl, bool enable) |
Function for setting lock value of the given signal protector register. | |
NRF_STATIC_INLINE bool | nrf_tampc_protector_ctrl_lock_get (NRF_TAMPC_Type const *p_reg, nrf_tampc_protect_t ctrl) |
Function for getting the lock value of the given signal protector register. | |
NRF_STATIC_INLINE bool | nrf_tampc_protector_status_check (NRF_TAMPC_Type const *p_reg, nrf_tampc_protect_t status) |
Function for checking the error detection status for given signal protector status register. | |
NRF_STATIC_INLINE void | nrf_tampc_protector_status_clear (NRF_TAMPC_Type *p_reg, nrf_tampc_protect_t status) |
Function for clearing the error detection status for given signal protector status register. | |
Hardware access layer for managing the Tamper Controller (TAMPC) peripheral.
#define NRF_TAMPC_KEY_MASK |
Protect register write key mask.
Active shield channel mask.
Control register debug types.
enum nrf_tampc_detector_t |
TAMPC error detectors.
enum nrf_tampc_event_t |
enum nrf_tampc_protect_t |
Signal protector registers.
enum nrf_tapmc_int_mask_t |
NRF_STATIC_INLINE void nrf_tampc_activeshield_channel_disable | ( | NRF_TAMPC_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for disabling the specified active shield detector channels.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of active shield detector channels to be disabled, constructed from nrf_tampc_activeshield_mask_t enumerator values. |
NRF_STATIC_INLINE void nrf_tampc_activeshield_channel_enable | ( | NRF_TAMPC_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for enabling the specified active shield detector channels.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of active shield detector channels to be enabled, constructed from nrf_tampc_activeshield_mask_t enumerator values. |
NRF_STATIC_INLINE uint32_t nrf_tampc_activeshield_channel_enable_check | ( | NRF_TAMPC_Type const * | p_reg, |
uint32_t | mask | ||
) |
Function for checking if the specified active shield detector channels are enabled.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of active shield detector channels to be checked, constructed from nrf_tampc_activeshield_mask_t enumerator values. |
NRF_STATIC_INLINE bool nrf_tampc_ap_ctrl_lock_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
nrf_domain_t | domain | ||
) |
Function for getting the lock value of the access port control register for given debug type and domain.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be retrieved. |
[in] | domain | Domain for which the value is to be retrieved. |
true | Register is locked. |
false | Register is unlocked. |
NRF_STATIC_INLINE void nrf_tampc_ap_ctrl_lock_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
nrf_domain_t | domain, | ||
bool | enable | ||
) |
Function for setting lock value of the access port control register for given debug type and domain.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be modified. |
[in] | domain | Domain for which the value is to be modified. |
[in] | enable | True if register is to be locked, false otherwise. |
NRF_STATIC_INLINE bool nrf_tampc_ap_ctrl_value_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
nrf_domain_t | domain | ||
) |
Function for getting the signal value of the access port control register for given debug type and domain.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be retrieved. |
[in] | domain | Domain for which the value is to be retrieved. |
true | Signal is logic 1. |
false | Signal is logic 0. |
NRF_STATIC_INLINE void nrf_tampc_ap_ctrl_value_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
nrf_domain_t | domain, | ||
bool | enable | ||
) |
Function for setting signal value of the access port control register for given debug type and domain.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be modified. |
[in] | domain | Domain for which the value is to be modified. |
[in] | enable | True if signal is to be logic 1, false if logic 0. |
NRF_STATIC_INLINE bool nrf_tampc_coresight_ctrl_fault_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_debug_type_t | type | ||
) |
Function for getting the fault injection of the Coresight register for given debug type.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be retrieved. |
true | Fault is to be injected. |
false | No operation. |
NRF_STATIC_INLINE void nrf_tampc_coresight_ctrl_fault_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
bool | enable | ||
) |
Function for setting fault injection of the Coresight register for given debug type.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be modified. |
[in] | enable | True if fault is to be injected, false otherwise. |
NRF_STATIC_INLINE bool nrf_tampc_coresight_ctrl_lock_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_debug_type_t | type | ||
) |
Function for getting the lock value of the Coresight register for given debug type.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be retrieved. |
true | Register is locked. |
false | Register is unlocked. |
NRF_STATIC_INLINE void nrf_tampc_coresight_ctrl_lock_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
bool | enable | ||
) |
Function for setting lock value of the Coresight register for given debug type.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be modified. |
[in] | enable | True if register is to be locked, false otherwise. |
NRF_STATIC_INLINE bool nrf_tampc_coresight_ctrl_value_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_debug_type_t | type | ||
) |
Function for getting the signal value of the Coresight register for given debug type.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be retrieved. |
true | Signal is logic 1. |
false | Signal is logic 0. |
NRF_STATIC_INLINE void nrf_tampc_coresight_ctrl_value_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
bool | enable | ||
) |
Function for setting signal value of the Coresight register for given debug type.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be modified. |
[in] | enable | True if signal is to be logic 1, false if logic 0. |
NRF_STATIC_INLINE bool nrf_tampc_detector_status_check | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_detector_t | detector | ||
) |
Function for getting the error detection status for given error detector.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | detector | Error detector for which the error status is to be retrieved. |
true | Error detected. |
false | No error detected. |
NRF_STATIC_INLINE void nrf_tampc_detector_status_clear | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_detector_t | detector | ||
) |
Function for clearing the error detection status for given error detector.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | detector | Error detector for which the error status is to be cleared. |
NRF_STATIC_INLINE bool nrf_tampc_domain_ctrl_lock_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
nrf_domain_t | domain | ||
) |
Function for getting the lock value of the domain control register for given debug type and domain.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be retrieved. |
[in] | domain | Domain for which the value is to be retrieved. |
true | Register is locked. |
false | Register is unlocked. |
NRF_STATIC_INLINE void nrf_tampc_domain_ctrl_lock_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
nrf_domain_t | domain, | ||
bool | enable | ||
) |
Function for setting lock value of the domain control register for given debug type and domain.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be modified. |
[in] | domain | Domain for which the value is to be modified. |
[in] | enable | True if register is to be locked, false otherwise. |
NRF_STATIC_INLINE bool nrf_tampc_domain_ctrl_value_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
nrf_domain_t | domain | ||
) |
Function for getting the signal value of the domain control register for given debug type and domain.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be retrieved. |
[in] | domain | Domain for which the value is to be retrieved. |
true | Signal is logic 1. |
false | Signal is logic 0. |
NRF_STATIC_INLINE void nrf_tampc_domain_ctrl_value_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_debug_type_t | type, | ||
nrf_domain_t | domain, | ||
bool | enable | ||
) |
Function for setting signal value of the domain control register for given debug type and domain.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | type | Debug type to be modified. |
[in] | domain | Domain for which the value is to be modified. |
[in] | enable | True if signal is to be logic 1, false if logic 0. |
NRF_STATIC_INLINE uint32_t nrf_tampc_event_address_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_event_t | event | ||
) |
Function for getting the address of the specified TAMPC event register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | The specified event. |
NRF_STATIC_INLINE bool nrf_tampc_event_check | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_event_t | event | ||
) |
Function for retrieving the state of the TAMPC 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_tampc_event_clear | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_event_t | event | ||
) |
Function for clearing the specified TAMPC event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be cleared. |
NRF_STATIC_INLINE void nrf_tampc_int_disable | ( | NRF_TAMPC_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_tapmc_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_tampc_int_enable | ( | NRF_TAMPC_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_tapmc_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_tampc_int_enable_check | ( | NRF_TAMPC_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_tapmc_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_tampc_int_pending_get | ( | NRF_TAMPC_Type const * | p_reg | ) |
Function for retrieving the state of pending interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE bool nrf_tampc_protector_ctrl_lock_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_protect_t | ctrl | ||
) |
Function for getting the lock value of the given signal protector register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | ctrl | Signal protector control register to be retrieved. |
true | Register is locked. |
false | Register is unlocked. |
NRF_STATIC_INLINE void nrf_tampc_protector_ctrl_lock_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_protect_t | ctrl, | ||
bool | enable | ||
) |
Function for setting lock value of the given signal protector register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | ctrl | Signal protector control register to be modified. |
[in] | enable | True if register is to be locked, false otherwise. |
NRF_STATIC_INLINE bool nrf_tampc_protector_ctrl_value_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_protect_t | ctrl | ||
) |
Function for getting the signal value of the given signal protector register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | ctrl | Signal protector control register to be retrieved. |
true | Signal is logic 1. |
false | Signal is logic 0. |
NRF_STATIC_INLINE void nrf_tampc_protector_ctrl_value_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_protect_t | ctrl, | ||
bool | enable | ||
) |
Function for setting signal value of the given signal protector register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | ctrl | Signal protector control register to be modified. |
[in] | enable | True if signal is to be logic 1, false if logic 0. |
NRF_STATIC_INLINE bool nrf_tampc_protector_status_check | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_protect_t | status | ||
) |
Function for checking the error detection status for given signal protector status register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | status | Signal protector status register for which to retrieve the error status. |
true | Error detected. |
false | No error detected. |
NRF_STATIC_INLINE void nrf_tampc_protector_status_clear | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_protect_t | status | ||
) |
Function for clearing the error detection status for given signal protector status register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | status | Signal protector status register for which the error status is to be cleared. |
NRF_STATIC_INLINE bool nrf_tampc_warmboot_ctrl_fault_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_warmboot_mode_t | mode | ||
) |
Function for getting the fault injection of the warm boot register for given warm boot mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Warm boot mode to be retrieved. |
true | Fault is to be injected. |
false | No operation. |
NRF_STATIC_INLINE void nrf_tampc_warmboot_ctrl_fault_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_warmboot_mode_t | mode, | ||
bool | enable | ||
) |
Function for setting fault injection of the warm boot register for given warm boot mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Warm boot mode to be modified. |
[in] | enable | True if fault is to be injected, false otherwise. |
NRF_STATIC_INLINE bool nrf_tampc_warmboot_ctrl_lock_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_warmboot_mode_t | mode | ||
) |
Function for getting the lock value of the warm boot register for given warm boot mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Warm boot mode to be retrieved. |
true | Register is locked. |
false | Register is unlocked. |
NRF_STATIC_INLINE void nrf_tampc_warmboot_ctrl_lock_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_warmboot_mode_t | mode, | ||
bool | enable | ||
) |
Function for setting lock value of the warm boot register for given warm boot mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Warm boot mode to be modified. |
[in] | enable | True if register is to be locked, false otherwise. |
NRF_STATIC_INLINE bool nrf_tampc_warmboot_ctrl_value_get | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_warmboot_mode_t | mode | ||
) |
Function for getting the signal value of the warm boot register for given warm boot mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Warm boot mode to be retrieved. |
true | Signal is logic 1. |
false | Signal is logic 0. |
NRF_STATIC_INLINE void nrf_tampc_warmboot_ctrl_value_set | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_warmboot_mode_t | mode, | ||
bool | enable | ||
) |
Function for setting signal value of the warm boot register for given warm boot mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Warm boot mode to be modified. |
[in] | enable | True if signal is to be logic 1, false if logic 0. |
NRF_STATIC_INLINE bool nrf_tampc_warmboot_status_check | ( | NRF_TAMPC_Type const * | p_reg, |
nrf_tampc_warmboot_mode_t | mode | ||
) |
Function for checking the error detection status for given warm boot mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Warm boot mode for which to retrieve the error status. |
true | Error detected. |
false | No error detected. |
NRF_STATIC_INLINE void nrf_tampc_warmboot_status_clear | ( | NRF_TAMPC_Type * | p_reg, |
nrf_tampc_warmboot_mode_t | mode | ||
) |
Function for clearing the error detection status for given warm boot mode.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mode | Warm boot mode for which the error status is to be cleared. |