Go to the documentation of this file.
90 uint8_t bytes_number, uint8_t stop_bit);
94 uint8_t bytes_number, uint8_t stop_bit);
int32_t altera_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: altera_i2c.c:67
@ NIOS_II_I2C
Definition: altera_i2c.h:46
enum i2c_type type
Definition: altera_i2c.h:67
int32_t altera_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: altera_i2c.c:105
uint32_t id
Definition: altera_i2c.h:69
struct altera_i2c_desc altera_i2c_desc
struct altera_i2c_init_param altera_i2c_init_param
int32_t altera_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: altera_i2c.c:139
void * extra
Definition: no_os_i2c.h:74
const struct no_os_i2c_platform_ops altera_i2c_ops
Altera platform specific I2C platform ops structure.
Definition: altera_i2c.c:50
int32_t altera_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: altera_i2c.c:67
uint32_t id
Definition: altera_i2c.h:58
enum i2c_type type
Definition: altera_i2c.h:56
Altera platform specific I2C descriptor.
Definition: altera_i2c.h:65
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:101
Header file of I2C Interface.
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:64
i2c_type
Altera platform architecture types.
Definition: altera_i2c.h:44
int32_t altera_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: altera_i2c.c:86
int32_t altera_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: altera_i2c.c:139
int32_t altera_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: altera_i2c.c:105
const struct no_os_i2c_platform_ops altera_i2c_ops
Altera platform specific i2c platform ops structure.
Definition: altera_i2c.c:50
Structure holding the initialization parameters for Altera platform specific I2C parameters.
Definition: altera_i2c.h:54
int32_t altera_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: altera_i2c.c:86