Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
smiapp-regs.h File Reference
#include <linux/i2c.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  smia_reg
 

Macros

#define SMIA_REG_FLAG_FLOAT   (1 << 24)
 
#define SMIA_REG_8BIT   1
 
#define SMIA_REG_16BIT   2
 
#define SMIA_REG_32BIT   4
 

Functions

int smiapp_read (struct smiapp_sensor *sensor, u32 reg, u32 *val)
 
int smiapp_read_8only (struct smiapp_sensor *sensor, u32 reg, u32 *val)
 
int smiapp_write (struct smiapp_sensor *sensor, u32 reg, u32 val)
 

Macro Definition Documentation

#define SMIA_REG_16BIT   2

Definition at line 35 of file smiapp-regs.h.

#define SMIA_REG_32BIT   4

Definition at line 36 of file smiapp-regs.h.

#define SMIA_REG_8BIT   1

Definition at line 34 of file smiapp-regs.h.

#define SMIA_REG_FLAG_FLOAT   (1 << 24)

Definition at line 32 of file smiapp-regs.h.

Function Documentation

int smiapp_read ( struct smiapp_sensor sensor,
u32  reg,
u32 val 
)

Definition at line 192 of file smiapp-regs.c.

int smiapp_read_8only ( struct smiapp_sensor sensor,
u32  reg,
u32 val 
)

Definition at line 200 of file smiapp-regs.c.

int smiapp_write ( struct smiapp_sensor sensor,
u32  reg,
u32  val 
)

Definition at line 209 of file smiapp-regs.c.