nrfx 3.3
Enumerations | Functions
STM HAL

Hardware access layer for managing the System Trace Macrocell (STM) peripheral. More...

Enumerations

enum  nrf_stm_feature_t {
  NRF_STM_FEATURE_HETER ,
  NRF_STM_FEATURE_HEERR ,
  NRF_STM_FEATURE_HEMASTR ,
  NRF_STM_FEATURE_STM ,
  NRF_STM_FEATURE_TSEN ,
  NRF_STM_FEATURE_SYNCEN ,
  NRF_STM_FEATURE_COMPEN ,
  NRF_STM_FEATURE_BUSY ,
  NRF_STM_FEATURE_FIFOAF ,
  NRF_STM_FEATURE_ASYNCPE ,
  NRF_STM_FEATURE_PRIORINVDIS ,
  NRF_STM_FEATURE_CLKON ,
  NRF_STM_FEATURE_AFREADYHIGH ,
  NRF_STM_FEATURE_TSFREQ ,
  NRF_STM_FEATURE_FORCETS ,
  NRF_STM_FEATURE_TSPRESCALE ,
  NRF_STM_FEATURE_HWTEN ,
  NRF_STM_FEATURE_SWOEN ,
  NRF_STM_FEATURE_SPTER ,
  NRF_STM_FEATURE_SPER ,
  NRF_STM_FEATURE_SPOVERRIDE ,
  NRF_STM_FEATURE_PRIVMASK ,
  NRF_STM_FEATURE_INTEGRATION ,
  NRF_STM_FEATURE_LC_PRESENT ,
  NRF_STM_FEATURE_LC_LOCKED ,
  NRF_STM_FEATURE_NSID ,
  NRF_STM_FEATURE_NSNID ,
  NRF_STM_FEATURE_SID ,
  NRF_STM_FEATURE_SNID
}
 STM features. More...
 
enum  nrf_stm_output_t {
  NRF_STM_OUTPUT_TRIGOUTSPTE ,
  NRF_STM_OUTPUT_TRIGOUTSW ,
  NRF_STM_OUTPUT_TRIGOUTHETE ,
  NRF_STM_OUTPUT_ASYNCOUT ,
  NRF_STM_OUTPUT_ATDATAM_0 ,
  NRF_STM_OUTPUT_ATDATAM_7 ,
  NRF_STM_OUTPUT_ATDATAM_15 ,
  NRF_STM_OUTPUT_ATDATAM_23 ,
  NRF_STM_OUTPUT_ATDATAM_31 ,
  NRF_STM_OUTPUT_ATIDM_0 ,
  NRF_STM_OUTPUT_ATIDM_1 ,
  NRF_STM_OUTPUT_ATIDM_2 ,
  NRF_STM_OUTPUT_ATIDM_3 ,
  NRF_STM_OUTPUT_ATIDM_4 ,
  NRF_STM_OUTPUT_ATIDM_5 ,
  NRF_STM_OUTPUT_ATIDM_6 ,
  NRF_STM_OUTPUT_ATVALIDM ,
  NRF_STM_OUTPUT_AFREADYM ,
  NRF_STM_OUTPUT_ATBYTESM_0 ,
  NRF_STM_OUTPUT_ATBYTESM_1
}
 STM outputs. More...
 
enum  nrf_stm_input_t {
  NRF_STM_INPUT_ATREADYM ,
  NRF_STM_INPUT_AFVALIDM
}
 STM inputs. More...
 
enum  nrf_stm_dma_sens_t {
  NRF_STM_DMACTLR_LT25 = STM_DMACTLR_SENS_LT25 ,
  NRF_STM_DMACTLR_LT50 = STM_DMACTLR_SENS_LT50 ,
  NRF_STM_DMACTLR_LT75 = STM_DMACTLR_SENS_LT75 ,
  NRF_STM_DMACTLR_LT100 = STM_DMACTLR_SENS_LT100
}
 Sensitivity of the DMA request to the current buffer level. More...
 
