Go to the documentation of this file.
103 uint8_t bytes_number, uint8_t stop_bit);
107 uint8_t bytes_number, uint8_t stop_bit);
109 #endif // XILINX_I2C_H_
@ IIC_PS
Definition: xilinx_i2c.h:55
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:228
Xilinx platform specific I2C descriptor.
Definition: xilinx_i2c.h:74
int32_t no_os_list_read_find(struct no_os_list_desc *list_desc, void **data, void *cmp_data)
uint32_t inst_no
Definition: xilinx_i2c.c:76
uint32_t device_id
Definition: xilinx_i2c.h:78
void * instance
Definition: xilinx_i2c.c:72
int32_t no_os_iterator_get(struct no_os_iterator *iter, void **data)
uint8_t slave_address
Definition: no_os_i2c.h:70
void * instance
Definition: xilinx_i2c.h:82
@ NO_OS_LIST_DEFAULT
Definition: no_os_list.h:195
Definition: xilinx_i2c.h:63
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
int32_t xil_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: xilinx_i2c.c:155
const struct no_os_i2c_platform_ops xil_i2c_ops
Xilinx platform specific I2C platform ops structure.
Definition: xilinx_i2c.c:87
int32_t xil_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: xilinx_i2c.c:312
enum xil_i2c_type type
Definition: xilinx_i2c.h:76
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
f_add push
Definition: no_os_list.h:230
void * extra
Definition: no_os_i2c.h:74
uint8_t slave_address
Definition: no_os_i2c.h:109
@ IIC_PL
Definition: xilinx_i2c.h:53
uint32_t max_speed_hz
Definition: no_os_i2c.h:68
int32_t xil_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: xilinx_i2c.c:155
const struct no_os_i2c_platform_ops xil_i2c_ops
Xilinx platform specific i2c platform ops structure.
Definition: xilinx_i2c.c:87
int32_t xil_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: xilinx_i2c.c:312
int32_t xil_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: xilinx_i2c.c:387
uint32_t device_id
Definition: xilinx_i2c.c:74
uint32_t max_speed_hz
Definition: no_os_i2c.h:107
int32_t xil_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: xilinx_i2c.c:387
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.
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
xil_i2c_type
Xilinx platform architecture sections.
Definition: xilinx_i2c.h:51
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:64
#define NULL
Definition: wrapper.h:64
int32_t xil_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: xilinx_i2c.c:452
int32_t no_os_iterator_read(struct no_os_iterator *iter, void **data)
enum xil_i2c_type type
Definition: xilinx_i2c.h:65
uint32_t device_id
Definition: xilinx_i2c.h:67
Table item for I2C cores already started.
Definition: xilinx_i2c.c:70
int32_t no_os_list_init(struct no_os_list_desc **list_desc, enum no_os_adapter_type type, f_cmp comparator)
int32_t no_os_iterator_init(struct no_os_iterator **iter, struct no_os_list_desc *list_desc, bool start)
void * extra
Definition: no_os_i2c.h:113
int32_t xil_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: xilinx_i2c.c:452
int32_t no_os_iterator_find(struct no_os_iterator *iter, void *cmp_data)
void * config
Definition: xilinx_i2c.h:80