|
sketchbook
|
#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include <errno.h>#include <string.h>#include <fcntl.h>#include <sys/ioctl.h>#include <asm/ioctl.h>#include "wiringPi.h"#include "wiringPiI2C.h"Classes | |
| union | i2c_smbus_data |
| struct | i2c_smbus_ioctl_data |
Macros | |
| #define | I2C_SLAVE 0x0703 |
| #define | I2C_SMBUS 0x0720 /* SMBus-level access */ |
| #define | I2C_SMBUS_READ 1 |
| #define | I2C_SMBUS_WRITE 0 |
| #define | I2C_SMBUS_QUICK 0 |
| #define | I2C_SMBUS_BYTE 1 |
| #define | I2C_SMBUS_BYTE_DATA 2 |
| #define | I2C_SMBUS_WORD_DATA 3 |
| #define | I2C_SMBUS_PROC_CALL 4 |
| #define | I2C_SMBUS_BLOCK_DATA 5 |
| #define | I2C_SMBUS_I2C_BLOCK_BROKEN 6 |
| #define | I2C_SMBUS_BLOCK_PROC_CALL 7 /* SMBus 2.0 */ |
| #define | I2C_SMBUS_I2C_BLOCK_DATA 8 |
| #define | I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */ |
| #define | I2C_SMBUS_I2C_BLOCK_MAX 32 /* Not specified but we use same structure */ |
Functions | |
| int | wiringPiI2CRead (int fd) |
| int | wiringPiI2CReadReg8 (int fd, int reg) |
| int | wiringPiI2CReadReg16 (int fd, int reg) |
| int | wiringPiI2CWrite (int fd, int data) |
| int | wiringPiI2CWriteReg8 (int fd, int reg, int value) |
| int | wiringPiI2CWriteReg16 (int fd, int reg, int value) |
| int | wiringPiI2CSetupInterface (const char *device, int devId) |
| int | wiringPiI2CSetup (const int devId) |
| #define I2C_SLAVE 0x0703 |
| #define I2C_SMBUS 0x0720 /* SMBus-level access */ |
| #define I2C_SMBUS_BLOCK_DATA 5 |
| #define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */ |
| #define I2C_SMBUS_BLOCK_PROC_CALL 7 /* SMBus 2.0 */ |
| #define I2C_SMBUS_BYTE 1 |
| #define I2C_SMBUS_BYTE_DATA 2 |
| #define I2C_SMBUS_I2C_BLOCK_BROKEN 6 |
| #define I2C_SMBUS_I2C_BLOCK_DATA 8 |
| #define I2C_SMBUS_I2C_BLOCK_MAX 32 /* Not specified but we use same structure */ |
| #define I2C_SMBUS_PROC_CALL 4 |
| #define I2C_SMBUS_QUICK 0 |
| #define I2C_SMBUS_READ 1 |
| #define I2C_SMBUS_WORD_DATA 3 |
| #define I2C_SMBUS_WRITE 0 |
| int wiringPiI2CRead | ( | int | fd | ) |
| int wiringPiI2CReadReg16 | ( | int | fd, |
| int | reg | ||
| ) |
| int wiringPiI2CReadReg8 | ( | int | fd, |
| int | reg | ||
| ) |
| int wiringPiI2CSetup | ( | const int | devId | ) |
| int wiringPiI2CSetupInterface | ( | const char * | device, |
| int | devId | ||
| ) |
| int wiringPiI2CWrite | ( | int | fd, |
| int | data | ||
| ) |
| int wiringPiI2CWriteReg16 | ( | int | fd, |
| int | reg, | ||
| int | value | ||
| ) |
| int wiringPiI2CWriteReg8 | ( | int | fd, |
| int | reg, | ||
| int | value | ||
| ) |
1.8.6