libpynq (release 5EWC0-2023 version 0.2.2 of 2023-09-24 22:22)
Loading...
Searching...
No Matches
i2cps.c File Reference
#include "i2cps.h"
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <unistd.h>
Include dependency graph for i2cps.c:

Go to the source code of this file.

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)
 

Function Documentation

◆ readI2C_asFile()

int readI2C_asFile ( int  i2c_fd,
unsigned char  readbuffer[],
unsigned char  bytes 
)

Definition at line 88 of file i2cps.c.

Here is the caller graph for this function:

◆ setI2C()

int setI2C ( unsigned int  index,
long  slave_addr 
)

Definition at line 60 of file i2cps.c.

Here is the caller graph for this function:

◆ unsetI2C()

int unsetI2C ( int  i2c_fd)

Definition at line 74 of file i2cps.c.

Here is the caller graph for this function:

◆ writeI2C_asFile()

int writeI2C_asFile ( int  i2c_fd,
unsigned char  writebuffer[],
unsigned char  bytes 
)

Definition at line 79 of file i2cps.c.

Here is the caller graph for this function: