uint8_t slave_address
Definition: no_os_i2c.h:70
int fd
Definition: linux_i2c.c:60
Structure holding the initialization parameters for Linux platform specific I2C parameters.
Definition: linux_i2c.h:41
void * extra
Definition: no_os_i2c.h:74
uint8_t slave_address
Definition: no_os_i2c.h:109
int32_t linux_i2c_write(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
Write data to a slave device.
Definition: linux_i2c.c:149
const struct no_os_i2c_platform_ops linux_i2c_ops
Linux platform specific I2C platform ops structure.
Definition: linux_i2c.c:220
uint32_t device_id
Definition: linux_i2c.h:43
int32_t linux_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: linux_i2c.c:73
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:101
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
Header file of I2C Interface.
int32_t linux_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: linux_i2c.c:120
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
int32_t linux_i2c_read(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
Read data from a slave device.
Definition: linux_i2c.c:188
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:64
void * extra
Definition: no_os_i2c.h:113
const struct no_os_i2c_platform_ops linux_i2c_ops
Linux specific I2C platform ops structure.
Definition: linux_i2c.c:220
Linux platform specific I2C descriptor.
Definition: linux_i2c.c:58