Inter-Integrated Circuit (I2C)
using
If there are no errors, then the data has been sent or is
ready to be read using
For the burst send and receive cases,
the polling method also involves calling the
function for each
byte transmitted or received (using either the
I2C_MASTER_CMD_BURST_SEND_CONT
or
I2C_MASTER_CMD_BURST_RECEIVE_CONT
commands),
and
for
the
last
byte
sent
or
received
(using
either
the
I2C_MASTER_CMD_BURST_SEND_FINISH
or
I2C_MASTER_CMD_BURST_RECEIVE_FINISH
commands).
If
any
error
is
detected
during the burst transfer, the
function should be called using
the
appropriate
stop
command
(
I2C_MASTER_CMD_BURST_SEND_ERROR_STOP
or
I2C_MASTER_CMD_BURST_RECEIVE_ERROR_STOP
).
For the interrupt-driven transaction, the user must register an interrupt handler for the I2C devices
and enable the I2C master interrupt; the interrupt will occur when the master is no longer busy.
12.2
Functions
Functions
bool
(uint32_t ui32Base)
bool
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint32_t ui32Cmd)
uint32_t
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint8_t ui8Data)
void
(uint32_t ui32Base)
void
(uint32_t ui32Base)
uint32_t
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint32_t ui32I2CClk, bool bFast)
void
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint32_t ui32IntFlags)
void
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint32_t ui32IntFlags)
void
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint32_t ui32IntFlags)
bool
(uint32_t ui32Base, bool bMasked)
uint32_t
(uint32_t ui32Base, bool bMasked)
uint32_t
(uint32_t ui32Base)
void
(uint32_t ui32Base, uint8_t ui8SlaveAddr, bool bReceive)
void
(uint32_t ui32Base, uint32_t ui32Value)
void
(void)
12.2.1
Function Documentation
12.2.1.1 ROM_I2CMasterBusBusy
Indicates whether or not the I2C bus is busy.
124
April 8, 2013
Содержание Tiva TM4C123GH6PM
Страница 26: ...Boot Loader 26 April 8 2013...
Страница 68: ...Controller Area Network CAN 68 April 8 2013...
Страница 122: ...Hibernation Module 122 April 8 2013...
Страница 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Страница 152: ...Memory Protection Unit MPU 152 April 8 2013...
Страница 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Страница 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Страница 222: ...System Control 222 April 8 2013...
Страница 270: ...UART 270 April 8 2013...
Страница 296: ...uDMA Controller 296 April 8 2013...
Страница 351: ...April 8 2013 351...