enum  nrf_stm_heidr_class_t { NRF_STM_HEIDR_CLASS_HARDWARE_EVENT_CONTROL = STM_HEIDR_CLASS_HardwareEventControl }
 Programmer's models. More...
 
enum  nrf_stm_spfeat1r_prot_t { NRF_STM_SFPEAT1R_PROT_STPV2 = STM_SPFEAT1R_PROT_STPV2 }
 STM protocols. More...
 
enum  nrf_stm_spfeat1r_ts_t { NRF_STM_SPFEAT1R_TS_ABSOLUTE = STM_SPFEAT1R_TS_Absolute }
 Timestamp support modes. More...
 
enum  nrf_stm_spfeat1r_syncen_t { NRF_STM_SPFEAT1R_SYNCEN_READ_AS_ONE = STM_SPFEAT1R_SYNCEN_ReadAsOne }
 STMTCSR.SYNCEN support modes. More...
 
enum  nrf_stm_spfeat2r_spcomp_t { NRF_STM_SPFEAT2R_SPCOMP_PROGRAMMABLE = STM_SPFEAT2R_SPCOMP_Programmable }
 Data compression on stimulus port support modes. More...
 
enum  nrf_stm_spfeat2r_sptrtype_t { NRF_STM_SPFEAT2R_SPTRTYPE_INVARIANT_AND_GUARANTEED = STM_SPFEAT2R_SPTRTYPE_InvariantAndGuaranteed }
 Stimulus port transaction type support modes. More...
 
enum  nrf_stm_spfeat2r_dsize_t { NRF_STM_SPFEAT2R_DSIZE_32 = STM_SPFEAT2R_DSIZE_Bits32 }
 Fundamental data size modes. More...
 
enum  nrf_stm_lsr_type_t {
  NRF_STM_LSR_TYPE_8 = STM_LSR_TYPE_Bits8 ,
  NRF_STM_LSR_TYPE_32 = STM_LSR_TYPE_Bits32
}
 Lock Access Register implementation modes. More...
 
enum  nrf_stm_devtype_major_t { NRF_STM_DEVTYPE_MAJOR_TRACE_SOURCE = STM_DEVTYPE_MAJOR_TraceSource }
 
enum  nrf_stm_devtype_sub_t { NRF_STM_DEVTYPE_SUB_STIMULUS_TRACE = STM_DEVTYPE_SUB_StimulusTrace }
 

Functions

NRF_STATIC_INLINE bool nrf_stm_feature_check (NRF_STM_Type const *p_reg, nrf_stm_feature_t feature)
 Function for retrieving the state of a feature.
 
NRF_STATIC_INLINE void nrf_stm_feature_set (NRF_STM_Type *p_reg, nrf_stm_feature_t feature, bool enable)
 Function for setting the state of a feature.
 
NRF_STATIC_INLINE bool nrf_stm_input_check (NRF_STM_Type const *p_reg, nrf_stm_input_t input)
 Function for retrieving the state of an input.
 
NRF_STATIC_INLINE void nrf_stm_output_set (NRF_STM_Type *p_reg, nrf_stm_output_t output, bool enable)
 Function for setting the state of an output.
 
NRF_STATIC_INLINE void nrf_stm_dmactlr_sens_set (NRF_STM_Type *p_reg, nrf_stm_dma_sens_t sens)
 Function for setting the sensivity of the DMA request.
 
NRF_STATIC_INLINE nrf_stm_dma_sens_t nrf_stm_dmactlr_sens_get (NRF_STM_Type const *p_reg)
 Function for getting the sensivity of the DMA request.
 
NRF_STATIC_INLINE uint16_t nrf_stm_hemastr_get (NRF_STM_Type const *p_reg)
 Function for getting the number of the hardware event trace of the STPv2 master.
 
NRF_STATIC_INLINE uint16_t nrf_stm_hefeat1r_numhe_get (NRF_STM_Type const *p_reg)
 Function for getting the number of hardware events suppoted by the STM.
 
NRF_STATIC_INLINE nrf_stm_heidr_class_t nrf_stm_heidr_class_get (NRF_STM_Type const *p_reg)
 Function for getting the programmer's model of hardware event tracking.
 
