nrfx 3.3
Macros | Enumerations | Functions
TAMPC HAL

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.
 

Detailed Description

Hardware access layer for managing the Tamper Controller (TAMPC) peripheral.

Macro Definition Documentation

◆ NRF_TAMPC_KEY_MASK

#define NRF_TAMPC_KEY_MASK
Value:
(TAMPC_PROTECT_DOMAIN_DBGEN_CTRL_KEY_KEY \
<< TAMPC_PROTECT_DOMAIN_DBGEN_CTRL_KEY_Pos)

Protect register write key mask.

Enumeration Type Documentation

◆ nrf_tampc_activeshield_mask_t

Active shield channel mask.

Enumerator
NRF_TAMPC_ACTIVESHIELD_CHANNEL_0_MASK 

Enable active shield channel 0.

NRF_TAMPC_ACTIVESHIELD_CHANNEL_1_MASK 

Enable active shield channel 1.

NRF_TAMPC_ACTIVESHIELD_CHANNEL_2_MASK 

Enable active shield channel 2.

NRF_TAMPC_ACTIVESHIELD_CHANNEL_3_MASK 

Enable active shield channel 3.

NRF_TAMPC_ALL_ACTIVESHIELD_CHANNELS_MASK 

All TAMPC active shield channels.

◆ nrf_tampc_debug_type_t

Control register debug types.

Enumerator
NRF_TAMPC_DEBUG_TYPE_DBGEN 

Invasive (halting) debug.

NRF_TAMPC_DEBUG_TYPE_NIDEN 

Non-invasive debug.

NRF_TAMPC_DEBUG_TYPE_SPIDEN 

Secure privileged invasive (halting) debug.

NRF_TAMPC_DEBUG_TYPE_SPNIDEN 

Secure privileged non-invasive debug.

NRF_TAMPC_DEBUG_TYPE_DEVICEEN 

Domain circuitry.

◆ nrf_tampc_detector_t

TAMPC error detectors.

Enumerator
NRF_TAMPC_DETECTOR_ACTIVE_SHIELD 

Active shield error detector.

NRF_TAMPC_DETECTOR_TAMPER_SWITCH 

External tamper switch error detector.

NRF_TAMPC_DETECTOR_PROTECTED_SIGNAL 

Protected signals error detector.

NRF_TAMPC_DETECTOR_CRACEN 

CRACEN error detector.

NRF_TAMPC_DETECTOR_GLITCH_DOMAIN_SLOW 

Slow domain glitch error detector.

NRF_TAMPC_DETECTOR_GLITCH_DOMAIN_FAST 

Fast domain glitch error detector.

◆ nrf_tampc_event_t

TAMPC events.

Enumerator
NRF_TAMPC_EVENT_TAMPER 

TAMPC detected an error.

NRF_TAMPC_EVENT_WRITE_ERROR 

Attempted to write a VALUE in PROTECT registers without clearing the WRITEPROTECT.

◆ nrf_tampc_protect_t

Signal protector registers.

Enumerator
NRF_TAMPC_PROTECT_ACTIVE_SHIELD 

Control register for active shield detector enable signal.

NRF_TAMPC_PROTECT_TAMPER_SWITCH 

Control register for external tamper switch enable signal.

NRF_TAMPC_PROTECT_CRACEN 

Control register for CRACEN tamper detector enable signal.

NRF_TAMPC_PROTECT_GLITCH_DOMAIN_SLOW 

Control register for slow domain glitch detectors enable signal.

NRF_TAMPC_PROTECT_GLITCH_DOMAIN_FAST 

Control register for fast domain glitch detectors enable signal.

NRF_TAMPC_PROTECT_RESETEN_EXT 

Control register for external tamper reset enable signal.

NRF_TAMPC_PROTECT_RESETEN_INT 

Control register for internal tamper reset enable signal.

NRF_TAMPC_PROTECT_ERASE_PROTECT 

Control register for erase protection.

◆ nrf_tampc_warmboot_mode_t

Warm boot control register mode types.

Enumerator
NRF_TAMPC_WARMBOOT_MODE_UNRET_IDLE 

Unretained idle mode.

NRF_TAMPC_WARMBOOT_MODE_SYSTEMOFF 

System off mode.

◆ nrf_tapmc_int_mask_t

TAMPC interrupts.

Enumerator
NRF_TAMPC_INT_TAMPER_MASK 

Interrupt on TAMPER event.

NRF_TAMPC_INT_WRITE_ERROR_MASK 

Interrupt on WRITEERROR event.

NRF_TAMPC_ALL_INTS_MASK 

All TAMPC interrupts.

Function Documentation

◆ nrf_tampc_activeshield_channel_disable()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of active shield detector channels to be disabled, constructed from nrf_tampc_activeshield_mask_t enumerator values.

◆ nrf_tampc_activeshield_channel_enable()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of active shield detector channels to be enabled, constructed from nrf_tampc_activeshield_mask_t enumerator values.

◆ nrf_tampc_activeshield_channel_enable_check()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of active shield detector channels to be checked, constructed from nrf_tampc_activeshield_mask_t enumerator values.
Returns
Mask of enabled active shield detector channels.

◆ nrf_tampc_ap_ctrl_lock_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be retrieved.
[in]domainDomain for which the value is to be retrieved.
Return values
trueRegister is locked.
falseRegister is unlocked.

◆ nrf_tampc_ap_ctrl_lock_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be modified.
[in]domainDomain for which the value is to be modified.
[in]enableTrue if register is to be locked, false otherwise.

◆ nrf_tampc_ap_ctrl_value_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be retrieved.
[in]domainDomain for which the value is to be retrieved.
Return values
trueSignal is logic 1.
falseSignal is logic 0.

