103 #define I2C_TENBIT_ADDRESS 0x7800 123 #define I2C_RESET_MAX_CYCLES 32 137 return i2c->
write ( i2c, i2cdev, 0,
NULL, 0 );
int(* write)(struct i2c_interface *i2c, struct i2c_device *i2cdev, unsigned int offset, const uint8_t *data, unsigned int len)
Write data to I2C device.
static int i2c_check_presence(struct i2c_interface *i2c, struct i2c_device *i2cdev)
Check presence of I2C device.
A bit-bashing I2C interface.
unsigned int dev_addr
Address of this device.
static __always_inline void init_i2c_eeprom(struct i2c_device *i2cdev, unsigned int dev_addr)
Initialise generic I2C EEPROM device.
int init_i2c_bit_basher(struct i2c_bit_basher *i2cbit, struct bit_basher_operations *bash_op)
Initialise I2C bit-bashing interface.
struct i2c_interface i2c
I2C interface.
struct bit_basher basher
Bit-bashing interface.
#define __always_inline
Declare a function to be always inline.
static __always_inline void init_at24c11(struct i2c_device *i2cdev)
Initialise Atmel AT24C11.
int(* read)(struct i2c_interface *i2c, struct i2c_device *i2cdev, unsigned int offset, uint8_t *data, unsigned int len)
Read data from I2C device.
unsigned int word_addr_len
Word adddress length, in bytes.
uint8_t data[48]
Additional event data.
uint16_t offset
Offset to command line.
unsigned int dev_addr_len
Device address length, in bytes.
#define NULL
NULL pointer (VOID *)
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)