|
Linux Kernel
3.7.1
|
#include <linux/kernel.h>#include <linux/errno.h>#include <linux/module.h>#include <linux/slab.h>#include <linux/types.h>#include <linux/usb.h>#include <linux/i2c.h>Go to the source code of this file.
Data Structures | |
| struct | i2c_tiny_usb |
Macros | |
| #define | CMD_ECHO 0 |
| #define | CMD_GET_FUNC 1 |
| #define | CMD_SET_DELAY 2 |
| #define | CMD_GET_STATUS 3 |
| #define | CMD_I2C_IO 4 |
| #define | CMD_I2C_IO_BEGIN (1<<0) |
| #define | CMD_I2C_IO_END (1<<1) |
| #define | STATUS_IDLE 0 |
| #define | STATUS_ADDRESS_ACK 1 |
| #define | STATUS_ADDRESS_NAK 2 |
Functions | |
| module_param (delay, ushort, 0) | |
| MODULE_PARM_DESC (delay,"bit delay in microseconds ""(default is 10us for 100kHz max)") | |
| MODULE_DEVICE_TABLE (usb, i2c_tiny_usb_table) | |
| module_usb_driver (i2c_tiny_usb_driver) | |
| MODULE_AUTHOR ("Till Harbaum <[email protected]>") | |
| MODULE_DESCRIPTION ("i2c-tiny-usb driver v1.0") | |
| MODULE_LICENSE ("GPL") | |
| #define CMD_ECHO 0 |
Definition at line 26 of file i2c-tiny-usb.c.
| #define CMD_GET_FUNC 1 |
Definition at line 27 of file i2c-tiny-usb.c.
| #define CMD_GET_STATUS 3 |
Definition at line 29 of file i2c-tiny-usb.c.
| #define CMD_I2C_IO 4 |
Definition at line 31 of file i2c-tiny-usb.c.
| #define CMD_I2C_IO_BEGIN (1<<0) |
Definition at line 32 of file i2c-tiny-usb.c.
| #define CMD_I2C_IO_END (1<<1) |
Definition at line 33 of file i2c-tiny-usb.c.
| #define CMD_SET_DELAY 2 |
Definition at line 28 of file i2c-tiny-usb.c.
| #define STATUS_ADDRESS_ACK 1 |
Definition at line 52 of file i2c-tiny-usb.c.
| #define STATUS_ADDRESS_NAK 2 |
Definition at line 53 of file i2c-tiny-usb.c.
| #define STATUS_IDLE 0 |
Definition at line 51 of file i2c-tiny-usb.c.
| MODULE_AUTHOR | ( | "Till Harbaum <[email protected]>" | ) |
| MODULE_DEVICE_TABLE | ( | usb | , |
| i2c_tiny_usb_table | |||
| ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| MODULE_PARM_DESC | ( | delay | , |
| "bit delay in microseconds ""(default is 10us for 100kHz max)" | |||
| ) |
| module_usb_driver | ( | i2c_tiny_usb_driver | ) |
1.8.2