◆ nrf_tampc_ap_ctrl_value_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be modified.
[in]domainDomain for which the value is to be modified.
[in]enableTrue if signal is to be logic 1, false if logic 0.

◆ nrf_tampc_coresight_ctrl_fault_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be retrieved.
Return values
trueFault is to be injected.
falseNo operation.

◆ nrf_tampc_coresight_ctrl_fault_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be modified.
[in]enableTrue if fault is to be injected, false otherwise.

◆ nrf_tampc_coresight_ctrl_lock_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be retrieved.
Return values
trueRegister is locked.
falseRegister is unlocked.

◆ nrf_tampc_coresight_ctrl_lock_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be modified.
[in]enableTrue if register is to be locked, false otherwise.

◆ nrf_tampc_coresight_ctrl_value_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be retrieved.
Return values
trueSignal is logic 1.
falseSignal is logic 0.

◆ nrf_tampc_coresight_ctrl_value_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be modified.
[in]enableTrue if signal is to be logic 1, false if logic 0.

◆ nrf_tampc_detector_status_check()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]detectorError detector for which the error status is to be retrieved.
Return values
trueError detected.
falseNo error detected.

◆ nrf_tampc_detector_status_clear()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]detectorError detector for which the error status is to be cleared.

◆ nrf_tampc_domain_ctrl_lock_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be retrieved.
[in]domainDomain for which the value is to be retrieved.
Return values
trueRegister is locked.
falseRegister is unlocked.

◆ nrf_tampc_domain_ctrl_lock_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be modified.
[in]domainDomain for which the value is to be modified.
[in]enableTrue if register is to be locked, false otherwise.

◆ nrf_tampc_domain_ctrl_value_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be retrieved.
[in]domainDomain for which the value is to be retrieved.
Return values
trueSignal is logic 1.
falseSignal is logic 0.

◆ nrf_tampc_domain_ctrl_value_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]typeDebug type to be modified.
[in]domainDomain for which the value is to be modified.
[in]enableTrue if signal is to be logic 1, false if logic 0.

◆ nrf_tampc_event_address_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventThe specified event.
Returns
Address of the specified event register.

◆ nrf_tampc_event_check()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be checked.
Return values
trueThe event has been generated.
falseThe event has not been generated.

◆ nrf_tampc_event_clear()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be cleared.

◆ nrf_tampc_int_disable()

NRF_STATIC_INLINE void nrf_tampc_int_disable ( NRF_TAMPC_Type *  p_reg,
uint32_t  mask 
)

Function for disabling the specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be disabled. Use nrf_tapmc_int_mask_t values for bit masking.

◆ nrf_tampc_int_enable()

NRF_STATIC_INLINE void nrf_tampc_int_enable ( NRF_TAMPC_Type *  p_reg,
uint32_t  mask 
)

Function for enabling the specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be enabled. Use nrf_tapmc_int_mask_t values for bit masking.

◆ nrf_tampc_int_enable_check()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be checked. Use nrf_tapmc_int_mask_t values for bit masking.
Returns
Mask of enabled interrupts.

◆ nrf_tampc_int_pending_get()

NRF_STATIC_INLINE uint32_t nrf_tampc_int_pending_get ( NRF_TAMPC_Type const *  p_reg)

Function for retrieving the state of pending interrupts.

Note
States of pending interrupt are saved as a bitmask. One set at particular position means that interrupt for event is pending.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Bitmask with information about pending interrupts. Use nrf_tapmc_int_mask_t values for bit masking.

◆ nrf_tampc_protector_ctrl_lock_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]ctrlSignal protector control register to be retrieved.
Return values
trueRegister is locked.
falseRegister is unlocked.

◆ nrf_tampc_protector_ctrl_lock_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]ctrlSignal protector control register to be modified.
[in]enableTrue if register is to be locked, false otherwise.

◆ nrf_tampc_protector_ctrl_value_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]ctrlSignal protector control register to be retrieved.
Return values
trueSignal is logic 1.
falseSignal is logic 0.

◆ nrf_tampc_protector_ctrl_value_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]ctrlSignal protector control register to be modified.
[in]enableTrue if signal is to be logic 1, false if logic 0.

◆ nrf_tampc_protector_status_check()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]statusSignal protector status register for which to retrieve the error status.
Return values
trueError detected.
falseNo error detected.

◆ nrf_tampc_protector_status_clear()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]statusSignal protector status register for which the error status is to be cleared.

◆ nrf_tampc_warmboot_ctrl_fault_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeWarm boot mode to be retrieved.
Return values
trueFault is to be injected.
falseNo operation.

◆ nrf_tampc_warmboot_ctrl_fault_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeWarm boot mode to be modified.
[in]enableTrue if fault is to be injected, false otherwise.

◆ nrf_tampc_warmboot_ctrl_lock_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeWarm boot mode to be retrieved.
Return values
trueRegister is locked.
falseRegister is unlocked.

◆ nrf_tampc_warmboot_ctrl_lock_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeWarm boot mode to be modified.
[in]enableTrue if register is to be locked, false otherwise.

◆ nrf_tampc_warmboot_ctrl_value_get()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeWarm boot mode to be retrieved.
Return values
trueSignal is logic 1.
falseSignal is logic 0.

◆ nrf_tampc_warmboot_ctrl_value_set()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeWarm boot mode to be modified.
[in]enableTrue if signal is to be logic 1, false if logic 0.

◆ nrf_tampc_warmboot_status_check()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeWarm boot mode for which to retrieve the error status.
Return values
trueError detected.
falseNo error detected.

◆ nrf_tampc_warmboot_status_clear()

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.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeWarm boot mode for which the error status is to be cleared.

Documentation feedback | Developer Zone | Subscribe | Updated