Back to home page

OSCL-LXR

 
 

    


0001 Kernel driver shtc1
0002 ===================
0003 
0004 Supported chips:
0005 
0006   * Sensirion SHTC1
0007 
0008     Prefix: 'shtc1'
0009 
0010     Addresses scanned: none
0011 
0012     Datasheet: https://www.sensirion.com/file/datasheet_shtc1
0013 
0014 
0015 
0016   * Sensirion SHTW1
0017 
0018     Prefix: 'shtw1'
0019 
0020     Addresses scanned: none
0021 
0022     Datasheet: https://www.sensirion.com/file/datasheet_shtw1
0023 
0024 
0025 
0026   * Sensirion SHTC3
0027 
0028     Prefix: 'shtc3'
0029 
0030     Addresses scanned: none
0031 
0032     Datasheet: https://www.sensirion.com/file/datasheet_shtc3
0033 
0034 
0035 
0036 Author:
0037 
0038   Johannes Winkelmann <johannes.winkelmann@sensirion.com>
0039 
0040 Description
0041 -----------
0042 
0043 This driver implements support for the Sensirion SHTC1, SHTW1, and SHTC3
0044 chips, a humidity and temperature sensor. Temperature is measured in degrees
0045 celsius, relative humidity is expressed as a percentage.
0046 
0047 The device communicates with the I2C protocol. All sensors are set to I2C
0048 address 0x70. See Documentation/i2c/instantiating-devices.rst for methods to
0049 instantiate the device.
0050 
0051 There are two options configurable by means of shtc1_platform_data:
0052 
0053 1. blocking (pull the I2C clock line down while performing the measurement) or
0054    non-blocking mode. Blocking mode will guarantee the fastest result but
0055    the I2C bus will be busy during that time. By default, non-blocking mode
0056    is used. Make sure clock-stretching works properly on your device if you
0057    want to use blocking mode.
0058 2. high or low accuracy. High accuracy is used by default and using it is
0059    strongly recommended.
0060 
0061 sysfs-Interface
0062 ---------------
0063 
0064 temp1_input
0065         - temperature input
0066 humidity1_input
0067         - humidity input