/* ** ################################################################### ** Compilers: Keil ARM C/C++ Compiler ** Freescale C/C++ for Embedded ARM ** GNU C Compiler ** GNU C Compiler - CodeSourcery Sourcery G++ ** IAR ANSI C/C++ Compiler for ARM ** ** Reference manual: MKW40Z160RM, Rev. 1.1, 4/2015 ** Version: rev. 1.2, 2015-05-07 ** Build: b150513 ** ** Abstract: ** CMSIS Peripheral Access Layer for MKW20Z4 ** ** Copyright (c) 1997 - 2015 Freescale Semiconductor, Inc. ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, ** are permitted provided that the following conditions are met: ** ** o Redistributions of source code must retain the above copyright notice, this list ** of conditions and the following disclaimer. ** ** o Redistributions in binary form must reproduce the above copyright notice, this ** list of conditions and the following disclaimer in the documentation and/or ** other materials provided with the distribution. ** ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its ** contributors may be used to endorse or promote products derived from this ** software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ** http: www.freescale.com ** mail: support@freescale.com ** ** Revisions: ** - rev. 1.0 (2014-08-27) ** Initial version. ** - rev. 1.1 (2015-03-05) ** Update with reference manual rev 1.0 ** - rev. 1.2 (2015-05-07) ** Update with reference manual rev 1.1 ** ** ################################################################### */ /*! * @file MKW20Z4.h * @version 1.2 * @date 2015-05-07 * @brief CMSIS Peripheral Access Layer for MKW20Z4 * * CMSIS Peripheral Access Layer for MKW20Z4 */ /* ---------------------------------------------------------------------------- -- MCU activation ---------------------------------------------------------------------------- */ /* Prevention from multiple including the same memory map */ #if !defined(MKW20Z4_H_) /* Check if memory map has not been already included */ #define MKW20Z4_H_ #define MCU_MKW20Z4 /* Check if another memory map has not been also included */ #if (defined(MCU_ACTIVE)) #error MKW20Z4 memory map: There is already included another memory map. Only one memory map can be included. #endif /* (defined(MCU_ACTIVE)) */ #define MCU_ACTIVE #include /** Memory map major version (memory maps with equal major version number are * compatible) */ #define MCU_MEM_MAP_VERSION 0x0100u /** Memory map minor version */ #define MCU_MEM_MAP_VERSION_MINOR 0x0002u /* ---------------------------------------------------------------------------- -- Interrupt vector numbers ---------------------------------------------------------------------------- */ /*! * @addtogroup Interrupt_vector_numbers Interrupt vector numbers * @{ */ /** Interrupt Number Definitions */ #define NUMBER_OF_INT_VECTORS 48 /**< Number of interrupts in the Vector table */ typedef enum IRQn { /* Auxiliary constants */ NotAvail_IRQn = -128, /**< Not available device specific interrupt */ /* Core interrupts */ NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */ HardFault_IRQn = -13, /**< Cortex-M0 SV Hard Fault Interrupt */ SVCall_IRQn = -5, /**< Cortex-M0 SV Call Interrupt */ PendSV_IRQn = -2, /**< Cortex-M0 Pend SV Interrupt */ SysTick_IRQn = -1, /**< Cortex-M0 System Tick Interrupt */ /* Device specific interrupts */ DMA0_IRQn = 0, /**< DMA channel 0 transfer complete */ DMA1_IRQn = 1, /**< DMA channel 1 transfer complete */ DMA2_IRQn = 2, /**< DMA channel 2 transfer complete */ DMA3_IRQn = 3, /**< DMA channel 3 transfer complete */ Reserved20_IRQn = 4, /**< Reserved interrupt */ FTFA_IRQn = 5, /**< Command complete and read collision */ LVD_LVW_DCDC_IRQn = 6, /**< Low-voltage detect, low-voltage warning, DCDC */ LLWU_IRQn = 7, /**< Low leakage wakeup Unit */ I2C0_IRQn = 8, /**< I2C0 interrupt */ I2C1_IRQn = 9, /**< I2C1 interrupt */ SPI0_IRQn = 10, /**< SPI0 single interrupt vector for all sources */ TSI0_IRQn = 11, /**< TSI0 single interrupt vector for all sources */ LPUART0_IRQn = 12, /**< LPUART0 status and error */ TRNG0_IRQn = 13, /**< TRNG0 interrupt */ CMT_IRQn = 14, /**< CMT interrupt */ ADC0_IRQn = 15, /**< ADC0 interrupt */ CMP0_IRQn = 16, /**< CMP0 interrupt */ TPM0_IRQn = 17, /**< TPM0 single interrupt vector for all sources */ TPM1_IRQn = 18, /**< TPM1 single interrupt vector for all sources */ TPM2_IRQn = 19, /**< TPM2 single interrupt vector for all sources */ RTC_IRQn = 20, /**< RTC alarm */ RTC_Seconds_IRQn = 21, /**< RTC seconds */ PIT_IRQn = 22, /**< PIT interrupt */ LTC0_IRQn = 23, /**< LTC0 interrupt */ BTLL_RSIM_IRQn = 24, /**< BTLL and RSIM interrupt */ DAC0_IRQn = 25, /**< DAC0 interrupt */ ZigBee_IRQn = 26, /**< ZigBee interrupt */ MCG_IRQn = 27, /**< MCG interrupt */ LPTMR0_IRQn = 28, /**< LPTMR0 interrupt */ SPI1_IRQn = 29, /**< SPI1 single interrupt vector for all sources */ PORTA_IRQn = 30, /**< PORTA Pin detect */ PORTB_PORTC_IRQn = 31 /**< PORTB and PORTC Pin detect */ } IRQn_Type; /*! * @} */ /* end of group Interrupt_vector_numbers */ /* ---------------------------------------------------------------------------- -- Cortex M0 Core Configuration ---------------------------------------------------------------------------- */ /*! * @addtogroup Cortex_Core_Configuration Cortex M0 Core Configuration * @{ */ #define __CM0PLUS_REV 0x0000 /**< Core revision r0p0 */ #define __MPU_PRESENT 0 /**< Defines if an MPU is present or not */ #define __VTOR_PRESENT 1 /**< Defines if an MPU is present or not */ #define __NVIC_PRIO_BITS 2 /**< Number of priority bits implemented in the NVIC */ #define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */ #include "core_cm0plus.h" /* Core Peripheral Access Layer */ #include "system_MKW20Z4.h" /* Device specific configuration file */ /*! * @} */ /* end of group Cortex_Core_Configuration */ /* ---------------------------------------------------------------------------- -- Device Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup Peripheral_access_layer Device Peripheral Access Layer * @{ */ /* ** Start of section using anonymous unions */ #if defined(__ARMCC_VERSION) #pragma push #pragma anon_unions #elif defined(__CWCC__) #pragma push #pragma cpp_extensions on #elif defined(__GNUC__) /* anonymous unions are enabled by default */ #elif defined(__IAR_SYSTEMS_ICC__) #pragma language=extended #else #error Not supported compiler type #endif /* ---------------------------------------------------------------------------- -- ADC Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup ADC_Peripheral_Access_Layer ADC Peripheral Access Layer * @{ */ /** ADC - Register Layout Typedef */ typedef struct { __IO uint32_t SC1[2]; /**< ADC Status and Control Registers 1, array offset: 0x0, array step: 0x4 */ __IO uint32_t CFG1; /**< ADC Configuration Register 1, offset: 0x8 */ __IO uint32_t CFG2; /**< ADC Configuration Register 2, offset: 0xC */ __I uint32_t R[2]; /**< ADC Data Result Register, array offset: 0x10, array step: 0x4 */ __IO uint32_t CV1; /**< Compare Value Registers, offset: 0x18 */ __IO uint32_t CV2; /**< Compare Value Registers, offset: 0x1C */ __IO uint32_t SC2; /**< Status and Control Register 2, offset: 0x20 */ __IO uint32_t SC3; /**< Status and Control Register 3, offset: 0x24 */ __IO uint32_t OFS; /**< ADC Offset Correction Register, offset: 0x28 */ __IO uint32_t PG; /**< ADC Plus-Side Gain Register, offset: 0x2C */ __IO uint32_t MG; /**< ADC Minus-Side Gain Register, offset: 0x30 */ __IO uint32_t CLPD; /**< ADC Plus-Side General Calibration Value Register, offset: 0x34 */ __IO uint32_t CLPS; /**< ADC Plus-Side General Calibration Value Register, offset: 0x38 */ __IO uint32_t CLP4; /**< ADC Plus-Side General Calibration Value Register, offset: 0x3C */ __IO uint32_t CLP3; /**< ADC Plus-Side General Calibration Value Register, offset: 0x40 */ __IO uint32_t CLP2; /**< ADC Plus-Side General Calibration Value Register, offset: 0x44 */ __IO uint32_t CLP1; /**< ADC Plus-Side General Calibration Value Register, offset: 0x48 */ __IO uint32_t CLP0; /**< ADC Plus-Side General Calibration Value Register, offset: 0x4C */ uint8_t RESERVED_0[4]; __IO uint32_t CLMD; /**< ADC Minus-Side General Calibration Value Register, offset: 0x54 */ __IO uint32_t CLMS; /**< ADC Minus-Side General Calibration Value Register, offset: 0x58 */ __IO uint32_t CLM4; /**< ADC Minus-Side General Calibration Value Register, offset: 0x5C */ __IO uint32_t CLM3; /**< ADC Minus-Side General Calibration Value Register, offset: 0x60 */ __IO uint32_t CLM2; /**< ADC Minus-Side General Calibration Value Register, offset: 0x64 */ __IO uint32_t CLM1; /**< ADC Minus-Side General Calibration Value Register, offset: 0x68 */ __IO uint32_t CLM0; /**< ADC Minus-Side General Calibration Value Register, offset: 0x6C */ } ADC_Type, *ADC_MemMapPtr; /* ---------------------------------------------------------------------------- -- ADC - Register accessor macros ---------------------------------------------------------------------------- */ /*! * @addtogroup ADC_Register_Accessor_Macros ADC - Register accessor macros * @{ */ /* ADC - Register accessors */ #define ADC_SC1_REG(base,index) ((base)->SC1[index]) #define ADC_SC1_COUNT 2 #define ADC_CFG1_REG(base) ((base)->CFG1) #define ADC_CFG2_REG(base) ((base)->CFG2) #define ADC_R_REG(base,index) ((base)->R[index]) #define ADC_R_COUNT 2 #define ADC_CV1_REG(base) ((base)->CV1) #define ADC_CV2_REG(base) ((base)->CV2) #define ADC_SC2_REG(base) ((base)->SC2) #define ADC_SC3_REG(base) ((base)->SC3) #define ADC_OFS_REG(base) ((base)->OFS) #define ADC_PG_REG(base) ((base)->PG) #define ADC_MG_REG(base) ((base)->MG) #define ADC_CLPD_REG(base) ((base)->CLPD) #define ADC_CLPS_REG(base) ((base)->CLPS) #define ADC_CLP4_REG(base) ((base)->CLP4) #define ADC_CLP3_REG(base) ((base)->CLP3) #define ADC_CLP2_REG(base) ((base)->CLP2) #define ADC_CLP1_REG(base) ((base)->CLP1) #define ADC_CLP0_REG(base) ((base)->CLP0) #define ADC_CLMD_REG(base) ((base)->CLMD) #define ADC_CLMS_REG(base) ((base)->CLMS) #define ADC_CLM4_REG(base) ((base)->CLM4) #define ADC_CLM3_REG(base) ((base)->CLM3) #define ADC_CLM2_REG(base) ((base)->CLM2) #define ADC_CLM1_REG(base) ((base)->CLM1) #define ADC_CLM0_REG(base) ((base)->CLM0) /*! * @} */ /* end of group ADC_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- ADC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup ADC_Register_Masks ADC Register Masks * @{ */ /* SC1 Bit Fields */ #define ADC_SC1_ADCH_MASK 0x1Fu #define ADC_SC1_ADCH_SHIFT 0 #define ADC_SC1_ADCH_WIDTH 5 #define ADC_SC1_ADCH(x) (((uint32_t)(((uint32_t)(x))<BLE_PART_ID) #define BLE_RF_REGS_DSM_STATUS_REG(base) ((base)->DSM_STATUS) #define BLE_RF_REGS_BLE_AFC_REG(base) ((base)->BLE_AFC) #define BLE_RF_REGS_BLE_BSM_REG(base) ((base)->BLE_BSM) /*! * @} */ /* end of group BLE_RF_REGS_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- BLE_RF_REGS Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup BLE_RF_REGS_Register_Masks BLE_RF_REGS Register Masks * @{ */ /* BLE_PART_ID Bit Fields */ #define BLE_RF_REGS_BLE_PART_ID_BLE_PART_ID_MASK 0xFFFFu #define BLE_RF_REGS_BLE_PART_ID_BLE_PART_ID_SHIFT 0 #define BLE_RF_REGS_BLE_PART_ID_BLE_PART_ID_WIDTH 16 #define BLE_RF_REGS_BLE_PART_ID_BLE_PART_ID(x) (((uint16_t)(((uint16_t)(x))<CR0) #define CMP_CR1_REG(base) ((base)->CR1) #define CMP_FPR_REG(base) ((base)->FPR) #define CMP_SCR_REG(base) ((base)->SCR) #define CMP_DACCR_REG(base) ((base)->DACCR) #define CMP_MUXCR_REG(base) ((base)->MUXCR) /*! * @} */ /* end of group CMP_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- CMP Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup CMP_Register_Masks CMP Register Masks * @{ */ /* CR0 Bit Fields */ #define CMP_CR0_HYSTCTR_MASK 0x3u #define CMP_CR0_HYSTCTR_SHIFT 0 #define CMP_CR0_HYSTCTR_WIDTH 2 #define CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x))<CGH1) #define CMT_CGL1_REG(base) ((base)->CGL1) #define CMT_CGH2_REG(base) ((base)->CGH2) #define CMT_CGL2_REG(base) ((base)->CGL2) #define CMT_OC_REG(base) ((base)->OC) #define CMT_MSC_REG(base) ((base)->MSC) #define CMT_CMD1_REG(base) ((base)->CMD1) #define CMT_CMD2_REG(base) ((base)->CMD2) #define CMT_CMD3_REG(base) ((base)->CMD3) #define CMT_CMD4_REG(base) ((base)->CMD4) #define CMT_PPS_REG(base) ((base)->PPS) #define CMT_DMA_REG(base) ((base)->DMA) /*! * @} */ /* end of group CMT_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- CMT Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup CMT_Register_Masks CMT Register Masks * @{ */ /* CGH1 Bit Fields */ #define CMT_CGH1_PH_MASK 0xFFu #define CMT_CGH1_PH_SHIFT 0 #define CMT_CGH1_PH_WIDTH 8 #define CMT_CGH1_PH(x) (((uint8_t)(((uint8_t)(x))<DAT[index].DATL) #define DAC_DATL_COUNT 2 #define DAC_DATH_REG(base,index) ((base)->DAT[index].DATH) #define DAC_DATH_COUNT 2 #define DAC_SR_REG(base) ((base)->SR) #define DAC_C0_REG(base) ((base)->C0) #define DAC_C1_REG(base) ((base)->C1) #define DAC_C2_REG(base) ((base)->C2) /*! * @} */ /* end of group DAC_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- DAC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup DAC_Register_Masks DAC Register Masks * @{ */ /* DATL Bit Fields */ #define DAC_DATL_DATA0_MASK 0xFFu #define DAC_DATL_DATA0_SHIFT 0 #define DAC_DATL_DATA0_WIDTH 8 #define DAC_DATL_DATA0(x) (((uint8_t)(((uint8_t)(x))<REG0) #define DCDC_REG1_REG(base) ((base)->REG1) #define DCDC_REG2_REG(base) ((base)->REG2) #define DCDC_REG3_REG(base) ((base)->REG3) #define DCDC_REG4_REG(base) ((base)->REG4) #define DCDC_REG6_REG(base) ((base)->REG6) #define DCDC_REG7_REG(base) ((base)->REG7) /*! * @} */ /* end of group DCDC_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- DCDC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup DCDC_Register_Masks DCDC Register Masks * @{ */ /* REG0 Bit Fields */ #define DCDC_REG0_DCDC_DISABLE_AUTO_CLK_SWITCH_MASK 0x2u #define DCDC_REG0_DCDC_DISABLE_AUTO_CLK_SWITCH_SHIFT 1 #define DCDC_REG0_DCDC_DISABLE_AUTO_CLK_SWITCH_WIDTH 1 #define DCDC_REG0_DCDC_DISABLE_AUTO_CLK_SWITCH(x) (((uint32_t)(((uint32_t)(x))<DMA[index].SAR) #define DMA_SAR_COUNT 4 #define DMA_DAR_REG(base,index) ((base)->DMA[index].DAR) #define DMA_DAR_COUNT 4 #define DMA_DSR_BCR_REG(base,index) ((base)->DMA[index].DSR_BCR) #define DMA_DSR_BCR_COUNT 4 #define DMA_DSR_REG(base,index) ((base)->DMA[index].DMA_DSR_ACCESS8BIT.DSR) #define DMA_DSR_COUNT 4 #define DMA_DCR_REG(base,index) ((base)->DMA[index].DCR) #define DMA_DCR_COUNT 4 /*! * @} */ /* end of group DMA_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- DMA Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup DMA_Register_Masks DMA Register Masks * @{ */ /* SAR Bit Fields */ #define DMA_SAR_SAR_MASK 0xFFFFFFFFu #define DMA_SAR_SAR_SHIFT 0 #define DMA_SAR_SAR_WIDTH 32 #define DMA_SAR_SAR(x) (((uint32_t)(((uint32_t)(x))<CHCFG[index]) #define DMAMUX_CHCFG_COUNT 4 /*! * @} */ /* end of group DMAMUX_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- DMAMUX Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup DMAMUX_Register_Masks DMAMUX Register Masks * @{ */ /* CHCFG Bit Fields */ #define DMAMUX_CHCFG_SOURCE_MASK 0x3Fu #define DMAMUX_CHCFG_SOURCE_SHIFT 0 #define DMAMUX_CHCFG_SOURCE_WIDTH 6 #define DMAMUX_CHCFG_SOURCE(x) (((uint8_t)(((uint8_t)(x))<PDOR) #define FGPIO_PSOR_REG(base) ((base)->PSOR) #define FGPIO_PCOR_REG(base) ((base)->PCOR) #define FGPIO_PTOR_REG(base) ((base)->PTOR) #define FGPIO_PDIR_REG(base) ((base)->PDIR) #define FGPIO_PDDR_REG(base) ((base)->PDDR) /*! * @} */ /* end of group FGPIO_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- FGPIO Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup FGPIO_Register_Masks FGPIO Register Masks * @{ */ /* PDOR Bit Fields */ #define FGPIO_PDOR_PDO_MASK 0xFFFFFFFFu #define FGPIO_PDOR_PDO_SHIFT 0 #define FGPIO_PDOR_PDO_WIDTH 32 #define FGPIO_PDOR_PDO(x) (((uint32_t)(((uint32_t)(x))<FSTAT) #define FTFA_FCNFG_REG(base) ((base)->FCNFG) #define FTFA_FSEC_REG(base) ((base)->FSEC) #define FTFA_FOPT_REG(base) ((base)->FOPT) #define FTFA_FCCOB3_REG(base) ((base)->FCCOB3) #define FTFA_FCCOB2_REG(base) ((base)->FCCOB2) #define FTFA_FCCOB1_REG(base) ((base)->FCCOB1) #define FTFA_FCCOB0_REG(base) ((base)->FCCOB0) #define FTFA_FCCOB7_REG(base) ((base)->FCCOB7) #define FTFA_FCCOB6_REG(base) ((base)->FCCOB6) #define FTFA_FCCOB5_REG(base) ((base)->FCCOB5) #define FTFA_FCCOB4_REG(base) ((base)->FCCOB4) #define FTFA_FCCOBB_REG(base) ((base)->FCCOBB) #define FTFA_FCCOBA_REG(base) ((base)->FCCOBA) #define FTFA_FCCOB9_REG(base) ((base)->FCCOB9) #define FTFA_FCCOB8_REG(base) ((base)->FCCOB8) #define FTFA_FPROT3_REG(base) ((base)->FPROT3) #define FTFA_FPROT2_REG(base) ((base)->FPROT2) #define FTFA_FPROT1_REG(base) ((base)->FPROT1) #define FTFA_FPROT0_REG(base) ((base)->FPROT0) #define FTFA_XACCH3_REG(base) ((base)->XACCH3) #define FTFA_XACCH2_REG(base) ((base)->XACCH2) #define FTFA_XACCH1_REG(base) ((base)->XACCH1) #define FTFA_XACCH0_REG(base) ((base)->XACCH0) #define FTFA_XACCL3_REG(base) ((base)->XACCL3) #define FTFA_XACCL2_REG(base) ((base)->XACCL2) #define FTFA_XACCL1_REG(base) ((base)->XACCL1) #define FTFA_XACCL0_REG(base) ((base)->XACCL0) #define FTFA_SACCH3_REG(base) ((base)->SACCH3) #define FTFA_SACCH2_REG(base) ((base)->SACCH2) #define FTFA_SACCH1_REG(base) ((base)->SACCH1) #define FTFA_SACCH0_REG(base) ((base)->SACCH0) #define FTFA_SACCL3_REG(base) ((base)->SACCL3) #define FTFA_SACCL2_REG(base) ((base)->SACCL2) #define FTFA_SACCL1_REG(base) ((base)->SACCL1) #define FTFA_SACCL0_REG(base) ((base)->SACCL0) #define FTFA_FACSS_REG(base) ((base)->FACSS) #define FTFA_FACSN_REG(base) ((base)->FACSN) /*! * @} */ /* end of group FTFA_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- FTFA Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup FTFA_Register_Masks FTFA Register Masks * @{ */ /* FSTAT Bit Fields */ #define FTFA_FSTAT_MGSTAT0_MASK 0x1u #define FTFA_FSTAT_MGSTAT0_SHIFT 0 #define FTFA_FSTAT_MGSTAT0_WIDTH 1 #define FTFA_FSTAT_MGSTAT0(x) (((uint8_t)(((uint8_t)(x))<PDOR) #define GPIO_PSOR_REG(base) ((base)->PSOR) #define GPIO_PCOR_REG(base) ((base)->PCOR) #define GPIO_PTOR_REG(base) ((base)->PTOR) #define GPIO_PDIR_REG(base) ((base)->PDIR) #define GPIO_PDDR_REG(base) ((base)->PDDR) /*! * @} */ /* end of group GPIO_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- GPIO Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup GPIO_Register_Masks GPIO Register Masks * @{ */ /* PDOR Bit Fields */ #define GPIO_PDOR_PDO_MASK 0xFFFFFFFFu #define GPIO_PDOR_PDO_SHIFT 0 #define GPIO_PDOR_PDO_WIDTH 32 #define GPIO_PDOR_PDO(x) (((uint32_t)(((uint32_t)(x))<A1) #define I2C_F_REG(base) ((base)->F) #define I2C_C1_REG(base) ((base)->C1) #define I2C_S_REG(base) ((base)->S) #define I2C_D_REG(base) ((base)->D) #define I2C_C2_REG(base) ((base)->C2) #define I2C_FLT_REG(base) ((base)->FLT) #define I2C_RA_REG(base) ((base)->RA) #define I2C_SMB_REG(base) ((base)->SMB) #define I2C_A2_REG(base) ((base)->A2) #define I2C_SLTH_REG(base) ((base)->SLTH) #define I2C_SLTL_REG(base) ((base)->SLTL) #define I2C_S2_REG(base) ((base)->S2) /*! * @} */ /* end of group I2C_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- I2C Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup I2C_Register_Masks I2C Register Masks * @{ */ /* A1 Bit Fields */ #define I2C_A1_AD_MASK 0xFEu #define I2C_A1_AD_SHIFT 1 #define I2C_A1_AD_WIDTH 7 #define I2C_A1_AD(x) (((uint8_t)(((uint8_t)(x))<PE1) #define LLWU_PE2_REG(base) ((base)->PE2) #define LLWU_PE3_REG(base) ((base)->PE3) #define LLWU_PE4_REG(base) ((base)->PE4) #define LLWU_ME_REG(base) ((base)->ME) #define LLWU_F1_REG(base) ((base)->F1) #define LLWU_F2_REG(base) ((base)->F2) #define LLWU_F3_REG(base) ((base)->F3) #define LLWU_FILT1_REG(base) ((base)->FILT1) #define LLWU_FILT2_REG(base) ((base)->FILT2) /*! * @} */ /* end of group LLWU_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- LLWU Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup LLWU_Register_Masks LLWU Register Masks * @{ */ /* PE1 Bit Fields */ #define LLWU_PE1_WUPE0_MASK 0x3u #define LLWU_PE1_WUPE0_SHIFT 0 #define LLWU_PE1_WUPE0_WIDTH 2 #define LLWU_PE1_WUPE0(x) (((uint8_t)(((uint8_t)(x))<CSR) #define LPTMR_PSR_REG(base) ((base)->PSR) #define LPTMR_CMR_REG(base) ((base)->CMR) #define LPTMR_CNR_REG(base) ((base)->CNR) /*! * @} */ /* end of group LPTMR_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- LPTMR Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup LPTMR_Register_Masks LPTMR Register Masks * @{ */ /* CSR Bit Fields */ #define LPTMR_CSR_TEN_MASK 0x1u #define LPTMR_CSR_TEN_SHIFT 0 #define LPTMR_CSR_TEN_WIDTH 1 #define LPTMR_CSR_TEN(x) (((uint32_t)(((uint32_t)(x))<BAUD) #define LPUART_STAT_REG(base) ((base)->STAT) #define LPUART_CTRL_REG(base) ((base)->CTRL) #define LPUART_DATA_REG(base) ((base)->DATA) #define LPUART_MATCH_REG(base) ((base)->MATCH) #define LPUART_MODIR_REG(base) ((base)->MODIR) /*! * @} */ /* end of group LPUART_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- LPUART Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup LPUART_Register_Masks LPUART Register Masks * @{ */ /* BAUD Bit Fields */ #define LPUART_BAUD_SBR_MASK 0x1FFFu #define LPUART_BAUD_SBR_SHIFT 0 #define LPUART_BAUD_SBR_WIDTH 13 #define LPUART_BAUD_SBR(x) (((uint32_t)(((uint32_t)(x))<MD) #define LTC_KS_REG(base) ((base)->KS) #define LTC_DS_REG(base) ((base)->DS) #define LTC_ICVS_REG(base) ((base)->ICVS) #define LTC_COM_REG(base) ((base)->COM) #define LTC_CTL_REG(base) ((base)->CTL) #define LTC_CW_REG(base) ((base)->CW) #define LTC_STA_REG(base) ((base)->STA) #define LTC_ESTA_REG(base) ((base)->ESTA) #define LTC_AADSZ_REG(base) ((base)->AADSZ) #define LTC_CTX_REG(base,index) ((base)->CTX[index]) #define LTC_CTX_COUNT 16 #define LTC_KEY_REG(base,index) ((base)->KEY[index]) #define LTC_KEY_COUNT 4 #define LTC_FIFOSTA_REG(base) ((base)->FIFOSTA) #define LTC_IFIFO_REG(base) ((base)->IFIFO) #define LTC_OFIFO_REG(base) ((base)->OFIFO) #define LTC_VID1_REG(base) ((base)->VID1) #define LTC_CHAVID_REG(base) ((base)->CHAVID) /*! * @} */ /* end of group LTC_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- LTC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup LTC_Register_Masks LTC Register Masks * @{ */ /* MD Bit Fields */ #define LTC_MD_ENC_MASK 0x1u #define LTC_MD_ENC_SHIFT 0 #define LTC_MD_ENC_WIDTH 1 #define LTC_MD_ENC(x) (((uint32_t)(((uint32_t)(x))<C1) #define MCG_C2_REG(base) ((base)->C2) #define MCG_C3_REG(base) ((base)->C3) #define MCG_C4_REG(base) ((base)->C4) #define MCG_C5_REG(base) ((base)->C5) #define MCG_C6_REG(base) ((base)->C6) #define MCG_S_REG(base) ((base)->S) #define MCG_SC_REG(base) ((base)->SC) #define MCG_ATCVH_REG(base) ((base)->ATCVH) #define MCG_ATCVL_REG(base) ((base)->ATCVL) #define MCG_C7_REG(base) ((base)->C7) #define MCG_C8_REG(base) ((base)->C8) /*! * @} */ /* end of group MCG_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- MCG Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup MCG_Register_Masks MCG Register Masks * @{ */ /* C1 Bit Fields */ #define MCG_C1_IREFSTEN_MASK 0x1u #define MCG_C1_IREFSTEN_SHIFT 0 #define MCG_C1_IREFSTEN_WIDTH 1 #define MCG_C1_IREFSTEN(x) (((uint8_t)(((uint8_t)(x))<PLASC) #define MCM_PLAMC_REG(base) ((base)->PLAMC) #define MCM_PLACR_REG(base) ((base)->PLACR) #define MCM_CPO_REG(base) ((base)->CPO) /*! * @} */ /* end of group MCM_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- MCM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup MCM_Register_Masks MCM Register Masks * @{ */ /* PLASC Bit Fields */ #define MCM_PLASC_ASC_MASK 0xFFu #define MCM_PLASC_ASC_SHIFT 0 #define MCM_PLASC_ASC_WIDTH 8 #define MCM_PLASC_ASC(x) (((uint16_t)(((uint16_t)(x))<POSITION) #define MTB_MASTER_REG(base) ((base)->MASTER) #define MTB_FLOW_REG(base) ((base)->FLOW) #define MTB_BASE_REG(base) ((base)->BASE) #define MTB_MODECTRL_REG(base) ((base)->MODECTRL) #define MTB_TAGSET_REG(base) ((base)->TAGSET) #define MTB_TAGCLEAR_REG(base) ((base)->TAGCLEAR) #define MTB_LOCKACCESS_REG(base) ((base)->LOCKACCESS) #define MTB_LOCKSTAT_REG(base) ((base)->LOCKSTAT) #define MTB_AUTHSTAT_REG(base) ((base)->AUTHSTAT) #define MTB_DEVICEARCH_REG(base) ((base)->DEVICEARCH) #define MTB_DEVICECFG_REG(base) ((base)->DEVICECFG) #define MTB_DEVICETYPID_REG(base) ((base)->DEVICETYPID) #define MTB_PERIPHID_REG(base,index) ((base)->PERIPHID[index]) #define MTB_PERIPHID_COUNT 8 #define MTB_COMPID_REG(base,index) ((base)->COMPID[index]) #define MTB_COMPID_COUNT 4 /*! * @} */ /* end of group MTB_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- MTB Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup MTB_Register_Masks MTB Register Masks * @{ */ /* POSITION Bit Fields */ #define MTB_POSITION_WRAP_MASK 0x4u #define MTB_POSITION_WRAP_SHIFT 2 #define MTB_POSITION_WRAP_WIDTH 1 #define MTB_POSITION_WRAP(x) (((uint32_t)(((uint32_t)(x))<CTRL) #define MTBDWT_COMP_REG(base,index) ((base)->COMPARATOR[index].COMP) #define MTBDWT_COMP_COUNT 2 #define MTBDWT_MASK_REG(base,index) ((base)->COMPARATOR[index].MASK) #define MTBDWT_MASK_COUNT 2 #define MTBDWT_FCT_REG(base,index) ((base)->COMPARATOR[index].FCT) #define MTBDWT_FCT_COUNT 2 #define MTBDWT_TBCTRL_REG(base) ((base)->TBCTRL) #define MTBDWT_DEVICECFG_REG(base) ((base)->DEVICECFG) #define MTBDWT_DEVICETYPID_REG(base) ((base)->DEVICETYPID) #define MTBDWT_PERIPHID_REG(base,index) ((base)->PERIPHID[index]) #define MTBDWT_PERIPHID_COUNT 8 #define MTBDWT_COMPID_REG(base,index) ((base)->COMPID[index]) #define MTBDWT_COMPID_COUNT 4 /*! * @} */ /* end of group MTBDWT_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- MTBDWT Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup MTBDWT_Register_Masks MTBDWT Register Masks * @{ */ /* CTRL Bit Fields */ #define MTBDWT_CTRL_DWTCFGCTRL_MASK 0xFFFFFFFu #define MTBDWT_CTRL_DWTCFGCTRL_SHIFT 0 #define MTBDWT_CTRL_DWTCFGCTRL_WIDTH 28 #define MTBDWT_CTRL_DWTCFGCTRL(x) (((uint32_t)(((uint32_t)(x))<BACKKEY3) #define NV_BACKKEY2_REG(base) ((base)->BACKKEY2) #define NV_BACKKEY1_REG(base) ((base)->BACKKEY1) #define NV_BACKKEY0_REG(base) ((base)->BACKKEY0) #define NV_BACKKEY7_REG(base) ((base)->BACKKEY7) #define NV_BACKKEY6_REG(base) ((base)->BACKKEY6) #define NV_BACKKEY5_REG(base) ((base)->BACKKEY5) #define NV_BACKKEY4_REG(base) ((base)->BACKKEY4) #define NV_FPROT3_REG(base) ((base)->FPROT3) #define NV_FPROT2_REG(base) ((base)->FPROT2) #define NV_FPROT1_REG(base) ((base)->FPROT1) #define NV_FPROT0_REG(base) ((base)->FPROT0) #define NV_FSEC_REG(base) ((base)->FSEC) #define NV_FOPT_REG(base) ((base)->FOPT) /*! * @} */ /* end of group NV_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- NV Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup NV_Register_Masks NV Register Masks * @{ */ /* BACKKEY3 Bit Fields */ #define NV_BACKKEY3_KEY_MASK 0xFFu #define NV_BACKKEY3_KEY_SHIFT 0 #define NV_BACKKEY3_KEY_WIDTH 8 #define NV_BACKKEY3_KEY(x) (((uint8_t)(((uint8_t)(x))<MCR) #define PIT_LTMR64H_REG(base) ((base)->LTMR64H) #define PIT_LTMR64L_REG(base) ((base)->LTMR64L) #define PIT_LDVAL_REG(base,index) ((base)->CHANNEL[index].LDVAL) #define PIT_LDVAL_COUNT 2 #define PIT_CVAL_REG(base,index) ((base)->CHANNEL[index].CVAL) #define PIT_CVAL_COUNT 2 #define PIT_TCTRL_REG(base,index) ((base)->CHANNEL[index].TCTRL) #define PIT_TCTRL_COUNT 2 #define PIT_TFLG_REG(base,index) ((base)->CHANNEL[index].TFLG) #define PIT_TFLG_COUNT 2 /*! * @} */ /* end of group PIT_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- PIT Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup PIT_Register_Masks PIT Register Masks * @{ */ /* MCR Bit Fields */ #define PIT_MCR_FRZ_MASK 0x1u #define PIT_MCR_FRZ_SHIFT 0 #define PIT_MCR_FRZ_WIDTH 1 #define PIT_MCR_FRZ(x) (((uint32_t)(((uint32_t)(x))<LVDSC1) #define PMC_LVDSC2_REG(base) ((base)->LVDSC2) #define PMC_REGSC_REG(base) ((base)->REGSC) /*! * @} */ /* end of group PMC_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- PMC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup PMC_Register_Masks PMC Register Masks * @{ */ /* LVDSC1 Bit Fields */ #define PMC_LVDSC1_LVDV_MASK 0x3u #define PMC_LVDSC1_LVDV_SHIFT 0 #define PMC_LVDSC1_LVDV_WIDTH 2 #define PMC_LVDSC1_LVDV(x) (((uint8_t)(((uint8_t)(x))<PCR[index]) #define PORT_PCR_COUNT 32 #define PORT_GPCLR_REG(base) ((base)->GPCLR) #define PORT_GPCHR_REG(base) ((base)->GPCHR) #define PORT_ISFR_REG(base) ((base)->ISFR) /*! * @} */ /* end of group PORT_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- PORT Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup PORT_Register_Masks PORT Register Masks * @{ */ /* PCR Bit Fields */ #define PORT_PCR_PS_MASK 0x1u #define PORT_PCR_PS_SHIFT 0 #define PORT_PCR_PS_WIDTH 1 #define PORT_PCR_PS(x) (((uint32_t)(((uint32_t)(x))<SRS0) #define RCM_SRS1_REG(base) ((base)->SRS1) #define RCM_RPFC_REG(base) ((base)->RPFC) #define RCM_RPFW_REG(base) ((base)->RPFW) /*! * @} */ /* end of group RCM_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- RCM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup RCM_Register_Masks RCM Register Masks * @{ */ /* SRS0 Bit Fields */ #define RCM_SRS0_WAKEUP_MASK 0x1u #define RCM_SRS0_WAKEUP_SHIFT 0 #define RCM_SRS0_WAKEUP_WIDTH 1 #define RCM_SRS0_WAKEUP(x) (((uint8_t)(((uint8_t)(x))<ENTRY[index]) #define ROM_ENTRY_COUNT 3 #define ROM_TABLEMARK_REG(base) ((base)->TABLEMARK) #define ROM_SYSACCESS_REG(base) ((base)->SYSACCESS) #define ROM_PERIPHID4_REG(base) ((base)->PERIPHID4) #define ROM_PERIPHID5_REG(base) ((base)->PERIPHID5) #define ROM_PERIPHID6_REG(base) ((base)->PERIPHID6) #define ROM_PERIPHID7_REG(base) ((base)->PERIPHID7) #define ROM_PERIPHID0_REG(base) ((base)->PERIPHID0) #define ROM_PERIPHID1_REG(base) ((base)->PERIPHID1) #define ROM_PERIPHID2_REG(base) ((base)->PERIPHID2) #define ROM_PERIPHID3_REG(base) ((base)->PERIPHID3) #define ROM_COMPID_REG(base,index) ((base)->COMPID[index]) #define ROM_COMPID_COUNT 4 /*! * @} */ /* end of group ROM_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- ROM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup ROM_Register_Masks ROM Register Masks * @{ */ /* ENTRY Bit Fields */ #define ROM_ENTRY_ENTRY_MASK 0xFFFFFFFFu #define ROM_ENTRY_ENTRY_SHIFT 0 #define ROM_ENTRY_ENTRY_WIDTH 32 #define ROM_ENTRY_ENTRY(x) (((uint32_t)(((uint32_t)(x))<CONTROL) #define RSIM_ACTIVE_DELAY_REG(base) ((base)->ACTIVE_DELAY) #define RSIM_MAC_MSB_REG(base) ((base)->MAC_MSB) #define RSIM_MAC_LSB_REG(base) ((base)->MAC_LSB) #define RSIM_ANA_TEST_REG(base) ((base)->ANA_TEST) /*! * @} */ /* end of group RSIM_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- RSIM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup RSIM_Register_Masks RSIM Register Masks * @{ */ /* CONTROL Bit Fields */ #define RSIM_CONTROL_BLE_RF_OSC_REQ_EN_MASK 0x1u #define RSIM_CONTROL_BLE_RF_OSC_REQ_EN_SHIFT 0 #define RSIM_CONTROL_BLE_RF_OSC_REQ_EN_WIDTH 1 #define RSIM_CONTROL_BLE_RF_OSC_REQ_EN(x) (((uint32_t)(((uint32_t)(x))<TSR) #define RTC_TPR_REG(base) ((base)->TPR) #define RTC_TAR_REG(base) ((base)->TAR) #define RTC_TCR_REG(base) ((base)->TCR) #define RTC_CR_REG(base) ((base)->CR) #define RTC_SR_REG(base) ((base)->SR) #define RTC_LR_REG(base) ((base)->LR) #define RTC_IER_REG(base) ((base)->IER) /*! * @} */ /* end of group RTC_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- RTC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup RTC_Register_Masks RTC Register Masks * @{ */ /* TSR Bit Fields */ #define RTC_TSR_TSR_MASK 0xFFFFFFFFu #define RTC_TSR_TSR_SHIFT 0 #define RTC_TSR_TSR_WIDTH 32 #define RTC_TSR_TSR(x) (((uint32_t)(((uint32_t)(x))<SOPT1) #define SIM_SOPT2_REG(base) ((base)->SOPT2) #define SIM_SOPT4_REG(base) ((base)->SOPT4) #define SIM_SOPT5_REG(base) ((base)->SOPT5) #define SIM_SOPT7_REG(base) ((base)->SOPT7) #define SIM_SDID_REG(base) ((base)->SDID) #define SIM_SCGC4_REG(base) ((base)->SCGC4) #define SIM_SCGC5_REG(base) ((base)->SCGC5) #define SIM_SCGC6_REG(base) ((base)->SCGC6) #define SIM_SCGC7_REG(base) ((base)->SCGC7) #define SIM_CLKDIV1_REG(base) ((base)->CLKDIV1) #define SIM_FCFG1_REG(base) ((base)->FCFG1) #define SIM_FCFG2_REG(base) ((base)->FCFG2) #define SIM_UIDMH_REG(base) ((base)->UIDMH) #define SIM_UIDML_REG(base) ((base)->UIDML) #define SIM_UIDL_REG(base) ((base)->UIDL) #define SIM_COPC_REG(base) ((base)->COPC) #define SIM_SRVCOP_REG(base) ((base)->SRVCOP) /*! * @} */ /* end of group SIM_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- SIM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup SIM_Register_Masks SIM Register Masks * @{ */ /* SOPT1 Bit Fields */ #define SIM_SOPT1_OSC32KOUT_MASK 0x30000u #define SIM_SOPT1_OSC32KOUT_SHIFT 16 #define SIM_SOPT1_OSC32KOUT_WIDTH 2 #define SIM_SOPT1_OSC32KOUT(x) (((uint32_t)(((uint32_t)(x))<PMPROT) #define SMC_PMCTRL_REG(base) ((base)->PMCTRL) #define SMC_STOPCTRL_REG(base) ((base)->STOPCTRL) #define SMC_PMSTAT_REG(base) ((base)->PMSTAT) /*! * @} */ /* end of group SMC_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- SMC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup SMC_Register_Masks SMC Register Masks * @{ */ /* PMPROT Bit Fields */ #define SMC_PMPROT_AVLLS_MASK 0x2u #define SMC_PMPROT_AVLLS_SHIFT 1 #define SMC_PMPROT_AVLLS_WIDTH 1 #define SMC_PMPROT_AVLLS(x) (((uint8_t)(((uint8_t)(x))<MCR) #define SPI_TCR_REG(base) ((base)->TCR) #define SPI_CTAR_REG(base,index2) ((base)->CTAR[index2]) #define SPI_CTAR_COUNT 2 #define SPI_CTAR_SLAVE_REG(base,index2) ((base)->CTAR_SLAVE[index2]) #define SPI_CTAR_SLAVE_COUNT 1 #define SPI_SR_REG(base) ((base)->SR) #define SPI_RSER_REG(base) ((base)->RSER) #define SPI_PUSHR_REG(base) ((base)->PUSHR) #define SPI_PUSHR_SLAVE_REG(base) ((base)->PUSHR_SLAVE) #define SPI_POPR_REG(base) ((base)->POPR) #define SPI_TXFR0_REG(base) ((base)->TXFR0) #define SPI_TXFR1_REG(base) ((base)->TXFR1) #define SPI_TXFR2_REG(base) ((base)->TXFR2) #define SPI_TXFR3_REG(base) ((base)->TXFR3) #define SPI_RXFR0_REG(base) ((base)->RXFR0) #define SPI_RXFR1_REG(base) ((base)->RXFR1) #define SPI_RXFR2_REG(base) ((base)->RXFR2) #define SPI_RXFR3_REG(base) ((base)->RXFR3) /*! * @} */ /* end of group SPI_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- SPI Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup SPI_Register_Masks SPI Register Masks * @{ */ /* MCR Bit Fields */ #define SPI_MCR_HALT_MASK 0x1u #define SPI_MCR_HALT_SHIFT 0 #define SPI_MCR_HALT_WIDTH 1 #define SPI_MCR_HALT(x) (((uint32_t)(((uint32_t)(x))<SC) #define TPM_CNT_REG(base) ((base)->CNT) #define TPM_MOD_REG(base) ((base)->MOD) #define TPM_CnSC_REG(base,index) ((base)->CONTROLS[index].CnSC) #define TPM_CnSC_COUNT 4 #define TPM_CnV_REG(base,index) ((base)->CONTROLS[index].CnV) #define TPM_CnV_COUNT 4 #define TPM_STATUS_REG(base) ((base)->STATUS) #define TPM_COMBINE_REG(base) ((base)->COMBINE) #define TPM_FILTER_REG(base) ((base)->FILTER) #define TPM_QDCTRL_REG(base) ((base)->QDCTRL) #define TPM_CONF_REG(base) ((base)->CONF) /*! * @} */ /* end of group TPM_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- TPM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup TPM_Register_Masks TPM Register Masks * @{ */ /* SC Bit Fields */ #define TPM_SC_PS_MASK 0x7u #define TPM_SC_PS_SHIFT 0 #define TPM_SC_PS_WIDTH 3 #define TPM_SC_PS(x) (((uint32_t)(((uint32_t)(x))<MCTL) #define TRNG_SCMISC_REG(base) ((base)->SCMISC) #define TRNG_PKRRNG_REG(base) ((base)->PKRRNG) #define TRNG_PKRMAX_REG(base) ((base)->PKRMAX) #define TRNG_PKRSQ_REG(base) ((base)->PKRSQ) #define TRNG_SDCTL_REG(base) ((base)->SDCTL) #define TRNG_SBLIM_REG(base) ((base)->SBLIM) #define TRNG_TOTSAM_REG(base) ((base)->TOTSAM) #define TRNG_FRQMIN_REG(base) ((base)->FRQMIN) #define TRNG_FRQCNT_REG(base) ((base)->FRQCNT) #define TRNG_FRQMAX_REG(base) ((base)->FRQMAX) #define TRNG_SCMC_REG(base) ((base)->SCMC) #define TRNG_SCML_REG(base) ((base)->SCML) #define TRNG_SCR1C_REG(base) ((base)->SCR1C) #define TRNG_SCR1L_REG(base) ((base)->SCR1L) #define TRNG_SCR2C_REG(base) ((base)->SCR2C) #define TRNG_SCR2L_REG(base) ((base)->SCR2L) #define TRNG_SCR3C_REG(base) ((base)->SCR3C) #define TRNG_SCR3L_REG(base) ((base)->SCR3L) #define TRNG_SCR4C_REG(base) ((base)->SCR4C) #define TRNG_SCR4L_REG(base) ((base)->SCR4L) #define TRNG_SCR5C_REG(base) ((base)->SCR5C) #define TRNG_SCR5L_REG(base) ((base)->SCR5L) #define TRNG_SCR6PC_REG(base) ((base)->SCR6PC) #define TRNG_SCR6PL_REG(base) ((base)->SCR6PL) #define TRNG_STATUS_REG(base) ((base)->STATUS) #define TRNG_ENT_REG(base,index) ((base)->ENT[index]) #define TRNG_ENT_COUNT 16 #define TRNG_PKRCNT10_REG(base) ((base)->PKRCNT10) #define TRNG_PKRCNT32_REG(base) ((base)->PKRCNT32) #define TRNG_PKRCNT54_REG(base) ((base)->PKRCNT54) #define TRNG_PKRCNT76_REG(base) ((base)->PKRCNT76) #define TRNG_PKRCNT98_REG(base) ((base)->PKRCNT98) #define TRNG_PKRCNTBA_REG(base) ((base)->PKRCNTBA) #define TRNG_PKRCNTDC_REG(base) ((base)->PKRCNTDC) #define TRNG_PKRCNTFE_REG(base) ((base)->PKRCNTFE) #define TRNG_SEC_CFG_REG(base) ((base)->SEC_CFG) #define TRNG_INT_CTRL_REG(base) ((base)->INT_CTRL) #define TRNG_INT_MASK_REG(base) ((base)->INT_MASK) #define TRNG_INT_STATUS_REG(base) ((base)->INT_STATUS) #define TRNG_VID1_REG(base) ((base)->VID1) #define TRNG_VID2_REG(base) ((base)->VID2) /*! * @} */ /* end of group TRNG_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- TRNG Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup TRNG_Register_Masks TRNG Register Masks * @{ */ /* MCTL Bit Fields */ #define TRNG_MCTL_SAMP_MODE_MASK 0x3u #define TRNG_MCTL_SAMP_MODE_SHIFT 0 #define TRNG_MCTL_SAMP_MODE_WIDTH 2 #define TRNG_MCTL_SAMP_MODE(x) (((uint32_t)(((uint32_t)(x))<GENCS) #define TSI_DATA_REG(base) ((base)->DATA) #define TSI_TSHD_REG(base) ((base)->TSHD) /*! * @} */ /* end of group TSI_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- TSI Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup TSI_Register_Masks TSI Register Masks * @{ */ /* GENCS Bit Fields */ #define TSI_GENCS_CURSW_MASK 0x2u #define TSI_GENCS_CURSW_SHIFT 1 #define TSI_GENCS_CURSW_WIDTH 1 #define TSI_GENCS_CURSW(x) (((uint32_t)(((uint32_t)(x))<RX_DIG_CTRL) #define XCVR_AGC_CTRL_0_REG(base) ((base)->AGC_CTRL_0) #define XCVR_AGC_CTRL_1_REG(base) ((base)->AGC_CTRL_1) #define XCVR_AGC_CTRL_2_REG(base) ((base)->AGC_CTRL_2) #define XCVR_AGC_CTRL_3_REG(base) ((base)->AGC_CTRL_3) #define XCVR_AGC_STAT_REG(base) ((base)->AGC_STAT) #define XCVR_RSSI_CTRL_0_REG(base) ((base)->RSSI_CTRL_0) #define XCVR_RSSI_CTRL_1_REG(base) ((base)->RSSI_CTRL_1) #define XCVR_DCOC_CTRL_0_REG(base) ((base)->DCOC_CTRL_0) #define XCVR_DCOC_CTRL_1_REG(base) ((base)->DCOC_CTRL_1) #define XCVR_DCOC_CTRL_2_REG(base) ((base)->DCOC_CTRL_2) #define XCVR_DCOC_CTRL_3_REG(base) ((base)->DCOC_CTRL_3) #define XCVR_DCOC_CTRL_4_REG(base) ((base)->DCOC_CTRL_4) #define XCVR_DCOC_CAL_GAIN_REG(base) ((base)->DCOC_CAL_GAIN) #define XCVR_DCOC_STAT_REG(base) ((base)->DCOC_STAT) #define XCVR_DCOC_DC_EST_REG(base) ((base)->DCOC_DC_EST) #define XCVR_DCOC_CAL_RCP_REG(base) ((base)->DCOC_CAL_RCP) #define XCVR_IQMC_CTRL_REG(base) ((base)->IQMC_CTRL) #define XCVR_IQMC_CAL_REG(base) ((base)->IQMC_CAL) #define XCVR_TCA_AGC_VAL_3_0_REG(base) ((base)->TCA_AGC_VAL_3_0) #define XCVR_TCA_AGC_VAL_7_4_REG(base) ((base)->TCA_AGC_VAL_7_4) #define XCVR_TCA_AGC_VAL_8_REG(base) ((base)->TCA_AGC_VAL_8) #define XCVR_BBF_RES_TUNE_VAL_7_0_REG(base) ((base)->BBF_RES_TUNE_VAL_7_0) #define XCVR_BBF_RES_TUNE_VAL_10_8_REG(base) ((base)->BBF_RES_TUNE_VAL_10_8) #define XCVR_TCA_AGC_LIN_VAL_2_0_REG(base) ((base)->TCA_AGC_LIN_VAL_2_0) #define XCVR_TCA_AGC_LIN_VAL_5_3_REG(base) ((base)->TCA_AGC_LIN_VAL_5_3) #define XCVR_TCA_AGC_LIN_VAL_8_6_REG(base) ((base)->TCA_AGC_LIN_VAL_8_6) #define XCVR_BBF_RES_TUNE_LIN_VAL_3_0_REG(base) ((base)->BBF_RES_TUNE_LIN_VAL_3_0) #define XCVR_BBF_RES_TUNE_LIN_VAL_7_4_REG(base) ((base)->BBF_RES_TUNE_LIN_VAL_7_4) #define XCVR_BBF_RES_TUNE_LIN_VAL_10_8_REG(base) ((base)->BBF_RES_TUNE_LIN_VAL_10_8) #define XCVR_AGC_GAIN_TBL_03_00_REG(base) ((base)->AGC_GAIN_TBL_03_00) #define XCVR_AGC_GAIN_TBL_07_04_REG(base) ((base)->AGC_GAIN_TBL_07_04) #define XCVR_AGC_GAIN_TBL_11_08_REG(base) ((base)->AGC_GAIN_TBL_11_08) #define XCVR_AGC_GAIN_TBL_15_12_REG(base) ((base)->AGC_GAIN_TBL_15_12) #define XCVR_AGC_GAIN_TBL_19_16_REG(base) ((base)->AGC_GAIN_TBL_19_16) #define XCVR_AGC_GAIN_TBL_23_20_REG(base) ((base)->AGC_GAIN_TBL_23_20) #define XCVR_AGC_GAIN_TBL_26_24_REG(base) ((base)->AGC_GAIN_TBL_26_24) #define XCVR_DCOC_OFFSET__REG(base,index) ((base)->DCOC_OFFSET_[index]) #define XCVR_DCOC_OFFSET__COUNT 27 #define XCVR_DCOC_TZA_STEP__REG(base,index) ((base)->DCOC_TZA_STEP_[index]) #define XCVR_DCOC_TZA_STEP__COUNT 11 #define XCVR_DCOC_CAL_ALPHA_REG(base) ((base)->DCOC_CAL_ALPHA) #define XCVR_DCOC_CAL_BETA_REG(base) ((base)->DCOC_CAL_BETA) #define XCVR_DCOC_CAL_GAMMA_REG(base) ((base)->DCOC_CAL_GAMMA) #define XCVR_DCOC_CAL_IIR_REG(base) ((base)->DCOC_CAL_IIR) #define XCVR_DCOC_CAL_REG(base,index) ((base)->DCOC_CAL[index]) #define XCVR_DCOC_CAL_COUNT 3 #define XCVR_RX_CHF_COEF_REG(base,index) ((base)->RX_CHF_COEF[index]) #define XCVR_RX_CHF_COEF_COUNT 8 #define XCVR_TX_DIG_CTRL_REG(base) ((base)->TX_DIG_CTRL) #define XCVR_TX_DATA_PAD_PAT_REG(base) ((base)->TX_DATA_PAD_PAT) #define XCVR_TX_GFSK_MOD_CTRL_REG(base) ((base)->TX_GFSK_MOD_CTRL) #define XCVR_TX_GFSK_COEFF2_REG(base) ((base)->TX_GFSK_COEFF2) #define XCVR_TX_GFSK_COEFF1_REG(base) ((base)->TX_GFSK_COEFF1) #define XCVR_TX_FSK_MOD_SCALE_REG(base) ((base)->TX_FSK_MOD_SCALE) #define XCVR_TX_DFT_MOD_PAT_REG(base) ((base)->TX_DFT_MOD_PAT) #define XCVR_TX_DFT_TONE_0_1_REG(base) ((base)->TX_DFT_TONE_0_1) #define XCVR_TX_DFT_TONE_2_3_REG(base) ((base)->TX_DFT_TONE_2_3) #define XCVR_PLL_MOD_OVRD_REG(base) ((base)->PLL_MOD_OVRD) #define XCVR_PLL_CHAN_MAP_REG(base) ((base)->PLL_CHAN_MAP) #define XCVR_PLL_LOCK_DETECT_REG(base) ((base)->PLL_LOCK_DETECT) #define XCVR_PLL_HP_MOD_CTRL_REG(base) ((base)->PLL_HP_MOD_CTRL) #define XCVR_PLL_HPM_CAL_CTRL_REG(base) ((base)->PLL_HPM_CAL_CTRL) #define XCVR_PLL_LD_HPM_CAL1_REG(base) ((base)->PLL_LD_HPM_CAL1) #define XCVR_PLL_LD_HPM_CAL2_REG(base) ((base)->PLL_LD_HPM_CAL2) #define XCVR_PLL_HPM_SDM_FRACTION_REG(base) ((base)->PLL_HPM_SDM_FRACTION) #define XCVR_PLL_LP_MOD_CTRL_REG(base) ((base)->PLL_LP_MOD_CTRL) #define XCVR_PLL_LP_SDM_CTRL1_REG(base) ((base)->PLL_LP_SDM_CTRL1) #define XCVR_PLL_LP_SDM_CTRL2_REG(base) ((base)->PLL_LP_SDM_CTRL2) #define XCVR_PLL_LP_SDM_CTRL3_REG(base) ((base)->PLL_LP_SDM_CTRL3) #define XCVR_PLL_LP_SDM_NUM_REG(base) ((base)->PLL_LP_SDM_NUM) #define XCVR_PLL_LP_SDM_DENOM_REG(base) ((base)->PLL_LP_SDM_DENOM) #define XCVR_PLL_DELAY_MATCH_REG(base) ((base)->PLL_DELAY_MATCH) #define XCVR_PLL_CTUNE_CTRL_REG(base) ((base)->PLL_CTUNE_CTRL) #define XCVR_PLL_CTUNE_CNT6_REG(base) ((base)->PLL_CTUNE_CNT6) #define XCVR_PLL_CTUNE_CNT5_4_REG(base) ((base)->PLL_CTUNE_CNT5_4) #define XCVR_PLL_CTUNE_CNT3_2_REG(base) ((base)->PLL_CTUNE_CNT3_2) #define XCVR_PLL_CTUNE_CNT1_0_REG(base) ((base)->PLL_CTUNE_CNT1_0) #define XCVR_PLL_CTUNE_RESULTS_REG(base) ((base)->PLL_CTUNE_RESULTS) #define XCVR_CTRL_REG(base) ((base)->CTRL) #define XCVR_STATUS_REG(base) ((base)->STATUS) #define XCVR_SOFT_RESET_REG(base) ((base)->SOFT_RESET) #define XCVR_OVERWRITE_VER_REG(base) ((base)->OVERWRITE_VER) #define XCVR_DMA_CTRL_REG(base) ((base)->DMA_CTRL) #define XCVR_DMA_DATA_REG(base) ((base)->DMA_DATA) #define XCVR_DTEST_CTRL_REG(base) ((base)->DTEST_CTRL) #define XCVR_PB_CTRL_REG(base) ((base)->PB_CTRL) #define XCVR_TSM_CTRL_REG(base) ((base)->TSM_CTRL) #define XCVR_END_OF_SEQ_REG(base) ((base)->END_OF_SEQ) #define XCVR_TSM_OVRD0_REG(base) ((base)->TSM_OVRD0) #define XCVR_TSM_OVRD1_REG(base) ((base)->TSM_OVRD1) #define XCVR_TSM_OVRD2_REG(base) ((base)->TSM_OVRD2) #define XCVR_TSM_OVRD3_REG(base) ((base)->TSM_OVRD3) #define XCVR_PA_POWER_REG(base) ((base)->PA_POWER) #define XCVR_PA_BIAS_TBL0_REG(base) ((base)->PA_BIAS_TBL0) #define XCVR_PA_BIAS_TBL1_REG(base) ((base)->PA_BIAS_TBL1) #define XCVR_RECYCLE_COUNT_REG(base) ((base)->RECYCLE_COUNT) #define XCVR_TSM_TIMING00_REG(base) ((base)->TSM_TIMING00) #define XCVR_TSM_TIMING01_REG(base) ((base)->TSM_TIMING01) #define XCVR_TSM_TIMING02_REG(base) ((base)->TSM_TIMING02) #define XCVR_TSM_TIMING03_REG(base) ((base)->TSM_TIMING03) #define XCVR_TSM_TIMING04_REG(base) ((base)->TSM_TIMING04) #define XCVR_TSM_TIMING05_REG(base) ((base)->TSM_TIMING05) #define XCVR_TSM_TIMING06_REG(base) ((base)->TSM_TIMING06) #define XCVR_TSM_TIMING07_REG(base) ((base)->TSM_TIMING07) #define XCVR_TSM_TIMING08_REG(base) ((base)->TSM_TIMING08) #define XCVR_TSM_TIMING09_REG(base) ((base)->TSM_TIMING09) #define XCVR_TSM_TIMING10_REG(base) ((base)->TSM_TIMING10) #define XCVR_TSM_TIMING11_REG(base) ((base)->TSM_TIMING11) #define XCVR_TSM_TIMING12_REG(base) ((base)->TSM_TIMING12) #define XCVR_TSM_TIMING13_REG(base) ((base)->TSM_TIMING13) #define XCVR_TSM_TIMING14_REG(base) ((base)->TSM_TIMING14) #define XCVR_TSM_TIMING15_REG(base) ((base)->TSM_TIMING15) #define XCVR_TSM_TIMING16_REG(base) ((base)->TSM_TIMING16) #define XCVR_TSM_TIMING17_REG(base) ((base)->TSM_TIMING17) #define XCVR_TSM_TIMING18_REG(base) ((base)->TSM_TIMING18) #define XCVR_TSM_TIMING19_REG(base) ((base)->TSM_TIMING19) #define XCVR_TSM_TIMING20_REG(base) ((base)->TSM_TIMING20) #define XCVR_TSM_TIMING21_REG(base) ((base)->TSM_TIMING21) #define XCVR_TSM_TIMING22_REG(base) ((base)->TSM_TIMING22) #define XCVR_TSM_TIMING23_REG(base) ((base)->TSM_TIMING23) #define XCVR_TSM_TIMING24_REG(base) ((base)->TSM_TIMING24) #define XCVR_TSM_TIMING25_REG(base) ((base)->TSM_TIMING25) #define XCVR_TSM_TIMING26_REG(base) ((base)->TSM_TIMING26) #define XCVR_TSM_TIMING27_REG(base) ((base)->TSM_TIMING27) #define XCVR_TSM_TIMING28_REG(base) ((base)->TSM_TIMING28) #define XCVR_TSM_TIMING29_REG(base) ((base)->TSM_TIMING29) #define XCVR_TSM_TIMING30_REG(base) ((base)->TSM_TIMING30) #define XCVR_TSM_TIMING31_REG(base) ((base)->TSM_TIMING31) #define XCVR_TSM_TIMING32_REG(base) ((base)->TSM_TIMING32) #define XCVR_TSM_TIMING33_REG(base) ((base)->TSM_TIMING33) #define XCVR_TSM_TIMING34_REG(base) ((base)->TSM_TIMING34) #define XCVR_TSM_TIMING35_REG(base) ((base)->TSM_TIMING35) #define XCVR_TSM_TIMING36_REG(base) ((base)->TSM_TIMING36) #define XCVR_TSM_TIMING37_REG(base) ((base)->TSM_TIMING37) #define XCVR_TSM_TIMING38_REG(base) ((base)->TSM_TIMING38) #define XCVR_TSM_TIMING39_REG(base) ((base)->TSM_TIMING39) #define XCVR_TSM_TIMING40_REG(base) ((base)->TSM_TIMING40) #define XCVR_TSM_TIMING41_REG(base) ((base)->TSM_TIMING41) #define XCVR_TSM_TIMING42_REG(base) ((base)->TSM_TIMING42) #define XCVR_TSM_TIMING43_REG(base) ((base)->TSM_TIMING43) #define XCVR_CORR_CTRL_REG(base) ((base)->CORR_CTRL) #define XCVR_PN_TYPE_REG(base) ((base)->PN_TYPE) #define XCVR_PN_CODE_REG(base) ((base)->PN_CODE) #define XCVR_SYNC_CTRL_REG(base) ((base)->SYNC_CTRL) #define XCVR_SNF_THR_REG(base) ((base)->SNF_THR) #define XCVR_FAD_THR_REG(base) ((base)->FAD_THR) #define XCVR_ZBDEM_AFC_REG(base) ((base)->ZBDEM_AFC) #define XCVR_LPPS_CTRL_REG(base) ((base)->LPPS_CTRL) #define XCVR_ADC_CTRL_REG(base) ((base)->ADC_CTRL) #define XCVR_ADC_TUNE_REG(base) ((base)->ADC_TUNE) #define XCVR_ADC_ADJ_REG(base) ((base)->ADC_ADJ) #define XCVR_ADC_REGS_REG(base) ((base)->ADC_REGS) #define XCVR_ADC_TRIMS_REG(base) ((base)->ADC_TRIMS) #define XCVR_ADC_TEST_CTRL_REG(base) ((base)->ADC_TEST_CTRL) #define XCVR_BBF_CTRL_REG(base) ((base)->BBF_CTRL) #define XCVR_RX_ANA_CTRL_REG(base) ((base)->RX_ANA_CTRL) #define XCVR_XTAL_CTRL_REG(base) ((base)->XTAL_CTRL) #define XCVR_XTAL_CTRL2_REG(base) ((base)->XTAL_CTRL2) #define XCVR_BGAP_CTRL_REG(base) ((base)->BGAP_CTRL) #define XCVR_PLL_CTRL_REG(base) ((base)->PLL_CTRL) #define XCVR_PLL_CTRL2_REG(base) ((base)->PLL_CTRL2) #define XCVR_PLL_TEST_CTRL_REG(base) ((base)->PLL_TEST_CTRL) #define XCVR_QGEN_CTRL_REG(base) ((base)->QGEN_CTRL) #define XCVR_TCA_CTRL_REG(base) ((base)->TCA_CTRL) #define XCVR_TZA_CTRL_REG(base) ((base)->TZA_CTRL) #define XCVR_TX_ANA_CTRL_REG(base) ((base)->TX_ANA_CTRL) #define XCVR_ANA_SPARE_REG(base) ((base)->ANA_SPARE) /*! * @} */ /* end of group XCVR_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- XCVR Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup XCVR_Register_Masks XCVR Register Masks * @{ */ /* RX_DIG_CTRL Bit Fields */ #define XCVR_RX_DIG_CTRL_RX_ADC_NEGEDGE_MASK 0x1u #define XCVR_RX_DIG_CTRL_RX_ADC_NEGEDGE_SHIFT 0 #define XCVR_RX_DIG_CTRL_RX_ADC_NEGEDGE_WIDTH 1 #define XCVR_RX_DIG_CTRL_RX_ADC_NEGEDGE(x) (((uint32_t)(((uint32_t)(x))<IRQSTS) #define ZLL_PHY_CTRL_REG(base) ((base)->PHY_CTRL) #define ZLL_EVENT_TMR_REG(base) ((base)->EVENT_TMR) #define ZLL_TIMESTAMP_REG(base) ((base)->TIMESTAMP) #define ZLL_T1CMP_REG(base) ((base)->T1CMP) #define ZLL_T2CMP_REG(base) ((base)->T2CMP) #define ZLL_T2PRIMECMP_REG(base) ((base)->T2PRIMECMP) #define ZLL_T3CMP_REG(base) ((base)->T3CMP) #define ZLL_T4CMP_REG(base) ((base)->T4CMP) #define ZLL_PA_PWR_REG(base) ((base)->PA_PWR) #define ZLL_CHANNEL_NUM0_REG(base) ((base)->CHANNEL_NUM0) #define ZLL_LQI_AND_RSSI_REG(base) ((base)->LQI_AND_RSSI) #define ZLL_MACSHORTADDRS0_REG(base) ((base)->MACSHORTADDRS0) #define ZLL_MACLONGADDRS0_LSB_REG(base) ((base)->MACLONGADDRS0_LSB) #define ZLL_MACLONGADDRS0_MSB_REG(base) ((base)->MACLONGADDRS0_MSB) #define ZLL_RX_FRAME_FILTER_REG(base) ((base)->RX_FRAME_FILTER) #define ZLL_CCA_LQI_CTRL_REG(base) ((base)->CCA_LQI_CTRL) #define ZLL_CCA2_CTRL_REG(base) ((base)->CCA2_CTRL) #define ZLL_FAD_CTRL_REG(base) ((base)->FAD_CTRL) #define ZLL_SNF_CTRL_REG(base) ((base)->SNF_CTRL) #define ZLL_BSM_CTRL_REG(base) ((base)->BSM_CTRL) #define ZLL_MACSHORTADDRS1_REG(base) ((base)->MACSHORTADDRS1) #define ZLL_MACLONGADDRS1_LSB_REG(base) ((base)->MACLONGADDRS1_LSB) #define ZLL_MACLONGADDRS1_MSB_REG(base) ((base)->MACLONGADDRS1_MSB) #define ZLL_DUAL_PAN_CTRL_REG(base) ((base)->DUAL_PAN_CTRL) #define ZLL_CHANNEL_NUM1_REG(base) ((base)->CHANNEL_NUM1) #define ZLL_SAM_CTRL_REG(base) ((base)->SAM_CTRL) #define ZLL_SAM_TABLE_REG(base) ((base)->SAM_TABLE) #define ZLL_SAM_MATCH_REG(base) ((base)->SAM_MATCH) #define ZLL_SAM_FREE_IDX_REG(base) ((base)->SAM_FREE_IDX) #define ZLL_SEQ_CTRL_STS_REG(base) ((base)->SEQ_CTRL_STS) #define ZLL_ACKDELAY_REG(base) ((base)->ACKDELAY) #define ZLL_FILTERFAIL_CODE_REG(base) ((base)->FILTERFAIL_CODE) #define ZLL_RX_WTR_MARK_REG(base) ((base)->RX_WTR_MARK) #define ZLL_SLOT_PRELOAD_REG(base) ((base)->SLOT_PRELOAD) #define ZLL_SEQ_STATE_REG(base) ((base)->SEQ_STATE) #define ZLL_TMR_PRESCALE_REG(base) ((base)->TMR_PRESCALE) #define ZLL_LENIENCY_LSB_REG(base) ((base)->LENIENCY_LSB) #define ZLL_LENIENCY_MSB_REG(base) ((base)->LENIENCY_MSB) #define ZLL_PART_ID_REG(base) ((base)->PART_ID) #define ZLL_PKT_BUFFER_REG(base,index) ((base)->PKT_BUFFER[index]) #define ZLL_PKT_BUFFER_COUNT 32 /*! * @} */ /* end of group ZLL_Register_Accessor_Macros */ /* ---------------------------------------------------------------------------- -- ZLL Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup ZLL_Register_Masks ZLL Register Masks * @{ */ /* IRQSTS Bit Fields */ #define ZLL_IRQSTS_SEQIRQ_MASK 0x1u #define ZLL_IRQSTS_SEQIRQ_SHIFT 0 #define ZLL_IRQSTS_SEQIRQ_WIDTH 1 #define ZLL_IRQSTS_SEQIRQ(x) (((uint32_t)(((uint32_t)(x))<