NRF_STATIC_INLINE uint8_t nrf_stm_heidr_classrev_get (NRF_STM_Type const *p_reg)
 Function for getting the revision of the programmer's model of hardware event tracking.
 
NRF_STATIC_INLINE uint8_t nrf_stm_heidr_vendspec_get (NRF_STM_Type const *p_reg)
 Function for getting vendor specific modifications or mappings of hardware event tracking.
 
NRF_STATIC_INLINE void nrf_stm_tcsr_traceid_set (NRF_STM_Type *p_reg, uint8_t trace_id)
 Function for setting the ATB Trace ID.
 
NRF_STATIC_INLINE uint8_t nrf_stm_tcsr_traceid_get (NRF_STM_Type const *p_reg)
 Function for getting the ATB Trace ID.
 
NRF_STATIC_INLINE nrf_stm_spfeat1r_prot_t nrf_stm_spfeat1r_prot_get (NRF_STM_Type const *p_reg)
 Function for getting the implemented STM protocol.
 
NRF_STATIC_INLINE nrf_stm_spfeat1r_ts_t nrf_stm_spfeat1r_ts_get (NRF_STM_Type const *p_reg)
 Function for getting the timestamp support mode.
 
NRF_STATIC_INLINE uint8_t nrf_stm_spfeat1r_tracebus_get (NRF_STM_Type const *p_reg)
 Function for getting the trace bus support.
 
NRF_STATIC_INLINE uint8_t nrf_stm_spfeat1r_trigctl_get (NRF_STM_Type const *p_reg)
 Function for getting the trigger control support.
 
NRF_STATIC_INLINE nrf_stm_spfeat1r_syncen_t nrf_stm_spfeat1r_syncen_get (NRF_STM_Type const *p_reg)
 Function for getting the STMTCSR.SYNCEN support mode.
 
NRF_STATIC_INLINE nrf_stm_spfeat2r_spcomp_t nrf_stm_spfeat2r_spcomp_get (NRF_STM_Type const *p_reg)
 Function for getting the data compression on stimulus port support mode.
 
NRF_STATIC_INLINE nrf_stm_spfeat2r_sptrtype_t nrf_stm_spfeat2r_sptrtype_get (NRF_STM_Type const *p_reg)
 Function for getting the stimulus port transaction type support mode.
 
NRF_STATIC_INLINE nrf_stm_spfeat2r_dsize_t nrf_stm_spfeat2r_dsize_get (NRF_STM_Type const *p_reg)
 Function for getting the fundamental data size mode.
 
NRF_STATIC_INLINE uint8_t nrf_stm_spfeat3r_nummast_get (NRF_STM_Type const *p_reg)
 Function for getting the number of stimulus ports masters implemented, minus 1.
 
NRF_STATIC_INLINE void nrf_stm_lar_access_set (NRF_STM_Type *p_reg, uint32_t value)
 Function for setting the enable write access register.
 
NRF_STATIC_INLINE nrf_stm_lsr_type_t nrf_stm_lsr_type_get (NRF_STM_Type const *p_reg)
 Function for getting the Lock Access Register implementation mode.
 
NRF_STATIC_INLINE uint32_t nrf_stm_devid_numsp_get (NRF_STM_Type const *p_reg)
 Function for getting the number of stimulus ports implemented.
 
NRF_STATIC_INLINE nrf_stm_devtype_major_t nrf_stm_devtype_major_get (NRF_STM_Type const *p_reg)
 Function for getting the major classification grouping for this debug or trace component.
 
NRF_STATIC_INLINE nrf_stm_devtype_sub_t nrf_stm_devtype_sub_get (NRF_STM_Type const *p_reg)
 Function for getting the sub-classification for this debug or trace component.
 

Detailed Description

Hardware access layer for managing the System Trace Macrocell (STM) peripheral.

Enumeration Type Documentation

◆ nrf_stm_devtype_major_t

Major classification grouping for this debug or trace component.

