Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
bmp085.c File Reference
#include <linux/module.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/of.h>
#include "bmp085.h"

Go to the source code of this file.

Data Structures

struct  bmp085_calibration_data
 
struct  bmp085_data
 

Macros

#define BMP085_CHIP_ID   0x55
 
#define BMP085_CALIBRATION_DATA_START   0xAA
 
#define BMP085_CALIBRATION_DATA_LENGTH   11 /* 16 bit values */
 
#define BMP085_CHIP_ID_REG   0xD0
 
#define BMP085_CTRL_REG   0xF4
 
#define BMP085_TEMP_MEASUREMENT   0x2E
 
#define BMP085_PRESSURE_MEASUREMENT   0x34
 
#define BMP085_CONVERSION_REGISTER_MSB   0xF6
 
#define BMP085_CONVERSION_REGISTER_LSB   0xF7
 
#define BMP085_CONVERSION_REGISTER_XLSB   0xF8
 
#define BMP085_TEMP_CONVERSION_TIME   5
 

Functions

int bmp085_detect (struct device *dev)
 
 EXPORT_SYMBOL_GPL (bmp085_detect)
 
 EXPORT_SYMBOL_GPL (bmp085_regmap_config)
 
__devinit int bmp085_probe (struct device *dev, struct regmap *regmap)
 
 EXPORT_SYMBOL_GPL (bmp085_probe)
 
int bmp085_remove (struct device *dev)
 
 EXPORT_SYMBOL_GPL (bmp085_remove)
 
 MODULE_AUTHOR ("Christoph Mair <[email protected]>")
 
 MODULE_DESCRIPTION ("BMP085 driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct regmap_config bmp085_regmap_config
 

Macro Definition Documentation

#define BMP085_CALIBRATION_DATA_LENGTH   11 /* 16 bit values */

Definition at line 58 of file bmp085.c.

#define BMP085_CALIBRATION_DATA_START   0xAA

Definition at line 57 of file bmp085.c.

#define BMP085_CHIP_ID   0x55

Definition at line 56 of file bmp085.c.

#define BMP085_CHIP_ID_REG   0xD0

Definition at line 59 of file bmp085.c.

#define BMP085_CONVERSION_REGISTER_LSB   0xF7

Definition at line 64 of file bmp085.c.

#define BMP085_CONVERSION_REGISTER_MSB   0xF6

Definition at line 63 of file bmp085.c.

#define BMP085_CONVERSION_REGISTER_XLSB   0xF8

Definition at line 65 of file bmp085.c.

#define BMP085_CTRL_REG   0xF4

Definition at line 60 of file bmp085.c.

#define BMP085_PRESSURE_MEASUREMENT   0x34

Definition at line 62 of file bmp085.c.

#define BMP085_TEMP_CONVERSION_TIME   5

Definition at line 66 of file bmp085.c.

#define BMP085_TEMP_MEASUREMENT   0x2E

Definition at line 61 of file bmp085.c.

Function Documentation

int bmp085_detect ( struct device dev)

Definition at line 360 of file bmp085.c.

__devinit int bmp085_probe ( struct device dev,
struct regmap regmap 
)

Definition at line 423 of file bmp085.c.

int bmp085_remove ( struct device dev)

Definition at line 465 of file bmp085.c.

EXPORT_SYMBOL_GPL ( bmp085_detect  )
EXPORT_SYMBOL_GPL ( bmp085_regmap_config  )
EXPORT_SYMBOL_GPL ( bmp085_probe  )
EXPORT_SYMBOL_GPL ( bmp085_remove  )
MODULE_AUTHOR ( "Christoph Mair <[email protected]>"  )
MODULE_DESCRIPTION ( "BMP085 driver )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct regmap_config bmp085_regmap_config
Initial value:
= {
.reg_bits = 8,
.val_bits = 8
}

Definition at line 417 of file bmp085.c.