Paparazzi UAS
v5.15_devel-230-gc96ce27
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 bool | i2c_lpc21_idle (struct i2c_periph *p) |
static bool | i2c_lpc21_submit (struct i2c_periph *p, struct i2c_transaction *t) |
static void | i2c_lpc21_setbitrate (struct i2c_periph *p, int bitrate) |
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 ack) |
static void | I2cClearStart (void *reg) |
static void | I2cClearIT (void *reg) |
static void | I2cAutomaton (int32_t state, struct i2c_periph *p) |
void | i2c_event (void) |
i2c_event() function More... | |
Handling of I2C hardware for LPC21xx.
Definition in file i2c_arch.c.
|
static |
Definition at line 356 of file i2c_arch.c.
References I2CIdle, and i2c_periph::status.
|
static |
Definition at line 398 of file i2c_arch.c.
References i2c_periph::reg_addr.
|
static |
Definition at line 361 of file i2c_arch.c.
References disableIRQ(), enableIRQ(), i2c_periph::errors, I2C_TRANSACTION_QUEUE_LEN, I2CIdle, I2cSendStart(), I2CTransFailed, I2CTransPending, idx, i2c_errors::queue_full_cnt, i2c_transaction::status, i2c_periph::status, i2c_periph::trans, i2c_periph::trans_extract_idx, and i2c_periph::trans_insert_idx.
|
inlinestatic |
Definition at line 110 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 105 of file i2c_arch.c.
References SIC.
|
inlinestatic |
Definition at line 100 of file i2c_arch.c.
References STAC.
Referenced by I2cAutomaton().
|
inlinestatic |
Definition at line 57 of file i2c_arch.c.
References I2C_TRANSACTION_QUEUE_LEN, I2CIdle, and I2cSendStart().
Referenced by I2cFail(), and I2cSendStop().
|
inlinestatic |
Definition at line 80 of file i2c_arch.c.
References I2cEndOfTransaction(), I2CTransFailed, and STO.
Referenced by I2cAutomaton().
|
inlinestatic |
Definition at line 94 of file i2c_arch.c.
Referenced by I2cAutomaton().
|
inlinestatic |
Definition at line 52 of file i2c_arch.c.
References AA.
|
inlinestatic |
Definition at line 89 of file i2c_arch.c.
Referenced by I2cAutomaton().
|
inlinestatic |
Definition at line 46 of file i2c_arch.c.
References I2CStartRequested, and STA.
Referenced by i2c_lpc21_submit(), I2cAutomaton(), and I2cEndOfTransaction().
|
inlinestatic |
Definition at line 72 of file i2c_arch.c.
References I2cEndOfTransaction(), I2CTransSuccess, and STO.
Referenced by I2cAutomaton().