Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ads1015.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/i2c/ads1015.h>

Go to the source code of this file.

Data Structures

struct  ads1015_data
 

Macros

#define ADS1015_DEFAULT_CHANNELS   0xff
 
#define ADS1015_DEFAULT_PGA   2
 
#define ADS1015_DEFAULT_DATA_RATE   4
 

Enumerations

enum  { ADS1015_CONVERSION = 0, ADS1015_CONFIG = 1 }
 

Functions

 MODULE_DEVICE_TABLE (i2c, ads1015_id)
 
 module_i2c_driver (ads1015_driver)
 
 MODULE_AUTHOR ("Dirk Eibach <[email protected]>")
 
 MODULE_DESCRIPTION ("ADS1015 driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ADS1015_DEFAULT_CHANNELS   0xff

Definition at line 52 of file ads1015.c.

#define ADS1015_DEFAULT_DATA_RATE   4

Definition at line 54 of file ads1015.c.

#define ADS1015_DEFAULT_PGA   2

Definition at line 53 of file ads1015.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
ADS1015_CONVERSION 
ADS1015_CONFIG 

Definition at line 39 of file ads1015.c.

Function Documentation

MODULE_AUTHOR ( "Dirk Eibach <[email protected]>"  )
MODULE_DESCRIPTION ( "ADS1015 driver )
MODULE_DEVICE_TABLE ( i2c  ,
ads1015_id   
)
module_i2c_driver ( ads1015_driver  )
MODULE_LICENSE ( "GPL"  )