E-22
DINK32 PowerPC ISA Debugger User’s Manual
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
MPC8240 I2C Driver Library
eumbbar is the address of the Embedded Utilities Memory Block
Returns: Any defined status indicator
Description:
Generate a STOP signal to terminate the master transaction.
I2CStatus I2C_Master_Xmit( unsigned int eumbbar );
eumbbar is the address of the Embedded Utilities Memory Block
Returns: Any defined status indicator
Description:
Master sends one byte of data to slave receiver. The DLI global variables ByteToXmit,
XmitByte, and XmitBufEmptyStop are used to determine which data byte, or STOP, to
transmit. If a data byte is sent, it is written to the I2CDR. This function may only be called
when the following conditions are met: I2CSR.MIF = 1 I2CSR.MCF = 1 I2CSR.RXAK =
0 I2CCR.MSTA = 1 I2CCR.MTX = 1
I2CStatus I2C_Master_Rcv( unsigned int eumbbar );
eumbbar is the address of the Embedded Utilities Memory Block
Returns: Any defined status indicator
Description:
Master receives one byte of data from slave transmitter. The DLI global variables
ByteToRcv, RcvByte, and RcvBufFulStop are used to control the accepting of the data byte
or sending of a STOP if the buffer is full. This function may only be called when the
following conditions are met: I2CSR.MIF = 1 I2CSR.MCF = 1 I2CCR.MSTA = 1
I2CCR.MTX = 0
I2CStatus I2C_Slave_Xmit( unsigned int eumbbar );
NOTE
Untested.
eumbbar is the address of the Embedded Utilities Memory Block
Returns: I2CSUCCESS if data byte sent
I2CBUFFEMPTY if no data in sending buffer
Description:
Slave sends one byte of data to requesting master. The DLI global variables ByteToXmit,
XmitByte, and XmitBuf are used to determine which byte, if any, to send. This function
may only be called when the following conditions are met: I2CSR.MIF = 1 I2CSR.MCF =
1 I2CSR.RXAK = 0 I2CCR.MSTA = 0 I2CCR.MTX = 1
I2CStatus I2C_Slave_Rcv(unsigned int eumbbar );
F
n
.