Enumerator
NRF_STM_DEVTYPE_MAJOR_TRACE_SOURCE 

Peripheral is a trace source.

◆ nrf_stm_devtype_sub_t

Sub-classification for this debug or trace component.

Enumerator
NRF_STM_DEVTYPE_SUB_STIMULUS_TRACE 

Peripheral is a stimulus trace source.

◆ nrf_stm_dma_sens_t

Sensitivity of the DMA request to the current buffer level.

Enumerator
NRF_STM_DMACTLR_LT25 

Buffer is <25% full.

NRF_STM_DMACTLR_LT50 

Buffer is <50% full.

NRF_STM_DMACTLR_LT75 

Buffer is <75% full.

NRF_STM_DMACTLR_LT100 

Buffer is <100% full.

◆ nrf_stm_feature_t

STM features.

Warning
Registers marked with (1) signal negative situation (disabled, not supported) using non-zero value. Therefore the register value is negated when retrieving their setting with nrf_stm_feature_present_check() or setting it with nrf_stm_feature_set(). This is to ensure that true always means enabled/supported and false disabled/not supported.
Note
Registers marked RO are read-only and may be only used in nrf_stm_feature_check function. Registers marked RW are read-write and may be used with both nrf_stm_feature_check and nrf_stm_feature_set functions.
Enumerator
NRF_STM_FEATURE_HETER 

Hardware event trigger enable register support. RO

NRF_STM_FEATURE_HEERR 

Hardware event error detection support. RO

NRF_STM_FEATURE_HEMASTR 

Hardware event master number register support. RO

NRF_STM_FEATURE_STM 

Global STM enable. RW

NRF_STM_FEATURE_TSEN 

Timestamping enable. RW

NRF_STM_FEATURE_SYNCEN 

Synchronization control register implemented. RW

NRF_STM_FEATURE_COMPEN 

Compression enable. RW

NRF_STM_FEATURE_BUSY 

STM busy status. RW

NRF_STM_FEATURE_FIFOAF 

Auto-flush enable. RW

NRF_STM_FEATURE_ASYNCPE 

Async priority escalation enable. RW

NRF_STM_FEATURE_PRIORINVDIS 

Priority inversion enable. RW (1)

NRF_STM_FEATURE_CLKON 

Override for architectural clock gate enable. RW

NRF_STM_FEATURE_AFREADYHIGH 

Override for the AFREADY output enable. RW

NRF_STM_FEATURE_TSFREQ 

Timestamp frequency indication configuration. RO

NRF_STM_FEATURE_FORCETS 

timestamp stimulus register support. RO

NRF_STM_FEATURE_TSPRESCALE 

Timestamp prescale support. RO (1)

NRF_STM_FEATURE_HWTEN 

Hardware event trace packet emission support. RO (1)

NRF_STM_FEATURE_SWOEN 

Anynchronous-specific usage model for timestamps support. RO (1)

NRF_STM_FEATURE_SPTER 

Stimulus port trigger enable register support. RO

NRF_STM_FEATURE_SPER 

Stimulus port enable register support. RO (1)

NRF_STM_FEATURE_SPOVERRIDE 

Stimulus port override register support. RO

NRF_STM_FEATURE_PRIVMASK 

Trace privilege register support. RO (1)

NRF_STM_FEATURE_INTEGRATION 

Integration mode enable. RW

NRF_STM_FEATURE_LC_PRESENT 

Lock control mechanism support. RO

NRF_STM_FEATURE_LC_LOCKED 

Lock write access enable. RO

NRF_STM_FEATURE_NSID 

Security for non-secure invasive debug enable. RO

NRF_STM_FEATURE_NSNID 

Security for non-secure non-invasive debug enable. RO

NRF_STM_FEATURE_SID 

Security for secure invasive debug. RO

NRF_STM_FEATURE_SNID 

Security for secure non-invasive debug. RO

◆ nrf_stm_heidr_class_t

Programmer's models.

Enumerator
NRF_STM_HEIDR_CLASS_HARDWARE_EVENT_CONTROL 

Hardware Event Control programmer's model.

◆ nrf_stm_input_t

STM inputs.

Enumerator
NRF_STM_INPUT_ATREADYM 

Slave is ready to accept data input.

NRF_STM_INPUT_AFVALIDM 

ATB flush request input.

◆ nrf_stm_lsr_type_t

Lock Access Register implementation modes.

Enumerator
NRF_STM_LSR_TYPE_8 

8-bit Lock Access Register implemented.

NRF_STM_LSR_TYPE_32 

32-bit Lock Access Register implemented.

◆ nrf_stm_output_t

STM outputs.

Enumerator
NRF_STM_OUTPUT_TRIGOUTSPTE 

Match using STMSPTER trigger event output.

NRF_STM_OUTPUT_TRIGOUTSW 

Write to TRIG location trigger event output.

NRF_STM_OUTPUT_TRIGOUTHETE 

Match using STMHETER trigger event output.

NRF_STM_OUTPUT_ASYNCOUT 

Alignment synchronization output.

NRF_STM_OUTPUT_ATDATAM_0 

Trace data ATDATAM[0] output.

NRF_STM_OUTPUT_ATDATAM_7 

Trace data ATDATAM[7] output.

NRF_STM_OUTPUT_ATDATAM_15 

Trace data ATDATAM[15] output.

NRF_STM_OUTPUT_ATDATAM_23 

Trace data ATDATAM[23] output.

NRF_STM_OUTPUT_ATDATAM_31 

Trace data ATDATAM[31] output.

NRF_STM_OUTPUT_ATIDM_0 

Trace source ID bit 0 output.

NRF_STM_OUTPUT_ATIDM_1 

Trace source ID bit 1 output.

NRF_STM_OUTPUT_ATIDM_2 

Trace source ID bit 2 output.

NRF_STM_OUTPUT_ATIDM_3 

Trace source ID bit 3 output.

NRF_STM_OUTPUT_ATIDM_4 

Trace source ID bit 4 output.

NRF_STM_OUTPUT_ATIDM_5 

Trace source ID bit 5 output.

NRF_STM_OUTPUT_ATIDM_6 

Trace source ID bit 6 output.

NRF_STM_OUTPUT_ATVALIDM 

Transfer valid output.

NRF_STM_OUTPUT_AFREADYM 

ATB flush acknowledge output.

NRF_STM_OUTPUT_ATBYTESM_0 

Number of bytes on ATDATA to be captured bit 0 output.

NRF_STM_OUTPUT_ATBYTESM_1 

Number of bytes on ATDATA to be captured bit 1 output.

◆ nrf_stm_spfeat1r_prot_t

STM protocols.

Enumerator
NRF_STM_SFPEAT1R_PROT_STPV2 

STPv2 protocol.

◆ nrf_stm_spfeat1r_syncen_t

STMTCSR.SYNCEN support modes.

Enumerator
NRF_STM_SPFEAT1R_SYNCEN_READ_AS_ONE 

STMTCSR.SYNCEN implemented, but always reads as 1.

◆ nrf_stm_spfeat1r_ts_t

Timestamp support modes.

Enumerator
NRF_STM_SPFEAT1R_TS_ABSOLUTE 

Absolute timestaps implemented.

◆ nrf_stm_spfeat2r_dsize_t

Fundamental data size modes.

Enumerator
NRF_STM_SPFEAT2R_DSIZE_32 

32-bit data.

◆ nrf_stm_spfeat2r_spcomp_t

Data compression on stimulus port support modes.

Enumerator
NRF_STM_SPFEAT2R_SPCOMP_PROGRAMMABLE 

Data compression support is programmable.

◆ nrf_stm_spfeat2r_sptrtype_t

Stimulus port transaction type support modes.

Enumerator
NRF_STM_SPFEAT2R_SPTRTYPE_INVARIANT_AND_GUARANTEED 

Both invariant timing and guaranteed transactions are supported.

Function Documentation

◆ nrf_stm_devid_numsp_get()

NRF_STATIC_INLINE uint32_t nrf_stm_devid_numsp_get ( NRF_STM_Type const *  p_reg)

Function for getting the number of stimulus ports implemented.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Number of stimulus ports implemented.

◆ nrf_stm_devtype_major_get()

NRF_STATIC_INLINE nrf_stm_devtype_major_t nrf_stm_devtype_major_get ( NRF_STM_Type const *  p_reg)

Function for getting the major classification grouping for this debug or trace component.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Major classification grouping for this debug or trace component.

◆ nrf_stm_devtype_sub_get()

NRF_STATIC_INLINE nrf_stm_devtype_sub_t nrf_stm_devtype_sub_get ( NRF_STM_Type const *  p_reg)

Function for getting the sub-classification for this debug or trace component.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Sub-classification for this debug or trace component.

◆ nrf_stm_dmactlr_sens_get()

NRF_STATIC_INLINE nrf_stm_dma_sens_t nrf_stm_dmactlr_sens_get ( NRF_STM_Type const *  p_reg)

Function for getting the sensivity of the DMA request.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Sensivity of the DMA request.

◆ nrf_stm_dmactlr_sens_set()

NRF_STATIC_INLINE void nrf_stm_dmactlr_sens_set ( NRF_STM_Type *  p_reg,
nrf_stm_dma_sens_t  sens 
)

Function for setting the sensivity of the DMA request.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]sensSensivity to be set.

◆ nrf_stm_feature_check()

NRF_STATIC_INLINE bool nrf_stm_feature_check ( NRF_STM_Type const *  p_reg,
nrf_stm_feature_t  feature 
)

Function for retrieving the state of a feature.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]featureFeature to be checked.
Return values
trueThe feature is supported/enabled.
falseThe feature is not supported/disabled.

◆ nrf_stm_feature_set()

NRF_STATIC_INLINE void nrf_stm_feature_set ( NRF_STM_Type *  p_reg,
nrf_stm_feature_t  feature,
bool  enable 
)

Function for setting the state of a feature.

Warning
Only features that are RW may be used in this function.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]featureFeature to be set.
[in]enableState to be set.

◆ nrf_stm_hefeat1r_numhe_get()

NRF_STATIC_INLINE uint16_t nrf_stm_hefeat1r_numhe_get ( NRF_STM_Type const *  p_reg)

Function for getting the number of hardware events suppoted by the STM.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Number of hardware events suppoted by the STM.

◆ nrf_stm_heidr_class_get()

NRF_STATIC_INLINE nrf_stm_heidr_class_t nrf_stm_heidr_class_get ( NRF_STM_Type const *  p_reg)

Function for getting the programmer's model of hardware event tracking.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Programmer's model.

◆ nrf_stm_heidr_classrev_get()

NRF_STATIC_INLINE uint8_t nrf_stm_heidr_classrev_get ( NRF_STM_Type const *  p_reg)

Function for getting the revision of the programmer's model of hardware event tracking.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Revision of the programmer's model.

◆ nrf_stm_heidr_vendspec_get()

NRF_STATIC_INLINE uint8_t nrf_stm_heidr_vendspec_get ( NRF_STM_Type const *  p_reg)

Function for getting vendor specific modifications or mappings of hardware event tracking.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Vendor specific modifications or mappings.

◆ nrf_stm_hemastr_get()

NRF_STATIC_INLINE uint16_t nrf_stm_hemastr_get ( NRF_STM_Type const *  p_reg)

Function for getting the number of the hardware event trace of the STPv2 master.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Number of the hardware event trace of the STPv2 master.

◆ nrf_stm_input_check()

NRF_STATIC_INLINE bool nrf_stm_input_check ( NRF_STM_Type const *  p_reg,
nrf_stm_input_t  input 
)

Function for retrieving the state of an input.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]inputInput to be checked.
Return values
trueThe input is high.
falseThe input is low.

◆ nrf_stm_lar_access_set()

NRF_STATIC_INLINE void nrf_stm_lar_access_set ( NRF_STM_Type *  p_reg,
uint32_t  value 
)

