Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
drivers
input
misc
adxl34x.h
Go to the documentation of this file.
1
/*
2
* ADXL345/346 Three-Axis Digital Accelerometers (I2C/SPI Interface)
3
*
4
* Enter bugs at http://blackfin.uclinux.org/
5
*
6
* Copyright (C) 2009 Michael Hennerich, Analog Devices Inc.
7
* Licensed under the GPL-2 or later.
8
*/
9
10
#ifndef _ADXL34X_H_
11
#define _ADXL34X_H_
12
13
struct
device
;
14
struct
adxl34x
;
15
16
struct
adxl34x_bus_ops
{
17
u16
bustype
;
18
int
(*
read
)(
struct
device
*,
unsigned
char
);
19
int
(*
read_block
)(
struct
device
*,
unsigned
char
,
int
,
void
*);
20
int
(*
write
)(
struct
device
*,
unsigned
char
,
unsigned
char
);
21
};
22
23
void
adxl34x_suspend
(
struct
adxl34x
*
ac
);
24
void
adxl34x_resume
(
struct
adxl34x
*
ac
);
25
struct
adxl34x
*
adxl34x_probe
(
struct
device
*
dev
,
int
irq
,
26
bool
fifo_delay_default,
27
const
struct
adxl34x_bus_ops
*
bops
);
28
int
adxl34x_remove
(
struct
adxl34x
*
ac
);
29
30
#endif
Generated on Thu Jan 10 2013 13:39:24 for Linux Kernel by
1.8.2