Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
adis16130_core.c File Reference
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/spi/spi.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>

Go to the source code of this file.

Data Structures

struct  adis16130_state
 

Macros

#define ADIS16130_CON   0x0
 
#define ADIS16130_CON_RD   (1 << 6)
 
#define ADIS16130_IOP   0x1
 
#define ADIS16130_IOP_ALL_RDY   (1 << 3)
 
#define ADIS16130_IOP_SYNC   (1 << 0) /* 1 = synchronization enabled */
 
#define ADIS16130_RATEDATA   0x8 /* Gyroscope output, rate of rotation */
 
#define ADIS16130_TEMPDATA   0xA /* Temperature output */
 
#define ADIS16130_RATECS   0x28 /* Gyroscope channel setup */
 
#define ADIS16130_RATECS_EN   (1 << 3) /* 1 = channel enable; */
 
#define ADIS16130_TEMPCS   0x2A /* Temperature channel setup */
 
#define ADIS16130_TEMPCS_EN   (1 << 3)
 
#define ADIS16130_RATECONV   0x30
 
#define ADIS16130_TEMPCONV   0x32
 
#define ADIS16130_MODE   0x38
 
#define ADIS16130_MODE_24BIT   (1 << 1) /* 1 = 24-bit resolution; */
 

Functions

 module_spi_driver (adis16130_driver)
 
 MODULE_AUTHOR ("Barry Song <[email protected]>")
 
 MODULE_DESCRIPTION ("Analog Devices ADIS16130 High Precision Angular Rate")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("spi:adis16130")
 

Macro Definition Documentation

#define ADIS16130_CON   0x0

Definition at line 22 of file adis16130_core.c.

#define ADIS16130_CON_RD   (1 << 6)

Definition at line 23 of file adis16130_core.c.

#define ADIS16130_IOP   0x1

Definition at line 24 of file adis16130_core.c.

#define ADIS16130_IOP_ALL_RDY   (1 << 3)

Definition at line 27 of file adis16130_core.c.

#define ADIS16130_IOP_SYNC   (1 << 0) /* 1 = synchronization enabled */

Definition at line 28 of file adis16130_core.c.

#define ADIS16130_MODE   0x38

Definition at line 37 of file adis16130_core.c.

#define ADIS16130_MODE_24BIT   (1 << 1) /* 1 = 24-bit resolution; */

Definition at line 38 of file adis16130_core.c.

#define ADIS16130_RATECONV   0x30

Definition at line 35 of file adis16130_core.c.

#define ADIS16130_RATECS   0x28 /* Gyroscope channel setup */

Definition at line 31 of file adis16130_core.c.

#define ADIS16130_RATECS_EN   (1 << 3) /* 1 = channel enable; */

Definition at line 32 of file adis16130_core.c.

#define ADIS16130_RATEDATA   0x8 /* Gyroscope output, rate of rotation */

Definition at line 29 of file adis16130_core.c.

#define ADIS16130_TEMPCONV   0x32

Definition at line 36 of file adis16130_core.c.

#define ADIS16130_TEMPCS   0x2A /* Temperature channel setup */

Definition at line 33 of file adis16130_core.c.

#define ADIS16130_TEMPCS_EN   (1 << 3)

Definition at line 34 of file adis16130_core.c.

#define ADIS16130_TEMPDATA   0xA /* Temperature output */

Definition at line 30 of file adis16130_core.c.

Function Documentation

MODULE_ALIAS ( "spi:adis16130"  )
MODULE_AUTHOR ( "Barry Song <[email protected]>"  )
MODULE_DESCRIPTION ( "Analog Devices ADIS16130 High Precision Angular Rate"  )
MODULE_LICENSE ( "GPL v2 )
module_spi_driver ( adis16130_driver  )