1 /** 2 ****************************************************************************** 3 * @file cks_reg.h 4 * @version V1.0 5 * @date 2022-10-25 6 * @brief This file is the description of.IP register 7 ****************************************************************************** 8 * @attention 9 * 10 * <h2><center>© COPYRIGHT(c) 2020 Bouffalo Lab</center></h2> 11 * 12 * Redistribution and use in source and binary forms, with or without modification, 13 * are permitted provided that the following conditions are met: 14 * 1. Redistributions of source code must retain the above copyright notice, 15 * this list of conditions and the following disclaimer. 16 * 2. Redistributions in binary form must reproduce the above copyright notice, 17 * this list of conditions and the following disclaimer in the documentation 18 * and/or other materials provided with the distribution. 19 * 3. Neither the name of Bouffalo Lab nor the names of its contributors 20 * may be used to endorse or promote products derived from this software 21 * without specific prior written permission. 22 * 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 29 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 31 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 * 34 ****************************************************************************** 35 */ 36 #ifndef __CKS_REG_H__ 37 #define __CKS_REG_H__ 38 39 /**************************************************************************** 40 * Pre-processor Definitions 41 ****************************************************************************/ 42 43 /* Register offsets *********************************************************/ 44 45 #define CKS_CONFIG_OFFSET (0x0)/* cks_config */ 46 #define CKS_DATA_IN_OFFSET (0x4)/* data_in */ 47 #define CKS_OUT_OFFSET (0x8)/* cks_out */ 48 49 /* Register Bitfield definitions *****************************************************/ 50 51 /* 0x0 : cks_config */ 52 #define CKS_CR_CKS_CLR (1<<0U) 53 #define CKS_CR_CKS_BYTE_SWAP (1<<1U) 54 55 /* 0x4 : data_in */ 56 #define CKS_DATA_IN_SHIFT (0U) 57 #define CKS_DATA_IN_MASK (0xff<<CKS_DATA_IN_SHIFT) 58 59 /* 0x8 : cks_out */ 60 #define CKS_OUT_SHIFT (0U) 61 #define CKS_OUT_MASK (0xffff<<CKS_OUT_SHIFT) 62 63 64 #endif /* __CKS_REG_H__ */ 65