libpynq  (release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
iic.c
Go to the documentation of this file.
1 #include <iic.h>
2 void iic_init(const iic_index_t iic){};
3 void iic_destroy(const iic_index_t iic){};
4 bool iic_set_slave_mode(const iic_index_t iic, const uint8_t addr,
5  uint32_t *register_map, const uint32_t rm_length) {}
6 void iic_reset(const iic_index_t iic) {}
7 bool iic_read_register(const iic_index_t iic, const uint8_t addr,
8  const uint8_t reg, uint8_t *data,
9  uint16_t length){};
10 bool iic_write_register(const iic_index_t iic, const uint8_t addr,
11  const uint8_t reg, uint8_t *data,
12  uint16_t length){};
iic_init
void iic_init(const iic_index_t iic)
Initialize the IIC specified by the index with a shared memory handle and a buffer size of 4096 bytes...
Definition: iic.c:2
iic_set_slave_mode
bool iic_set_slave_mode(const iic_index_t iic, const uint8_t addr, uint32_t *register_map, const uint32_t rm_length)
Definition: iic.c:4
iic_index_t
iic_index_t
Enum of IICs. Functions use a switch numbered from 0..NUM_IICS-1.
Definition: iic.h:114
iic_destroy
void iic_destroy(const iic_index_t iic)
Close the shared memory handle for the specified IIC index.
Definition: iic.c:3
iic.h
iic_reset
void iic_reset(const iic_index_t iic)
Definition: iic.c:6
iic_read_register
bool iic_read_register(const iic_index_t iic, const uint8_t addr, const uint8_t reg, uint8_t *data, uint16_t length)
Definition: iic.c:7
iic_write_register
bool iic_write_register(const iic_index_t iic, const uint8_t addr, const uint8_t reg, uint8_t *data, uint16_t length)
Definition: iic.c:10