struct snd_i2c_bit_ops { void (*start)(struct snd_i2c_bus *bus); /* transfer start */ void (*stop)(struct snd_i2c_bus *bus); /* transfer stop */ void (*direction)(struct snd_i2c_bus *bus, int clock, int data); /* set line direction (0 = write, 1 = read) */ void (*setlines)(struct snd_i2c_bus *bus, int clock, int data); int (*getclock)(struct snd_i2c_bus *bus); int (*getdata)(struct snd_i2c_bus *bus, int ack);
};
struct snd_i2c_ops { int (*sendbytes)(struct snd_i2c_device *device, unsignedchar *bytes, int count); int (*readbytes)(struct snd_i2c_device *device, unsignedchar *bytes, int count); int (*probeaddr)(struct snd_i2c_bus *bus, unsignedshort addr);
};
struct snd_i2c_bus { struct snd_card *card; /* card which I2C belongs to */ char name[32]; /* some useful label */
struct mutex lock_mutex;
struct snd_i2c_bus *master; /* master bus when SCK/SCL is shared */ struct list_head buses; /* master: slave buses sharing SCK/SCL, slave: link list */
struct list_head devices; /* attached devices to this bus */
int snd_i2c_sendbytes(struct snd_i2c_device *device, unsignedchar *bytes, int count); int snd_i2c_readbytes(struct snd_i2c_device *device, unsignedchar *bytes, int count); int snd_i2c_probeaddr(struct snd_i2c_bus *bus, unsignedshort addr);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.