shtc1.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | shtc1.c (fdc7d8e829ec755c5cfb2f5a8d8c0cdfb664f895) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* Sensirion SHTC1 humidity and temperature sensor driver 3 * 4 * Copyright (C) 2014 Sensirion AG, Switzerland 5 * Author: Johannes Winkelmann <johannes.winkelmann@sensirion.com> 6 */ 7 8#include <linux/module.h> --- 14 unchanged lines hidden (view full) --- 23static const unsigned char shtc1_cmd_measure_blocking_lpm[] = { 0x64, 0x58 }; 24static const unsigned char shtc1_cmd_measure_nonblocking_lpm[] = { 0x60, 0x9c }; 25 26/* command for reading the ID register */ 27static const unsigned char shtc1_cmd_read_id_reg[] = { 0xef, 0xc8 }; 28 29/* constants for reading the ID register */ 30#define SHTC1_ID 0x07 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* Sensirion SHTC1 humidity and temperature sensor driver 3 * 4 * Copyright (C) 2014 Sensirion AG, Switzerland 5 * Author: Johannes Winkelmann <johannes.winkelmann@sensirion.com> 6 */ 7 8#include <linux/module.h> --- 14 unchanged lines hidden (view full) --- 23static const unsigned char shtc1_cmd_measure_blocking_lpm[] = { 0x64, 0x58 }; 24static const unsigned char shtc1_cmd_measure_nonblocking_lpm[] = { 0x60, 0x9c }; 25 26/* command for reading the ID register */ 27static const unsigned char shtc1_cmd_read_id_reg[] = { 0xef, 0xc8 }; 28 29/* constants for reading the ID register */ 30#define SHTC1_ID 0x07 |
31#define SHTC1_ID_REG_MASK 0x1f | 31#define SHTC1_ID_REG_MASK 0x3f |
32 33/* delays for non-blocking i2c commands, both in us */ 34#define SHTC1_NONBLOCKING_WAIT_TIME_HPM 14400 35#define SHTC1_NONBLOCKING_WAIT_TIME_LPM 1000 36 37#define SHTC1_CMD_LENGTH 2 38#define SHTC1_RESPONSE_LENGTH 6 39 --- 202 unchanged lines hidden --- | 32 33/* delays for non-blocking i2c commands, both in us */ 34#define SHTC1_NONBLOCKING_WAIT_TIME_HPM 14400 35#define SHTC1_NONBLOCKING_WAIT_TIME_LPM 1000 36 37#define SHTC1_CMD_LENGTH 2 38#define SHTC1_RESPONSE_LENGTH 6 39 --- 202 unchanged lines hidden --- |