Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
i2c_gpio_platform_data Struct Reference

#include <i2c-gpio.h>

Data Fields

unsigned int sda_pin
 
unsigned int scl_pin
 
int udelay
 
int timeout
 
unsigned int sda_is_open_drain:1
 
unsigned int scl_is_open_drain:1
 
unsigned int scl_is_output_only:1
 

Detailed Description

struct i2c_gpio_platform_data - Platform-dependent data for i2c-gpio : GPIO pin ID to use for SDA : GPIO pin ID to use for SCL : signal toggle delay. SCL frequency is (500 / udelay) kHz : clock stretching timeout in jiffies. If the slave keeps SCL low for longer than this, the transfer will time out. : SDA is configured as open drain, i.e. the pin isn't actively driven high when setting the output value high. gpio_get_value() must return the actual pin state even if the pin is configured as an output. : SCL is set up as open drain. Same requirements as for sda_is_open_drain apply. : SCL output drivers cannot be turned off.

Definition at line 28 of file i2c-gpio.h.

Field Documentation

unsigned int scl_is_open_drain

Definition at line 34 of file i2c-gpio.h.

unsigned int scl_is_output_only

Definition at line 35 of file i2c-gpio.h.

unsigned int scl_pin

Definition at line 30 of file i2c-gpio.h.

unsigned int sda_is_open_drain

Definition at line 33 of file i2c-gpio.h.

unsigned int sda_pin

Definition at line 29 of file i2c-gpio.h.

int timeout

Definition at line 32 of file i2c-gpio.h.

int udelay

Definition at line 31 of file i2c-gpio.h.


The documentation for this struct was generated from the following file: