34#ifndef MCUXCLOSCCASAFO_SFR_REGBANK_H_
35#define MCUXCLOSCCASAFO_SFR_REGBANK_H_
38#include <platform_specific_headers.h>
48static inline uint32_t * mcuxClOsccaSafo_Sfr_getAddrOfDataReg(uint32_t dataRegIndex)
50 MCUX_CSSL_ANALYSIS_START_PATTERN_HW_READ()
52 MCUX_CSSL_ANALYSIS_STOP_PATTERN_HW_READ()
57static inline uint32_t * mcuxClOsccaSafo_Sfr_getAddrOfKeyReg(uint32_t keyRegIndex)
59 MCUX_CSSL_ANALYSIS_START_PATTERN_HW_READ()
61 MCUX_CSSL_ANALYSIS_STOP_PATTERN_HW_READ()
66static inline
void mcuxClOsccaSafo_Sfr_writeKeyWord(uint32_t index, uint32_t value)
68 MCUX_CSSL_ANALYSIS_START_PATTERN_HW_WRITE()
70 MCUX_CSSL_ANALYSIS_START_SUPPRESS_OUT_OF_BOUNDS_ACCESS(
"Apply an index to the base address of a HW peripheral to access the correct SFR-word. The caller is responsible for ensuring that the index is valid.")
71 safoKeyWord[index] = value;
72 MCUX_CSSL_ANALYSIS_STOP_SUPPRESS_OUT_OF_BOUNDS_ACCESS()
73 MCUX_CSSL_ANALYSIS_STOP_PATTERN_HW_WRITE()
78static inline uint32_t mcuxClOsccaSafo_Sfr_readKeyWord(uint32_t index)
80 MCUX_CSSL_ANALYSIS_START_PATTERN_HW_READ()
82 MCUX_CSSL_ANALYSIS_START_SUPPRESS_OUT_OF_BOUNDS_ACCESS(
"Apply an index to the base address of a HW peripheral to access the correct SFR-word. The caller is responsible for ensuring that the index is valid.")
83 return safoKeyWord[index];
84 MCUX_CSSL_ANALYSIS_STOP_SUPPRESS_OUT_OF_BOUNDS_ACCESS()
85 MCUX_CSSL_ANALYSIS_STOP_PATTERN_HW_READ()
90static inline
void mcuxClOsccaSafo_Sfr_writeDatinWord(uint32_t index, uint32_t value)
92 MCUX_CSSL_ANALYSIS_START_PATTERN_HW_WRITE()
94 MCUX_CSSL_ANALYSIS_START_SUPPRESS_OUT_OF_BOUNDS_ACCESS(
"Apply an index to the base address of a HW peripheral to access the correct SFR-word. The caller is responsible for ensuring that the index is valid.")
95 safoDatinWord[index] = value;
96 MCUX_CSSL_ANALYSIS_STOP_SUPPRESS_OUT_OF_BOUNDS_ACCESS()
97 MCUX_CSSL_ANALYSIS_STOP_PATTERN_HW_WRITE()
100#ifdef MCUXCL_FEATURE_HW_SAFO_SM3
102static inline void mcuxClOsccaSafo_Sfr_writeFifoWord(uint32_t value)
110static inline uint32_t mcuxClOsccaSafo_Sfr_readDatinWord(uint32_t index)
112 MCUX_CSSL_ANALYSIS_START_PATTERN_HW_READ()
114 MCUX_CSSL_ANALYSIS_START_SUPPRESS_OUT_OF_BOUNDS_ACCESS(
"Apply an index to the base address of a HW peripheral to access the correct SFR-word. The caller is responsible for ensuring that the index is valid.")
115 return safoDatinWord[index];
116 MCUX_CSSL_ANALYSIS_STOP_SUPPRESS_OUT_OF_BOUNDS_ACCESS()
117 MCUX_CSSL_ANALYSIS_STOP_PATTERN_HW_READ()
122static inline uint32_t mcuxClOsccaSafo_Sfr_readDatoutWord(uint32_t index)
124 MCUX_CSSL_ANALYSIS_START_PATTERN_HW_READ()
126 MCUX_CSSL_ANALYSIS_START_SUPPRESS_OUT_OF_BOUNDS_ACCESS(
"Apply an index to the base address of a HW peripheral to access the correct SFR-word. The caller is responsible for ensuring that the index is valid.")
127 return safoDatoutWord[index];
128 MCUX_CSSL_ANALYSIS_STOP_SUPPRESS_OUT_OF_BOUNDS_ACCESS()
129 MCUX_CSSL_ANALYSIS_STOP_PATTERN_HW_READ()
Macros for abstracting SAFO hardware SFR access.
#define MCUXCLOSCCASAFO_SFR_READ(sfr)
Read from SAFO SFR.
Definition mcuxClOsccaSafo_SfrAccess.h:62
#define MCUXCLOSCCASAFO_SFR_WRITE(sfr, value)
Write to SAFO SFR.
Definition mcuxClOsccaSafo_SfrAccess.h:68
Provides the API for the CSSL flow protection mechanism.
#define MCUX_CSSL_FP_FUNCTION_DEF(...)
Definition of a flow protected function.
Definition mcuxCsslFlowProtection.h:179