 |
NHS31xx SW API
|
22 #ifndef __HUMID_DFT_H_ 23 #define __HUMID_DFT_H_ 25 #ifndef HUMID_CHIP_HTU21D 34 #define HUMID_CHIP_HTU21D 1 37 #ifndef HUMID_CHIP_SHTC3 46 #define HUMID_CHIP_SHTC3 0 49 #if HUMID_CHIP_HTU21D && HUMID_CHIP_SHTC3 50 #error Only one of HUMID_CHIP_HTU21D and HUMID_CHIP_SHTC3 may be set to a non-zero value. 52 #if !HUMID_CHIP_HTU21D && !HUMID_CHIP_SHTC3 53 #error One of HUMID_CHIP_HTU21D and HUMID_CHIP_SHTC3 must be set to a non-zero value. 61 #define HUMID_I2C_HW 1 71 #define HUMID_I2C_BB 0 74 #if HUMID_I2C_HW && HUMID_I2C_BB 75 #error Only one of HUMID_I2C_HW and HUMID_I2C_BB may be set to a non-zero value. 77 #if !HUMID_I2C_HW && !HUMID_I2C_BB 78 #error One of HUMID_I2C_HW and HUMID_I2C_BB must be set to a non-zero value. 81 #ifndef HUMID_POWER_PIN 86 #define HUMID_POWER_PIN 6 89 #if !HUMID_PULLUP_COUNT && !defined(HUMID_PULLUPS) 95 #define HUMID_PULLUP_COUNT 0 103 #define HUMID_PULLUPS NULL 104 #elif HUMID_PULLUP_COUNT && defined(HUMID_PULLUPS) 107 #error Both HUMID_PULLUP_COUNT and HUMID_PULLUPS must be both defined or undefined. 108 #error Define HUMID_PULLUPS as an array of type uint32_t and size HUMID_PULLUP_COUNT.