Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
i2c_ram_defines.h@0:be95bfb06686, 2022-01-17 (annotated)
- Committer:
 - wuliqunyy
 - Date:
 - Mon Jan 17 13:20:09 2022 +0000
 - Revision:
 - 0:be95bfb06686
 
a working non_flat + adc_didt for ehp regulation version
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| wuliqunyy | 0:be95bfb06686 | 1 | // Generated by 90418_MEMmap.xlsm on 2021-06-03 10:02 | 
| wuliqunyy | 0:be95bfb06686 | 2 | // RAM zone defines | 
| wuliqunyy | 0:be95bfb06686 | 3 | #define DMA_START_RAM_ZONE_RAM_STACK 0x1220 | 
| wuliqunyy | 0:be95bfb06686 | 4 | #define DMA_START_RAM_ZONE_RAM_GLOBAL_VARIABLES 0x1200 | 
| wuliqunyy | 0:be95bfb06686 | 5 | #define DMA_START_RAM_ZONE_RAM_PATCH_TRIM 0x11E0 | 
| wuliqunyy | 0:be95bfb06686 | 6 | #define DMA_START_RAM_ZONE_RAM_PATCH_EXTENSION 0x1094 | 
| wuliqunyy | 0:be95bfb06686 | 7 | #define DMA_START_RAM_ZONE_RAM_MLX_CALIBRATION 0x1064 | 
| wuliqunyy | 0:be95bfb06686 | 8 | #define DMA_START_RAM_ZONE_RAM_MLX_I2C_REGISTER_MAPPING 0x105C | 
| wuliqunyy | 0:be95bfb06686 | 9 | #define DMA_START_RAM_ZONE_RAM_APPLICATION_TRIMMING 0x1010 | 
| wuliqunyy | 0:be95bfb06686 | 10 | #define DMA_START_RAM_ZONE_RAM_I2C_REGISTER_MAPPING 0x1000 | 
| wuliqunyy | 0:be95bfb06686 | 11 | |
| wuliqunyy | 0:be95bfb06686 | 12 | |
| wuliqunyy | 0:be95bfb06686 | 13 | // I2C RAM command defines | 
| wuliqunyy | 0:be95bfb06686 | 14 | #define I2C_RAM_PATCH_TRIM_0 0x00F0 | 
| wuliqunyy | 0:be95bfb06686 | 15 | #define I2C_CRC_PATCH_23 0x004B | 
| wuliqunyy | 0:be95bfb06686 | 16 | #define I2C_CRC_PATCH_01 0x004A | 
| wuliqunyy | 0:be95bfb06686 | 17 | #define I2C_MLX_CALIB_23 0x0049 | 
| wuliqunyy | 0:be95bfb06686 | 18 | #define I2C_MLX_CALIB_22 0x0048 | 
| wuliqunyy | 0:be95bfb06686 | 19 | #define I2C_MLX_CALIB_21 0x0047 | 
| wuliqunyy | 0:be95bfb06686 | 20 | #define I2C_MLX_CALIB_20 0x0046 | 
| wuliqunyy | 0:be95bfb06686 | 21 | #define I2C_MLX_CALIB_19 0x0045 | 
| wuliqunyy | 0:be95bfb06686 | 22 | #define I2C_MLX_CALIB_18 0x0044 | 
| wuliqunyy | 0:be95bfb06686 | 23 | #define I2C_MLX_CALIB_17 0x0043 | 
| wuliqunyy | 0:be95bfb06686 | 24 | #define I2C_MLX_CALIB_16 0x0042 | 
| wuliqunyy | 0:be95bfb06686 | 25 | #define I2C_MLX_CALIB_15 0x0041 | 
| wuliqunyy | 0:be95bfb06686 | 26 | #define I2C_MLX_CALIB_14 0x0040 | 
| wuliqunyy | 0:be95bfb06686 | 27 | #define I2C_MLX_CALIB_13 0x003F | 
| wuliqunyy | 0:be95bfb06686 | 28 | #define I2C_MLX_CALIB_12 0x003E | 
| wuliqunyy | 0:be95bfb06686 | 29 | #define I2C_MLX_CALIB_11 0x003D | 
| wuliqunyy | 0:be95bfb06686 | 30 | #define I2C_MLX_CALIB_10 0x003C | 
| wuliqunyy | 0:be95bfb06686 | 31 | #define I2C_MLX_CALIB_9 0x003B | 
| wuliqunyy | 0:be95bfb06686 | 32 | #define I2C_MLX_CALIB_8 0x003A | 
| wuliqunyy | 0:be95bfb06686 | 33 | #define I2C_MLX_CALIB_7 0x0039 | 
| wuliqunyy | 0:be95bfb06686 | 34 | #define I2C_MLX_CALIB_6 0x0038 | 
| wuliqunyy | 0:be95bfb06686 | 35 | #define I2C_MLX_CALIB_5 0x0037 | 
| wuliqunyy | 0:be95bfb06686 | 36 | #define I2C_MLX_CALIB_4 0x0036 | 
| wuliqunyy | 0:be95bfb06686 | 37 | #define I2C_MLX_CALIB_3 0x0035 | 
| wuliqunyy | 0:be95bfb06686 | 38 | #define I2C_MLX_CALIB_2 0x0034 | 
| wuliqunyy | 0:be95bfb06686 | 39 | #define I2C_CLIM_SET 0x0033 | 
| wuliqunyy | 0:be95bfb06686 | 40 | #define I2C_CLIM_CALIB 0x0032 | 
| wuliqunyy | 0:be95bfb06686 | 41 | #define I2C_CMD_INTERPRETER_DATA 0x0031 | 
| wuliqunyy | 0:be95bfb06686 | 42 | #define I2C_CMD_INTERPRETER_ADDRESS 0x0030 | 
| wuliqunyy | 0:be95bfb06686 | 43 | #define I2C_STARTUP_FLAGS_2 0x002F | 
| wuliqunyy | 0:be95bfb06686 | 44 | #define I2C_STARTUP_FLAGS_1 0x002E | 
| wuliqunyy | 0:be95bfb06686 | 45 | #define I2C_MTP_CFGZONE_0 0x002D | 
| wuliqunyy | 0:be95bfb06686 | 46 | #define I2C_CUST_ID0 0x002C | 
| wuliqunyy | 0:be95bfb06686 | 47 | #define I2C_CUST_ID1 0x002B | 
| wuliqunyy | 0:be95bfb06686 | 48 | #define I2C_CUST_ID2 0x002A | 
| wuliqunyy | 0:be95bfb06686 | 49 | #define I2C_CUST_ID3 0x0029 | 
| wuliqunyy | 0:be95bfb06686 | 50 | #define I2C_DIGITAL_CFG 0x0028 | 
| wuliqunyy | 0:be95bfb06686 | 51 | #define I2C_ZONE0_RES1 0x0027 | 
| wuliqunyy | 0:be95bfb06686 | 52 | #define I2C_ZONE0_RES2 0x0026 | 
| wuliqunyy | 0:be95bfb06686 | 53 | #define I2C_ZONE0_RES3 0x0025 | 
| wuliqunyy | 0:be95bfb06686 | 54 | #define I2C_ZONE0_RES4 0x0024 | 
| wuliqunyy | 0:be95bfb06686 | 55 | #define I2C_CLIM_USER_1 0x0023 | 
| wuliqunyy | 0:be95bfb06686 | 56 | #define I2C_CLIM_USER_0 0x0022 | 
| wuliqunyy | 0:be95bfb06686 | 57 | #define I2C_OC_CL_CTRL 0x0021 | 
| wuliqunyy | 0:be95bfb06686 | 58 | #define I2C_DI_TH_1ST_REG 0x0020 | 
| wuliqunyy | 0:be95bfb06686 | 59 | #define I2C_DI_TH_2ND_REG 0x001F | 
| wuliqunyy | 0:be95bfb06686 | 60 | #define I2C_I_ZC_TH_HIGH_REG 0x001E | 
| wuliqunyy | 0:be95bfb06686 | 61 | #define I2C_I_ZC_TH_LOW_REG 0x001D | 
| wuliqunyy | 0:be95bfb06686 | 62 | #define I2C_CURVE_PAR_F 0x001C | 
| wuliqunyy | 0:be95bfb06686 | 63 | #define I2C_CURVE_PAR_E 0x001B | 
| wuliqunyy | 0:be95bfb06686 | 64 | #define I2C_CURVE_PAR_D 0x001A | 
| wuliqunyy | 0:be95bfb06686 | 65 | #define I2C_CURVE_PAR_C 0x0019 | 
| wuliqunyy | 0:be95bfb06686 | 66 | #define I2C_CURVE_PAR_B 0x0018 | 
| wuliqunyy | 0:be95bfb06686 | 67 | #define I2C_CURVE_PAR_A 0x0017 | 
| wuliqunyy | 0:be95bfb06686 | 68 | #define I2C_CURVE_PNT_MAX 0x0016 | 
| wuliqunyy | 0:be95bfb06686 | 69 | #define I2C_CURVE_PNT_MIN 0x0015 | 
| wuliqunyy | 0:be95bfb06686 | 70 | #define I2C_SPD_CTRL_2 0x0014 | 
| wuliqunyy | 0:be95bfb06686 | 71 | #define I2C_SPD_CTRL_1 0x0013 | 
| wuliqunyy | 0:be95bfb06686 | 72 | #define I2C_MIN_EHP 0x0012 | 
| wuliqunyy | 0:be95bfb06686 | 73 | #define I2C_POSITION2 0x0011 | 
| wuliqunyy | 0:be95bfb06686 | 74 | #define I2C_WIND_BRAKE2 0x0010 | 
| wuliqunyy | 0:be95bfb06686 | 75 | #define I2C_WIND_BRAKE 0x000F | 
| wuliqunyy | 0:be95bfb06686 | 76 | #define I2C_START_UP 0x000E | 
| wuliqunyy | 0:be95bfb06686 | 77 | #define I2C_POSITION 0x000D | 
| wuliqunyy | 0:be95bfb06686 | 78 | #define I2C_GEN_CTRL 0x000C | 
| wuliqunyy | 0:be95bfb06686 | 79 | #define I2C_APPLICATION_CFG4 0x000B | 
| wuliqunyy | 0:be95bfb06686 | 80 | #define I2C_APPLICATION_CFG3 0x000A | 
| wuliqunyy | 0:be95bfb06686 | 81 | #define I2C_APPLICATION_CFG2 0x0009 | 
| wuliqunyy | 0:be95bfb06686 | 82 | #define I2C_APPLICATION_CFG 0x0008 | 
| wuliqunyy | 0:be95bfb06686 | 83 | #define I2C_STATE 0x0007 | 
| wuliqunyy | 0:be95bfb06686 | 84 | #define I2C_I2C_RESERVED_2 0x0006 | 
| wuliqunyy | 0:be95bfb06686 | 85 | #define I2C_TEMPERATURE 0x0005 | 
| wuliqunyy | 0:be95bfb06686 | 86 | #define I2C_STATUS 0x0004 | 
| wuliqunyy | 0:be95bfb06686 | 87 | #define I2C_FEEDBACK 0x0003 | 
| wuliqunyy | 0:be95bfb06686 | 88 | #define I2C_COMMAND_KEY 0x0002 | 
| wuliqunyy | 0:be95bfb06686 | 89 | #define I2C_COMMAND_CONTROL 0x0001 | 
| wuliqunyy | 0:be95bfb06686 | 90 | #define I2C_SPEED_DUTY 0x0000 | 
| wuliqunyy | 0:be95bfb06686 | 91 | |
| wuliqunyy | 0:be95bfb06686 | 92 | // Useful masks | 
| wuliqunyy | 0:be95bfb06686 | 93 | #define I2C_STATUS_COMMAND_BUSY_MASK (1u << 4u) | 
| wuliqunyy | 0:be95bfb06686 | 94 | #define I2C_STATE_COMM_STATE_MASK (0xFF) | 
| wuliqunyy | 0:be95bfb06686 | 95 | #define I2C_STATE_COMM_STATE_OFFSET (0u) | 
| wuliqunyy | 0:be95bfb06686 | 96 | |
| wuliqunyy | 0:be95bfb06686 | 97 | |
| wuliqunyy | 0:be95bfb06686 | 98 | 
