![]() |
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
I2C-bus driver. More...
#include <linux/types.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
Go to the source code of this file.
Data Structures | |
struct | i2c_msg |
union | i2c_smbus_data |
I2C-bus driver.
Definition in file i2c_smbus.h.
struct i2c_msg |
union i2c_smbus_data |
Definition at line 92 of file i2c_smbus.h.
Data Fields | ||
---|---|---|
__u8 | block[I2C_SMBUS_BLOCK_MAX+2] | |
__u8 | byte | |
__u16 | word |
#define I2C_FUNC_10BIT_ADDR 0x00000002 |
Definition at line 56 of file i2c_smbus.h.
#define I2C_FUNC_I2C 0x00000001 |
Definition at line 55 of file i2c_smbus.h.
#define I2C_FUNC_PROTOCOL_MANGLING 0x00000004 /* I2C_M_{REV_DIR_ADDR,NOSTART,..} */ |
Definition at line 57 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_BLOCK_DATA |
Definition at line 79 of file i2c_smbus.h.
Definition at line 59 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_BYTE |
Definition at line 73 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_BYTE_DATA |
Definition at line 75 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_HWPEC_CALC I2C_FUNC_SMBUS_PEC |
Definition at line 85 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_I2C_BLOCK |
Definition at line 81 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_PEC 0x00000008 |
Definition at line 58 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_PROC_CALL 0x00800000 |
Definition at line 67 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_QUICK 0x00010000 |
Definition at line 60 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_READ_BLOCK_DATA 0x01000000 |
Definition at line 68 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_READ_BYTE 0x00020000 |
Definition at line 61 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_READ_BYTE_DATA 0x00080000 |
Definition at line 63 of file i2c_smbus.h.
Definition at line 70 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_READ_WORD_DATA 0x00200000 |
Definition at line 65 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_WORD_DATA |
Definition at line 77 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_WRITE_BLOCK_DATA 0x02000000 |
Definition at line 69 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_WRITE_BYTE 0x00040000 |
Definition at line 62 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_WRITE_BYTE_DATA 0x00100000 |
Definition at line 64 of file i2c_smbus.h.
Definition at line 71 of file i2c_smbus.h.
#define I2C_FUNC_SMBUS_WRITE_WORD_DATA 0x00400000 |
Definition at line 66 of file i2c_smbus.h.
#define I2C_FUNCS 0x0705 /* Get the adapter functionality */ |
Definition at line 137 of file i2c_smbus.h.
#define I2C_M_IGNORE_NAK 0x1000 |
Definition at line 47 of file i2c_smbus.h.
#define I2C_M_NO_RD_ACK 0x0800 |
Definition at line 48 of file i2c_smbus.h.
#define I2C_M_NOSTART 0x4000 |
Definition at line 45 of file i2c_smbus.h.
#define I2C_M_RD 0x01 |
Definition at line 44 of file i2c_smbus.h.
#define I2C_M_REV_DIR_ADDR 0x2000 |
Definition at line 46 of file i2c_smbus.h.
Definition at line 43 of file i2c_smbus.h.
Definition at line 138 of file i2c_smbus.h.
Definition at line 122 of file i2c_smbus.h.
Definition at line 129 of file i2c_smbus.h.
Definition at line 131 of file i2c_smbus.h.
#define I2C_SMBUS_BLOCK_DATA 5 |
Definition at line 110 of file i2c_smbus.h.
Definition at line 90 of file i2c_smbus.h.
Definition at line 112 of file i2c_smbus.h.
#define I2C_SMBUS_BYTE 1 |
Definition at line 106 of file i2c_smbus.h.
#define I2C_SMBUS_BYTE_DATA 2 |
Definition at line 107 of file i2c_smbus.h.
#define I2C_SMBUS_I2C_BLOCK_BROKEN 6 |
Definition at line 111 of file i2c_smbus.h.
#define I2C_SMBUS_I2C_BLOCK_DATA 8 |
Definition at line 113 of file i2c_smbus.h.
Definition at line 91 of file i2c_smbus.h.
#define I2C_SMBUS_PROC_CALL 4 |
Definition at line 109 of file i2c_smbus.h.
#define I2C_SMBUS_QUICK 0 |
Definition at line 105 of file i2c_smbus.h.
#define I2C_SMBUS_READ 1 |
Definition at line 100 of file i2c_smbus.h.
#define I2C_SMBUS_WORD_DATA 3 |
Definition at line 108 of file i2c_smbus.h.
#define I2C_SMBUS_WRITE 0 |
Definition at line 101 of file i2c_smbus.h.
Definition at line 135 of file i2c_smbus.h.
Definition at line 125 of file i2c_smbus.h.
|
inlinestatic |
Definition at line 149 of file i2c_smbus.h.
References foo, and I2C_SMBUS.
Referenced by i2c_smbus_block_process_call(), i2c_smbus_process_call(), i2c_smbus_read_block_data(), i2c_smbus_read_byte(), i2c_smbus_read_byte_data(), i2c_smbus_read_i2c_block_data(), i2c_smbus_read_word_data(), i2c_smbus_write_block_data(), i2c_smbus_write_byte(), i2c_smbus_write_byte_data(), i2c_smbus_write_i2c_block_data(), i2c_smbus_write_quick(), and i2c_smbus_write_word_data().
|
inlinestatic |
Definition at line 312 of file i2c_smbus.h.
References i2c_smbus_data::block, i2c_smbus_access(), I2C_SMBUS_BLOCK_PROC_CALL, and I2C_SMBUS_WRITE.
Definition at line 223 of file i2c_smbus.h.
References i2c_smbus_access(), I2C_SMBUS_PROC_CALL, I2C_SMBUS_WRITE, and i2c_smbus_data::word.
Definition at line 237 of file i2c_smbus.h.
References i2c_smbus_data::block, i2c_smbus_access(), I2C_SMBUS_BLOCK_DATA, and I2C_SMBUS_READ.
Definition at line 167 of file i2c_smbus.h.
References i2c_smbus_data::byte, i2c_smbus_access(), I2C_SMBUS_BYTE, and I2C_SMBUS_READ.
Definition at line 183 of file i2c_smbus.h.
References i2c_smbus_data::byte, i2c_smbus_access(), I2C_SMBUS_BYTE_DATA, and I2C_SMBUS_READ.
Referenced by bat_voltage_ardrone2_periodic().
|
inlinestatic |
Definition at line 273 of file i2c_smbus.h.
References i2c_smbus_data::block, i2c_smbus_access(), I2C_SMBUS_I2C_BLOCK_BROKEN, I2C_SMBUS_I2C_BLOCK_DATA, and I2C_SMBUS_READ.
Definition at line 203 of file i2c_smbus.h.
References i2c_smbus_access(), I2C_SMBUS_READ, I2C_SMBUS_WORD_DATA, and i2c_smbus_data::word.
|
inlinestatic |
Definition at line 253 of file i2c_smbus.h.
References i2c_smbus_data::block, i2c_smbus_access(), I2C_SMBUS_BLOCK_DATA, and I2C_SMBUS_WRITE.
Definition at line 177 of file i2c_smbus.h.
References foo, i2c_smbus_access(), I2C_SMBUS_BYTE, and I2C_SMBUS_WRITE.
Definition at line 194 of file i2c_smbus.h.
References i2c_smbus_data::byte, i2c_smbus_access(), I2C_SMBUS_BYTE_DATA, and I2C_SMBUS_WRITE.
Referenced by electrical_ardrone2_setup().
|
inlinestatic |
Definition at line 295 of file i2c_smbus.h.
References i2c_smbus_data::block, i2c_smbus_access(), I2C_SMBUS_I2C_BLOCK_BROKEN, and I2C_SMBUS_WRITE.
Definition at line 162 of file i2c_smbus.h.
References foo, i2c_smbus_access(), and I2C_SMBUS_QUICK.
Definition at line 214 of file i2c_smbus.h.
References i2c_smbus_access(), I2C_SMBUS_WORD_DATA, I2C_SMBUS_WRITE, and i2c_smbus_data::word.