Go to the source code of this file.
|
enum | TransferState {
TRANSFER_IDLE,
TRANSFER_START,
TRANSFER_START2,
TRANSFER_ADDR,
TRANSFER_DATA,
TRANSFER_WRITE,
TRANSFER_READ,
TRANSFER_WBIT,
TRANSFER_RBIT,
TRANSFER_WACK,
TRANSFER_RACK,
TRANSFER_STOP,
TRANSFER_STOP2,
TRANSFER_STOP3,
TRANSFER_RESTART,
TRANSFER_WAIT,
TRANSFER_TESTING
} |
|
enum | IicPortPins { IIC_PORT_BUFFER_CTRL,
IIC_PORT_CLOCK,
IIC_PORT_DATA,
IIC_PORT_PINS
} |
|
#define IIC_PORT_CONFIG_IOC _IOW(IIC_MAGIC,0, int) |
#define PINHigh |
( |
|
port, |
|
|
|
pin |
|
) |
| { (*IicPortPin[port][pin].pGpio).set_data = IicPortPin[port][pin].Mask; } |
#define PINInput |
( |
|
port, |
|
|
|
pin |
|
) |
| { (*IicPortPin[port][pin].pGpio).dir |= IicPortPin[port][pin].Mask; } |
#define PINLow |
( |
|
port, |
|
|
|
pin |
|
) |
| { (*IicPortPin[port][pin].pGpio).clr_data = IicPortPin[port][pin].Mask; } |
#define PINOutput |
( |
|
port, |
|
|
|
pin |
|
) |
| { (*IicPortPin[port][pin].pGpio).dir &= ~IicPortPin[port][pin].Mask; } |
#define PINRead |
( |
|
port, |
|
|
|
pin |
|
) |
| (((*IicPortPin[port][pin].pGpio).in_data & IicPortPin[port][pin].Mask)?1:0) |
Enumerator |
---|
IIC_PORT_BUFFER_CTRL |
|
IIC_PORT_CLOCK |
|
IIC_PORT_DATA |
|
IIC_PORT_PINS |
|
Definition at line 82 of file d_iic.h.
Enumerator |
---|
TRANSFER_IDLE |
|
TRANSFER_START |
|
TRANSFER_START2 |
|
TRANSFER_ADDR |
|
TRANSFER_DATA |
|
TRANSFER_WRITE |
|
TRANSFER_READ |
|
TRANSFER_WBIT |
|
TRANSFER_RBIT |
|
TRANSFER_WACK |
|
TRANSFER_RACK |
|
TRANSFER_STOP |
|
TRANSFER_STOP2 |
|
TRANSFER_STOP3 |
|
TRANSFER_RESTART |
|
TRANSFER_WAIT |
|
TRANSFER_TESTING |
|
Definition at line 29 of file d_iic.h.