#ifndef _FC7240_LU_NU_Tztufn43_REGS_H_ #define _FC7240_LU_NU_Tztufn43_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- LU Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup LU_Peripheral_Access_Layer LU Peripheral Access Layer * @{ */ /** LU - Size of Registers Arrays */ /** LU - Register Layout Typedef */ #define LG_CNT 4 typedef struct { struct { __IO uint32_t AOI_0 ; /* AOI0 configuration, offset: 0x0+n*10h */ __IO uint32_t AOI_1 ; /* AOI1 configuration, offset: 0x4+n*10h */ __IO uint32_t CTRL ; /* lg configuration, offset: 0x8+n*10h */ __IO uint32_t FILT ; /* input filter, offset: 0xc+n*10h */ } LG[LG_CNT]; } LU_Type, *LU_MemMapPtr; /** Number of instances of the LU module. */ #define LU_INSTANCE_COUNT (1u) /* LU - Peripheral instance base addresses */ /** Peripheral LU base address */ #define LU_BASE (0x40070000u) /** Peripheral LU base pointer */ #define LU ((LU_Type *)LU_BASE) /** Array initializer of LU peripheral base addresses */ #define LU_BASE_ADDRS {LU_BASE} /** Array initializer of LU peripheral base pointers */ #define LU_BASE_PTRS {LU} // need fill by yourself ///** Number of interrupt vector arrays for the LU module. */ //#define LU_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the LU module. */ //#define LU_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the LU peripheral type */ //#define LU_IRQS {LU_IRQn} /* ---------------------------------------------------------------------------- -- LU Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup LU_Register_Masks LU Register Masks * @{ */ /* AOI_0 Bit Fields */ #define LU_AOI_0_IN0A_CFG_MASK 0xC0000000u #define LU_AOI_0_IN0A_CFG_SHIFT 30u #define LU_AOI_0_IN0A_CFG_WIDTH 2u #define LU_AOI_0_IN0A_CFG(x) (((uint32_t)(((uint32_t)(x))<