Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Handling of I2C hardware for LPC21xx. More...
Go to the source code of this file.
Functions | |
static void | I2cSendStart (struct i2c_periph *p) |
static void | I2cSendAck (void *reg) |
static void | I2cEndOfTransaction (struct i2c_periph *p) |
static void | I2cSendStop (struct i2c_periph *p, struct i2c_transaction *t) |
static void | I2cFail (struct i2c_periph *p, struct i2c_transaction *t) |
static void | I2cSendByte (void *reg, uint8_t b) |
static void | I2cReceive (void *reg, bool_t ack) |
static void | I2cClearStart (void *reg) |
static void | I2cClearIT (void *reg) |
static void | I2cAutomaton (int32_t state, struct i2c_periph *p) |
bool_t | i2c_idle (struct i2c_periph *p) |
Check if I2C bus is idle. More... | |
bool_t | i2c_submit (struct i2c_periph *p, struct i2c_transaction *t) |
Submit a I2C transaction. More... | |
void | i2c_event (void) |
void | i2c_setbitrate (struct i2c_periph *p, int bitrate) |
Set I2C bitrate. More... | |
Handling of I2C hardware for LPC21xx.
Definition in file i2c_arch.c.
|
inlinestatic |
Definition at line 104 of file i2c_arch.c.
References i2c_transaction::buf, I2C_MR_DATA_ACK, I2C_MR_DATA_NACK, I2C_MR_SLA_ACK, I2C_MR_SLA_NACK, I2C_MT_DATA_ACK, I2C_MT_SLA_ACK, I2C_MT_SLA_NACK, I2C_RESTART, I2C_START, I2cClearStart(), I2cFail(), I2cReceive(), I2cSendByte(), I2cSendStart(), I2cSendStop(), I2CTransRx, I2CTransTx, I2CTransTxRx, i2c_transaction::len_r, i2c_transaction::len_w, i2c_transaction::slave_addr, and i2c_transaction::type.
|
inlinestatic |
Definition at line 99 of file i2c_arch.c.
References SIC.
|
inlinestatic |
Definition at line 94 of file i2c_arch.c.
References STAC.
Referenced by I2cAutomaton().
|
inlinestatic |
Definition at line 51 of file i2c_arch.c.
References I2C_TRANSACTION_QUEUE_LEN, I2CIdle, and I2cSendStart().
Referenced by I2cFail(), and I2cSendStop().
|
inlinestatic |
Definition at line 74 of file i2c_arch.c.
References I2cEndOfTransaction(), I2CTransFailed, and STO.
Referenced by I2cAutomaton().
|
inlinestatic |
Definition at line 88 of file i2c_arch.c.
Referenced by I2cAutomaton().
|
inlinestatic |
Definition at line 46 of file i2c_arch.c.
References AA.
|
inlinestatic |
Definition at line 83 of file i2c_arch.c.
Referenced by I2cAutomaton().
|
inlinestatic |
Definition at line 40 of file i2c_arch.c.
References I2CStartRequested, and STA.
Referenced by i2c_submit(), I2cAutomaton(), and I2cEndOfTransaction().
|
inlinestatic |
Definition at line 66 of file i2c_arch.c.
References I2cEndOfTransaction(), I2CTransSuccess, and STO.
Referenced by I2cAutomaton().