Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
sht15.c File Reference
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/gpio.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/mutex.h>
#include <linux/platform_data/sht15.h>
#include <linux/platform_device.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/jiffies.h>
#include <linux/err.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/atomic.h>

Go to the source code of this file.

Data Structures

struct  sht15_temppair
 
struct  sht15_data
 

Macros

#define SHT15_MEASURE_TEMP   0x03
 
#define SHT15_MEASURE_RH   0x05
 
#define SHT15_WRITE_STATUS   0x06
 
#define SHT15_READ_STATUS   0x07
 
#define SHT15_SOFT_RESET   0x1E
 
#define SHT15_TSCKL   100 /* (nsecs) clock low */
 
#define SHT15_TSCKH   100 /* (nsecs) clock high */
 
#define SHT15_TSU   150 /* (nsecs) data setup time */
 
#define SHT15_TSRST   11 /* (msecs) soft reset time */
 
#define SHT15_STATUS_LOW_RESOLUTION   0x01
 
#define SHT15_STATUS_NO_OTP_RELOAD   0x02
 
#define SHT15_STATUS_HEATER   0x04
 
#define SHT15_STATUS_LOW_BATTERY   0x40
 

Enumerations

enum  sht15_chips {
  sht10, sht11, sht15, sht71,
  sht75
}
 
enum  sht15_state { SHT15_READING_NOTHING, SHT15_READING_TEMP, SHT15_READING_HUMID }
 

Functions

 MODULE_DEVICE_TABLE (platform, sht15_device_ids)
 
 module_platform_driver (sht15_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Sensirion SHT15 temperature and humidity sensor driver")
 

Macro Definition Documentation

#define SHT15_MEASURE_RH   0x05

Definition at line 39 of file sht15.c.

#define SHT15_MEASURE_TEMP   0x03

Definition at line 38 of file sht15.c.

#define SHT15_READ_STATUS   0x07

Definition at line 41 of file sht15.c.

#define SHT15_SOFT_RESET   0x1E

Definition at line 42 of file sht15.c.

#define SHT15_STATUS_HEATER   0x04

Definition at line 53 of file sht15.c.

#define SHT15_STATUS_LOW_BATTERY   0x40

Definition at line 54 of file sht15.c.

#define SHT15_STATUS_LOW_RESOLUTION   0x01

Definition at line 51 of file sht15.c.

#define SHT15_STATUS_NO_OTP_RELOAD   0x02

Definition at line 52 of file sht15.c.

#define SHT15_TSCKH   100 /* (nsecs) clock high */

Definition at line 46 of file sht15.c.

#define SHT15_TSCKL   100 /* (nsecs) clock low */

Definition at line 45 of file sht15.c.

#define SHT15_TSRST   11 /* (msecs) soft reset time */

Definition at line 48 of file sht15.c.

#define SHT15_TSU   150 /* (nsecs) data setup time */

Definition at line 47 of file sht15.c.

#define SHT15_WRITE_STATUS   0x06

Definition at line 40 of file sht15.c.

Enumeration Type Documentation

Enumerator:
sht10 
sht11 
sht15 
sht71 
sht75 

Definition at line 57 of file sht15.c.

Enumerator:
SHT15_READING_NOTHING 
SHT15_READING_TEMP 
SHT15_READING_HUMID 

Definition at line 60 of file sht15.c.

Function Documentation

MODULE_DESCRIPTION ( "Sensirion SHT15 temperature and humidity sensor driver )
MODULE_DEVICE_TABLE ( platform  ,
sht15_device_ids   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( sht15_driver  )