Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
adxl34x-spi.c File Reference
#include <linux/input.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/pm.h>
#include <linux/types.h>
#include "adxl34x.h"

Go to the source code of this file.

Macros

#define MAX_SPI_FREQ_HZ   5000000
 
#define MAX_FREQ_NO_FIFODELAY   1500000
 
#define ADXL34X_CMD_MULTB   (1 << 6)
 
#define ADXL34X_CMD_READ   (1 << 7)
 
#define ADXL34X_WRITECMD(reg)   (reg & 0x3F)
 
#define ADXL34X_READCMD(reg)   (ADXL34X_CMD_READ | (reg & 0x3F))
 
#define ADXL34X_READMB_CMD(reg)
 

Functions

 module_spi_driver (adxl34x_driver)
 
 MODULE_AUTHOR ("Michael Hennerich <[email protected]>")
 
 MODULE_DESCRIPTION ("ADXL345/346 Three-Axis Digital Accelerometer SPI Bus Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ADXL34X_CMD_MULTB   (1 << 6)

Definition at line 19 of file adxl34x-spi.c.

#define ADXL34X_CMD_READ   (1 << 7)

Definition at line 20 of file adxl34x-spi.c.

#define ADXL34X_READCMD (   reg)    (ADXL34X_CMD_READ | (reg & 0x3F))

Definition at line 22 of file adxl34x-spi.c.

#define ADXL34X_READMB_CMD (   reg)
Value:

Definition at line 23 of file adxl34x-spi.c.

#define ADXL34X_WRITECMD (   reg)    (reg & 0x3F)

Definition at line 21 of file adxl34x-spi.c.

#define MAX_FREQ_NO_FIFODELAY   1500000

Definition at line 18 of file adxl34x-spi.c.

#define MAX_SPI_FREQ_HZ   5000000

Definition at line 17 of file adxl34x-spi.c.

Function Documentation

MODULE_AUTHOR ( "Michael Hennerich <[email protected]>"  )
MODULE_DESCRIPTION ( "ADXL345/346 Three-Axis Digital Accelerometer SPI Bus Driver"  )
MODULE_LICENSE ( "GPL"  )
module_spi_driver ( adxl34x_driver  )