libpynq (release 5EWC0-2023 version 0.2.0 of 2023-08-28 20:33)
Loading...
Searching...
No Matches
iic.c
Go to the documentation of this file.
1#include <iic.h>
2extern void iic_init(const iic_index_t iic){};
3extern void iic_destroy(const iic_index_t iic){};
4extern bool iic_read_register(const iic_index_t iic, const uint8_t addr,
5 const uint8_t reg, uint8_t *data,
6 uint16_t length){};
7extern bool iic_write_register(const iic_index_t iic, const uint8_t addr,
8 const uint8_t reg, uint8_t *data,
9 uint16_t length){};
iic_index_t
Enum of IICs. Functions use a switch numbered from 0..NUM_IICS-1.
Definition iic.h:42
void iic_destroy(const iic_index_t iic)
Close the shared memory handle for the specified IIC index.
Definition iic.c:3
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:7
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:4
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