/** * @file crc_regs.h * @brief Registers, Bit Masks and Bit Positions for the CRC Peripheral Module. * @note This file is @generated. * @ingroup crc_registers */ /****************************************************************************** * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), * Copyright (C) 2023-2024 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ #ifndef LIBRARIES_CMSIS_DEVICE_MAXIM_MAX78002_INCLUDE_CRC_REGS_H_ #define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX78002_INCLUDE_CRC_REGS_H_ /* **** Includes **** */ #include #ifdef __cplusplus extern "C" { #endif #if defined (__ICCARM__) #pragma system_include #endif #if defined (__CC_ARM) #pragma anon_unions #endif /// @cond /* If types are not defined elsewhere (CMSIS) define them here */ #ifndef __IO #define __IO volatile #endif #ifndef __I #define __I volatile const #endif #ifndef __O #define __O volatile #endif #ifndef __R #define __R volatile const #endif /// @endcond /* **** Definitions **** */ /** * @ingroup crc * @defgroup crc_registers CRC_Registers * @brief Registers, Bit Masks and Bit Positions for the CRC Peripheral Module. * @details CRC Registers. */ /** * @ingroup crc_registers * Structure type to access the CRC Registers. */ typedef struct { __IO uint32_t ctrl; /**< \b 0x0000: CRC CTRL Register */ union { __IO uint32_t datain32; /**< \b 0x0004: CRC DATAIN32 Register */ __IO uint16_t datain16[2]; /**< \b 0x0004: CRC DATAIN16 Register */ __IO uint8_t datain8[4]; /**< \b 0x0004: CRC DATAIN8 Register */ }; __IO uint32_t poly; /**< \b 0x0008: CRC POLY Register */ __IO uint32_t val; /**< \b 0x000C: CRC VAL Register */ } mxc_crc_regs_t; /* Register offsets for module CRC */ /** * @ingroup crc_registers * @defgroup CRC_Register_Offsets Register Offsets * @brief CRC Peripheral Register Offsets from the CRC Base Peripheral Address. * @{ */ #define MXC_R_CRC_CTRL ((uint32_t)0x00000000UL) /**< Offset from CRC Base Address: 0x0000 */ #define MXC_R_CRC_DATAIN32 ((uint32_t)0x00000004UL) /**< Offset from CRC Base Address: 0x0004 */ #define MXC_R_CRC_DATAIN16 ((uint32_t)0x00000004UL) /**< Offset from CRC Base Address: 0x0004 */ #define MXC_R_CRC_DATAIN8 ((uint32_t)0x00000004UL) /**< Offset from CRC Base Address: 0x0004 */ #define MXC_R_CRC_POLY ((uint32_t)0x00000008UL) /**< Offset from CRC Base Address: 0x0008 */ #define MXC_R_CRC_VAL ((uint32_t)0x0000000CUL) /**< Offset from CRC Base Address: 0x000C */ /**@} end of group crc_registers */ /** * @ingroup crc_registers * @defgroup CRC_CTRL CRC_CTRL * @brief CRC Control * @{ */ #define MXC_F_CRC_CTRL_EN_POS 0 /**< CTRL_EN Position */ #define MXC_F_CRC_CTRL_EN ((uint32_t)(0x1UL << MXC_F_CRC_CTRL_EN_POS)) /**< CTRL_EN Mask */ #define MXC_F_CRC_CTRL_DMA_EN_POS 1 /**< CTRL_DMA_EN Position */ #define MXC_F_CRC_CTRL_DMA_EN ((uint32_t)(0x1UL << MXC_F_CRC_CTRL_DMA_EN_POS)) /**< CTRL_DMA_EN Mask */ #define MXC_F_CRC_CTRL_MSB_POS 2 /**< CTRL_MSB Position */ #define MXC_F_CRC_CTRL_MSB ((uint32_t)(0x1UL << MXC_F_CRC_CTRL_MSB_POS)) /**< CTRL_MSB Mask */ #define MXC_F_CRC_CTRL_BYTE_SWAP_IN_POS 3 /**< CTRL_BYTE_SWAP_IN Position */ #define MXC_F_CRC_CTRL_BYTE_SWAP_IN ((uint32_t)(0x1UL << MXC_F_CRC_CTRL_BYTE_SWAP_IN_POS)) /**< CTRL_BYTE_SWAP_IN Mask */ #define MXC_F_CRC_CTRL_BYTE_SWAP_OUT_POS 4 /**< CTRL_BYTE_SWAP_OUT Position */ #define MXC_F_CRC_CTRL_BYTE_SWAP_OUT ((uint32_t)(0x1UL << MXC_F_CRC_CTRL_BYTE_SWAP_OUT_POS)) /**< CTRL_BYTE_SWAP_OUT Mask */ #define MXC_F_CRC_CTRL_BUSY_POS 16 /**< CTRL_BUSY Position */ #define MXC_F_CRC_CTRL_BUSY ((uint32_t)(0x1UL << MXC_F_CRC_CTRL_BUSY_POS)) /**< CTRL_BUSY Mask */ /**@} end of group CRC_CTRL_Register */ /** * @ingroup crc_registers * @defgroup CRC_DATAIN32 CRC_DATAIN32 * @brief CRC Data Input * @{ */ #define MXC_F_CRC_DATAIN32_DATA_POS 0 /**< DATAIN32_DATA Position */ #define MXC_F_CRC_DATAIN32_DATA ((uint32_t)(0xFFFFFFFFUL << MXC_F_CRC_DATAIN32_DATA_POS)) /**< DATAIN32_DATA Mask */ /**@} end of group CRC_DATAIN32_Register */ /** * @ingroup crc_registers * @defgroup CRC_DATAIN16 CRC_DATAIN16 * @brief CRC Data Input * @{ */ #define MXC_F_CRC_DATAIN16_DATA_POS 0 /**< DATAIN16_DATA Position */ #define MXC_F_CRC_DATAIN16_DATA ((uint16_t)(0xFFFFUL << MXC_F_CRC_DATAIN16_DATA_POS)) /**< DATAIN16_DATA Mask */ /**@} end of group CRC_DATAIN16_Register */ /** * @ingroup crc_registers * @defgroup CRC_DATAIN8 CRC_DATAIN8 * @brief CRC Data Input * @{ */ #define MXC_F_CRC_DATAIN8_DATA_POS 0 /**< DATAIN8_DATA Position */ #define MXC_F_CRC_DATAIN8_DATA ((uint8_t)(0xFFUL << MXC_F_CRC_DATAIN8_DATA_POS)) /**< DATAIN8_DATA Mask */ /**@} end of group CRC_DATAIN8_Register */ /** * @ingroup crc_registers * @defgroup CRC_POLY CRC_POLY * @brief CRC Polynomial * @{ */ #define MXC_F_CRC_POLY_POLY_POS 0 /**< POLY_POLY Position */ #define MXC_F_CRC_POLY_POLY ((uint32_t)(0xFFFFFFFFUL << MXC_F_CRC_POLY_POLY_POS)) /**< POLY_POLY Mask */ /**@} end of group CRC_POLY_Register */ /** * @ingroup crc_registers * @defgroup CRC_VAL CRC_VAL * @brief Current CRC Value * @{ */ #define MXC_F_CRC_VAL_VALUE_POS 0 /**< VAL_VALUE Position */ #define MXC_F_CRC_VAL_VALUE ((uint32_t)(0xFFFFFFFFUL << MXC_F_CRC_VAL_VALUE_POS)) /**< VAL_VALUE Mask */ /**@} end of group CRC_VAL_Register */ #ifdef __cplusplus } #endif #endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX78002_INCLUDE_CRC_REGS_H_