#ifndef _FC7240_FCSMU_NU_Tztufn38_REGS_H_ #define _FC7240_FCSMU_NU_Tztufn38_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- FCSMU Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup FCSMU_Peripheral_Access_Layer FCSMU Peripheral Access Layer * @{ */ /** FCSMU - Size of Registers Arrays */ /** FCSMU - Register Layout Typedef */ typedef struct { __IO uint32_t CTRL ; /* Control Register, offset: 0x0 */ __O uint32_t OPRK ; /* Operation Key Register, offset: 0x4 */ __IO uint32_t SOCTRL ; /* Status Output Control Register, offset: 0x8 */ __IO uint32_t FCCR0 ; /* Fault Clear Control Register 0, offset: 0xC */ uint8_t RESERVED_0[12]; __IO uint32_t FRST0 ; /* Fault Reset Control Register 0, offset: 0x1C */ uint8_t RESERVED_1[12]; __IO uint32_t FST0 ; /* Fault Status Register, offset: 0x2C */ uint8_t RESERVED_2[12]; __O uint32_t FST_UNLK ; /* Fault Status Register Unlock Register, offset: 0x3C */ __IO uint32_t FE0 ; /* Fault Enable Register, offset: 0x40 */ uint8_t RESERVED_3[12]; __IO uint32_t WARNING_EN0 ; /* Warning State Enable Register 0, offset: 0x50 */ uint8_t RESERVED_4[12]; __IO uint32_t WARNING_TO ; /* Warning Timeout Interval Register, offset: 0x60 */ __IO uint32_t CFG_TO ; /* Configuration State Timeout Interval Register, offset: 0x64 */ __IO uint32_t SOUT_DIAG ; /* SOUT Diagnostic Register, offset: 0x68 */ __I uint32_t STATUS ; /* Status Register, offset: 0x6C */ __I uint32_t NTW ; /* Normal to Warning Register, offset: 0x70 */ __I uint32_t WTF ; /* Warning to Fault Register, offset: 0x74 */ __I uint32_t NTF ; /* Normal to Fault Register, offset: 0x78 */ __I uint32_t FTW ; /* Fault to Warning Register, offset: 0x7C */ uint8_t RESERVED_5[4]; __O uint32_t INJECT ; /* Fault Injection Register, offset: 0x84 */ __IO uint32_t IRQ_STAT ; /* IRQ Status Register, offset: 0x88 */ __IO uint32_t IRQ_EN ; /* IRQ Enable Register, offset: 0x8C */ uint8_t RESERVED_6[4]; __O uint32_t TEMP_UNLK ; /* Temporary Configuration State Unlock Register, offset: 0x94 */ __O uint32_t PERMNT_LOCK ; /* Permanent Configuration State Lock Register, offset: 0x98 */ __IO uint32_t STMR ; /* SOUT Timer Interval Register, offset: 0x9C */ __IO uint32_t WARNING_IEN0 ; /* Warning State Interrupt Enable Register, offset: 0xA0 */ uint8_t RESERVED_7[12]; __IO uint32_t FAULT_IEN0 ; /* Fault State Interrupt Enable Register, offset: 0xB0 */ uint8_t RESERVED_8[12]; __IO uint32_t SOUT_EN0 ; /* SOUT Enable Register, offset: 0xC0 */ uint8_t RESERVED_9[12]; __I uint32_t WARNING_TMR ; /* Warning State Timer Register, offset: 0xD0 */ __I uint32_t SM_TMR ; /* Safe Mode State Timer Register, offset: 0xD4 */ __I uint32_t CFG_TMR ; /* Configuration State Timer Register, offset: 0xD8 */ __I uint32_t SOUT_TMR ; /* SOUT Timer Register, offset: 0xDC */ __IO uint32_t CRC_CTRL ; /* CRC Control Register, offset: 0xE0 */ __I uint32_t CRC_RES ; /* CRC Result Register, offset: 0xE4 */ } FCSMU_Type, *FCSMU_MemMapPtr; /** Number of instances of the FCSMU module. */ #define FCSMU_INSTANCE_COUNT (1u) /* FCSMU - Peripheral instance base addresses */ /** Peripheral FCSMU base address */ #define FCSMU_BASE (0x4000f000u) /** Peripheral FCSMU base pointer */ #define FCSMU ((FCSMU_Type *)FCSMU_BASE) /** Array initializer of FCSMU peripheral base addresses */ #define FCSMU_BASE_ADDRS {FCSMU_BASE} /** Array initializer of FCSMU peripheral base pointers */ #define FCSMU_BASE_PTRS {FCSMU} // need fill by yourself ///** Number of interrupt vector arrays for the FCSMU module. */ //#define FCSMU_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the FCSMU module. */ //#define FCSMU_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the FCSMU peripheral type */ //#define FCSMU_IRQS {FCSMU_IRQn} /* ---------------------------------------------------------------------------- -- FCSMU Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup FCSMU_Register_Masks FCSMU Register Masks * @{ */ /* CTRL Bit Fields */ #define FCSMU_CTRL_DBGEN_MASK 0x200u #define FCSMU_CTRL_DBGEN_SHIFT 9u #define FCSMU_CTRL_DBGEN_WIDTH 1u #define FCSMU_CTRL_DBGEN(x) (((uint32_t)(((uint32_t)(x))<