libpynq (release 5EWC0-2023 version 0.2.4 of 2023-10-07 15:07)
|
#include <linux/i2c-dev.h>
Go to the source code of this file.
Macros | |
#define | writeI2C_byte(i2c_fd, u8RegAddr, u8Data) i2c_smbus_write_byte_data(i2c_fd, u8RegAddr, u8Data); |
#define | writeI2C_word(i2c_fd, u8RegAddr, u16Data) i2c_smbus_write_word_data(i2c_fd, u8RegAddr, u16Data); |
Functions | |
int | setI2C (unsigned int index, long slave_addr) |
int | unsetI2C (int i2c_fd) |
int | writeI2C_asFile (int i2c_fd, unsigned char writebuffer[], unsigned char bytes) |
int | readI2C_asFile (int i2c_fd, unsigned char readbuffer[], unsigned char bytes) |
Functions to interact with linux I2C.
MODIFICATION HISTORY: Ver Who Date Changes ----- -------- -------- ----------------------------------------------- 1.00a gn 01/24/15 First release 1.00b yrq 08/31/16 Added license header
Definition in file i2cps.h.
#define writeI2C_byte | ( | i2c_fd, | |
u8RegAddr, | |||
u8Data | |||
) | i2c_smbus_write_byte_data(i2c_fd, u8RegAddr, u8Data); |
#define writeI2C_word | ( | i2c_fd, | |
u8RegAddr, | |||
u16Data | |||
) | i2c_smbus_write_word_data(i2c_fd, u8RegAddr, u16Data); |
int readI2C_asFile | ( | int | i2c_fd, |
unsigned char | readbuffer[], | ||
unsigned char | bytes | ||
) |
int setI2C | ( | unsigned int | index, |
long | slave_addr | ||
) |
int unsetI2C | ( | int | i2c_fd | ) |