Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
i2c.h File Reference

Go to the source code of this file.

Data Structures

struct  snd_i2c_device
 
struct  snd_i2c_bit_ops
 
struct  snd_i2c_ops
 
struct  snd_i2c_bus
 

Macros

#define SND_I2C_DEVICE_ADDRTEN   (1<<0) /* 10-bit I2C address */
 
#define snd_i2c_device(n)   list_entry(n, struct snd_i2c_device, list)
 
#define snd_i2c_slave_bus(n)   list_entry(n, struct snd_i2c_bus, buses)
 

Functions

int snd_i2c_bus_create (struct snd_card *card, const char *name, struct snd_i2c_bus *master, struct snd_i2c_bus **ri2c)
 
int snd_i2c_device_create (struct snd_i2c_bus *bus, const char *name, unsigned char addr, struct snd_i2c_device **rdevice)
 
int snd_i2c_device_free (struct snd_i2c_device *device)
 
int snd_i2c_sendbytes (struct snd_i2c_device *device, unsigned char *bytes, int count)
 
int snd_i2c_readbytes (struct snd_i2c_device *device, unsigned char *bytes, int count)
 
int snd_i2c_probeaddr (struct snd_i2c_bus *bus, unsigned short addr)
 

Macro Definition Documentation

Definition at line 37 of file i2c.h.

#define SND_I2C_DEVICE_ADDRTEN   (1<<0) /* 10-bit I2C address */

Definition at line 24 of file i2c.h.

#define snd_i2c_slave_bus (   n)    list_entry(n, struct snd_i2c_bus, buses)

Definition at line 76 of file i2c.h.

Function Documentation

int snd_i2c_bus_create ( struct snd_card card,
const char name,
struct snd_i2c_bus master,
struct snd_i2c_bus **  ri2c 
)

Definition at line 79 of file i2c.c.

int snd_i2c_device_create ( struct snd_i2c_bus bus,
const char name,
unsigned char  addr,
struct snd_i2c_device **  rdevice 
)

Definition at line 113 of file i2c.c.

int snd_i2c_device_free ( struct snd_i2c_device device)

Definition at line 134 of file i2c.c.

int snd_i2c_probeaddr ( struct snd_i2c_bus bus,
unsigned short  addr 
)

Definition at line 160 of file i2c.c.

int snd_i2c_readbytes ( struct snd_i2c_device device,
unsigned char bytes,
int  count 
)

Definition at line 153 of file i2c.c.

int snd_i2c_sendbytes ( struct snd_i2c_device device,
unsigned char bytes,
int  count 
)

Definition at line 146 of file i2c.c.