Function for setting the enable write access register.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]valueValue to be set for enable write access register.

◆ nrf_stm_lsr_type_get()

NRF_STATIC_INLINE nrf_stm_lsr_type_t nrf_stm_lsr_type_get ( NRF_STM_Type const *  p_reg)

Function for getting the Lock Access Register implementation mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Lock Access Register implementation mode.

◆ nrf_stm_output_set()

NRF_STATIC_INLINE void nrf_stm_output_set ( NRF_STM_Type *  p_reg,
nrf_stm_output_t  output,
bool  enable 
)

Function for setting the state of an output.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]outputOutput to be set.
[in]enableState to be set.

◆ nrf_stm_spfeat1r_prot_get()

NRF_STATIC_INLINE nrf_stm_spfeat1r_prot_t nrf_stm_spfeat1r_prot_get ( NRF_STM_Type const *  p_reg)

Function for getting the implemented STM protocol.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Implemented STM protocol.

◆ nrf_stm_spfeat1r_syncen_get()

NRF_STATIC_INLINE nrf_stm_spfeat1r_syncen_t nrf_stm_spfeat1r_syncen_get ( NRF_STM_Type const *  p_reg)

Function for getting the STMTCSR.SYNCEN support mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
STMTCSR.SYNCEN support mode.

◆ nrf_stm_spfeat1r_tracebus_get()

NRF_STATIC_INLINE uint8_t nrf_stm_spfeat1r_tracebus_get ( NRF_STM_Type const *  p_reg)

Function for getting the trace bus support.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trace bus support.

◆ nrf_stm_spfeat1r_trigctl_get()

NRF_STATIC_INLINE uint8_t nrf_stm_spfeat1r_trigctl_get ( NRF_STM_Type const *  p_reg)

Function for getting the trigger control support.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Trigger control support.

◆ nrf_stm_spfeat1r_ts_get()

NRF_STATIC_INLINE nrf_stm_spfeat1r_ts_t nrf_stm_spfeat1r_ts_get ( NRF_STM_Type const *  p_reg)

Function for getting the timestamp support mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Timestamp support mode.

◆ nrf_stm_spfeat2r_dsize_get()

NRF_STATIC_INLINE nrf_stm_spfeat2r_dsize_t nrf_stm_spfeat2r_dsize_get ( NRF_STM_Type const *  p_reg)

Function for getting the fundamental data size mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Fundamental data size mode.

◆ nrf_stm_spfeat2r_spcomp_get()

NRF_STATIC_INLINE nrf_stm_spfeat2r_spcomp_t nrf_stm_spfeat2r_spcomp_get ( NRF_STM_Type const *  p_reg)

Function for getting the data compression on stimulus port support mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Data compression on stimulus port support mode.

◆ nrf_stm_spfeat2r_sptrtype_get()

NRF_STATIC_INLINE nrf_stm_spfeat2r_sptrtype_t nrf_stm_spfeat2r_sptrtype_get ( NRF_STM_Type const *  p_reg)

Function for getting the stimulus port transaction type support mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Stimulus port transaction type support mode.

◆ nrf_stm_spfeat3r_nummast_get()

NRF_STATIC_INLINE uint8_t nrf_stm_spfeat3r_nummast_get ( NRF_STM_Type const *  p_reg)

Function for getting the number of stimulus ports masters implemented, minus 1.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Number of stimulus ports masters implemented, minus 1.

◆ nrf_stm_tcsr_traceid_get()

NRF_STATIC_INLINE uint8_t nrf_stm_tcsr_traceid_get ( NRF_STM_Type const *  p_reg)

Function for getting the ATB Trace ID.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
ATB Trace ID.

◆ nrf_stm_tcsr_traceid_set()

NRF_STATIC_INLINE void nrf_stm_tcsr_traceid_set ( NRF_STM_Type *  p_reg,
uint8_t  trace_id 
)

Function for setting the ATB Trace ID.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]trace_idATB Trace ID to be set.

Documentation feedback | Developer Zone | Subscribe | Updated