Linux Kernel
3.7.1
|
#include <linux/interrupt.h>
#include <linux/fs.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/spi/spi.h>
#include <linux/sysfs.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/iio/events.h>
#include <linux/iio/buffer.h>
#include "sca3000.h"
Go to the source code of this file.
Macros | |
#define | SCA3000_INFO_MASK IIO_CHAN_INFO_RAW_SEPARATE_BIT | IIO_CHAN_INFO_SCALE_SHARED_BIT |
#define | SCA3000_EVENT_MASK (IIO_EV_BIT(IIO_EV_TYPE_MAG, IIO_EV_DIR_RISING)) |
#define | SCA3000_CHAN(index, mod) |
Enumerations | |
enum | sca3000_variant { d01, e02, e04, e05 } |
Functions | |
int | sca3000_write_reg (struct sca3000_state *st, u8 address, u8 val) |
int | sca3000_read_data_short (struct sca3000_state *st, uint8_t reg_address_high, int len) |
MODULE_DEVICE_TABLE (spi, sca3000_id) | |
module_spi_driver (sca3000_driver) | |
MODULE_AUTHOR ("Jonathan Cameron <[email protected]>") | |
MODULE_DESCRIPTION ("VTI SCA3000 Series Accelerometers SPI driver") | |
MODULE_LICENSE ("GPL v2") | |
Definition at line 436 of file sca3000_core.c.
#define SCA3000_EVENT_MASK (IIO_EV_BIT(IIO_EV_TYPE_MAG, IIO_EV_DIR_RISING)) |
Definition at line 433 of file sca3000_core.c.
#define SCA3000_INFO_MASK IIO_CHAN_INFO_RAW_SEPARATE_BIT | IIO_CHAN_INFO_SCALE_SHARED_BIT |
Definition at line 431 of file sca3000_core.c.
enum sca3000_variant |
Definition at line 28 of file sca3000_core.c.
MODULE_AUTHOR | ( | "Jonathan Cameron <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | spi | , |
sca3000_id | |||
) |
MODULE_LICENSE | ( | "GPL v2" | ) |
module_spi_driver | ( | sca3000_driver | ) |
int sca3000_read_data_short | ( | struct sca3000_state * | st, |
uint8_t | reg_address_high, | ||
int | len | ||
) |
Definition at line 89 of file sca3000_core.c.
int sca3000_write_reg | ( | struct sca3000_state * | st, |
u8 | address, | ||
u8 | val | ||
) |
sca3000_write_reg() write a single register : address of register on chip : value to be written to register
The main lock must be held.
Definition at line 82 of file sca3000_core.c.