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.
Dependents: MAX31725_High_Temperature_Accurate_IC
Revision 23:3fa31b45fa1a, committed 2019-04-10
- Comitter:
- phonemacro
- Date:
- Wed Apr 10 17:07:21 2019 +0000
- Parent:
- 22:692515ac2bb7
- Commit message:
- Update comments
Changed in this revision
max31725.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 692515ac2bb7 -r 3fa31b45fa1a max31725.h --- a/max31725.h Tue Apr 09 22:58:02 2019 +0000 +++ b/max31725.h Wed Apr 10 17:07:21 2019 +0000 @@ -69,65 +69,66 @@ #define MAX31725_CFG_TIMEOUT_DISABLE (0X01 << 6) #define MAX31725_CFG_ONE_SHOT_START (0X01 << 7) - -#define MAX31725_I2C_SLAVE_ADR_00 (0x90 >> 1) -#define MAX31725_I2C_SLAVE_ADR_01 (0x92 >> 1) -#define MAX31725_I2C_SLAVE_ADR_02 (0x82 >> 1) -#define MAX31725_I2C_SLAVE_ADR_03 (0x80 >> 1) -#define MAX31725_I2C_SLAVE_ADR_04 (0x94 >> 1) - -#define MAX31725_I2C_SLAVE_ADR_05 (0x96 >> 1) -#define MAX31725_I2C_SLAVE_ADR_06 (0x86 >> 1) -#define MAX31725_I2C_SLAVE_ADR_07 (0x84 >> 1) -#define MAX31725_I2C_SLAVE_ADR_08 (0xB4 >> 1) -#define MAX31725_I2C_SLAVE_ADR_09 (0xB6 >> 1) - -#define MAX31725_I2C_SLAVE_ADR_10 (0xA6 >> 1) -#define MAX31725_I2C_SLAVE_ADR_11 (0xA4 >> 1) -#define MAX31725_I2C_SLAVE_ADR_12 (0xB0 >> 1) -#define MAX31725_I2C_SLAVE_ADR_13 (0xB2 >> 1) -#define MAX31725_I2C_SLAVE_ADR_14 (0xA2 >> 1) - -#define MAX31725_I2C_SLAVE_ADR_15 (0xA0 >> 1) -#define MAX31725_I2C_SLAVE_ADR_16 (0x98 >> 1) -#define MAX31725_I2C_SLAVE_ADR_17 (0x9A >> 1) -#define MAX31725_I2C_SLAVE_ADR_18 (0x8A >> 1) -#define MAX31725_I2C_SLAVE_ADR_19 (0x88 >> 1) + /* A1 A2 A3 */ +#define MAX31725_I2C_SLAVE_ADR_00 (0x90 >> 1) /* GND GND GND */ +#define MAX31725_I2C_SLAVE_ADR_01 (0x92 >> 1) /* GND GND VDD */ +#define MAX31725_I2C_SLAVE_ADR_02 (0x82 >> 1) /* GND GND SCL */ +#define MAX31725_I2C_SLAVE_ADR_03 (0x80 >> 1) /* GND GND SDA */ +#define MAX31725_I2C_SLAVE_ADR_04 (0x94 >> 1) /* GND VDD GND */ + +#define MAX31725_I2C_SLAVE_ADR_05 (0x96 >> 1) /* GND VDD VDD */ +#define MAX31725_I2C_SLAVE_ADR_06 (0x86 >> 1) /* GND VDD SCL */ +#define MAX31725_I2C_SLAVE_ADR_07 (0x84 >> 1) /* GND VDD SDA */ +#define MAX31725_I2C_SLAVE_ADR_08 (0xB4 >> 1) /* GND SCL GND */ +#define MAX31725_I2C_SLAVE_ADR_09 (0xB6 >> 1) /* GND SCL VDD */ + +#define MAX31725_I2C_SLAVE_ADR_10 (0xA6 >> 1) /* GND SCL SCL */ +#define MAX31725_I2C_SLAVE_ADR_11 (0xA4 >> 1) /* GND SCL SDA */ +#define MAX31725_I2C_SLAVE_ADR_12 (0xB0 >> 1) /* GND SDA GND */ +#define MAX31725_I2C_SLAVE_ADR_13 (0xB2 >> 1) /* GND SDA VDD */ +#define MAX31725_I2C_SLAVE_ADR_14 (0xA2 >> 1) /* GND SDA SCL */ + +#define MAX31725_I2C_SLAVE_ADR_15 (0xA0 >> 1) /* GND SDA SDA */ +#define MAX31725_I2C_SLAVE_ADR_16 (0x98 >> 1) /* VDD GND GND */ +#define MAX31725_I2C_SLAVE_ADR_17 (0x9A >> 1) /* VDD GND VDD */ +#define MAX31725_I2C_SLAVE_ADR_18 (0x8A >> 1) /* VDD GND SCL */ +#define MAX31725_I2C_SLAVE_ADR_19 (0x88 >> 1) /* VDD GND SDA */ + +#define MAX31725_I2C_SLAVE_ADR_20 (0x9C >> 1) /* VDD VDD GND */ +#define MAX31725_I2C_SLAVE_ADR_21 (0x9E >> 1) /* VDD VDD VDD */ +#define MAX31725_I2C_SLAVE_ADR_22 (0x8E >> 1) /* VDD VDD SCL */ +#define MAX31725_I2C_SLAVE_ADR_23 (0x8C >> 1) /* VDD VDD SDA */ +#define MAX31725_I2C_SLAVE_ADR_24 (0xBC >> 1) /* VDD SCL GND */ + +#define MAX31725_I2C_SLAVE_ADR_25 (0xBE >> 1) /* VDD SCL VDD */ +#define MAX31725_I2C_SLAVE_ADR_26 (0xAE >> 1) /* VDD SCL SCL */ +#define MAX31725_I2C_SLAVE_ADR_27 (0xAC >> 1) /* VDD SCL SDA */ +#define MAX31725_I2C_SLAVE_ADR_28 (0xB8 >> 1) /* VDD SDA GND */ +#define MAX31725_I2C_SLAVE_ADR_29 (0xBA >> 1) /* VDD SDA VDD */ + +#define MAX31725_I2C_SLAVE_ADR_30 (0xAA >> 1) /* VDD SDA SCL */ +#define MAX31725_I2C_SLAVE_ADR_31 (0xA8 >> 1) /* VDD SDA SDA */ -#define MAX31725_I2C_SLAVE_ADR_20 (0x9C >> 1) -#define MAX31725_I2C_SLAVE_ADR_21 (0x9E >> 1) -#define MAX31725_I2C_SLAVE_ADR_22 (0x8E >> 1) -#define MAX31725_I2C_SLAVE_ADR_23 (0x8C >> 1) -#define MAX31725_I2C_SLAVE_ADR_24 (0xBC >> 1) -#define MAX31725_I2C_SLAVE_ADR_25 (0xBE >> 1) -#define MAX31725_I2C_SLAVE_ADR_26 (0xAE >> 1) -#define MAX31725_I2C_SLAVE_ADR_27 (0xAC >> 1) -#define MAX31725_I2C_SLAVE_ADR_28 (0xB8 >> 1) -#define MAX31725_I2C_SLAVE_ADR_29 (0xBA >> 1) - -#define MAX31725_I2C_SLAVE_ADR_30 (0xAA >> 1) -#define MAX31725_I2C_SLAVE_ADR_31 (0xA8 >> 1) +#define MAX31726_I2C_SLAVE_ADR_00 (0x98 >> 1) /* GND GND */ +#define MAX31726_I2C_SLAVE_ADR_01 (0x9A >> 1) /* GND VDD */ +#define MAX31726_I2C_SLAVE_ADR_02 (0x8A >> 1) /* GND SCL */ +#define MAX31726_I2C_SLAVE_ADR_03 (0x88 >> 1) /* GND SDA */ +#define MAX31726_I2C_SLAVE_ADR_04 (0x9C >> 1) /* VDD GND */ -#define MAX31726_I2C_SLAVE_ADR_00 (0x98 >> 1) -#define MAX31726_I2C_SLAVE_ADR_01 (0x9A >> 1) -#define MAX31726_I2C_SLAVE_ADR_02 (0x8A >> 1) -#define MAX31726_I2C_SLAVE_ADR_03 (0x88 >> 1) -#define MAX31726_I2C_SLAVE_ADR_04 (0x9C >> 1) +#define MAX31726_I2C_SLAVE_ADR_05 (0x9E >> 1) /* VDD VDD */ +#define MAX31726_I2C_SLAVE_ADR_06 (0x8E >> 1) /* VDD SCL */ +#define MAX31726_I2C_SLAVE_ADR_07 (0x8C >> 1) /* VDD SDA */ +#define MAX31726_I2C_SLAVE_ADR_08 (0xBC >> 1) /* SCL GND */ +#define MAX31726_I2C_SLAVE_ADR_09 (0xBE >> 1) /* SCL VDD */ -#define MAX31726_I2C_SLAVE_ADR_05 (0x9E >> 1) -#define MAX31726_I2C_SLAVE_ADR_06 (0x8E >> 1) -#define MAX31726_I2C_SLAVE_ADR_07 (0x8C >> 1) -#define MAX31726_I2C_SLAVE_ADR_08 (0xBC >> 1) -#define MAX31726_I2C_SLAVE_ADR_09 (0xBE >> 1) +#define MAX31726_I2C_SLAVE_ADR_10 (0xAE >> 1) /* SCL SCL */ +#define MAX31726_I2C_SLAVE_ADR_11 (0xAC >> 1) /* SCL SDA */ +#define MAX31726_I2C_SLAVE_ADR_12 (0xB8 >> 1) /* SDA GND */ +#define MAX31726_I2C_SLAVE_ADR_13 (0xBA >> 1) /* SDA VDD */ +#define MAX31726_I2C_SLAVE_ADR_14 (0xAA >> 1) /* SDA SCL */ -#define MAX31726_I2C_SLAVE_ADR_10 (0xAE >> 1) -#define MAX31726_I2C_SLAVE_ADR_11 (0xAC >> 1) -#define MAX31726_I2C_SLAVE_ADR_12 (0xB8 >> 1) -#define MAX31726_I2C_SLAVE_ADR_13 (0xBA >> 1) -#define MAX31726_I2C_SLAVE_ADR_14 (0xAA >> 1) - -#define MAX31726_I2C_SLAVE_ADR_15 (0xA8 >> 1) +#define MAX31726_I2C_SLAVE_ADR_15 (0xA8 >> 1) /* SDA SDA */ #define MAX31725_CF_LSB (0.00390625F)