
MOTOROLA
Appendix E. MPC8240 Drivers
E-23
NOTE
Untested.
eumbbar is the address of the Embedded Utilities Memory Block
Returns: I2CSUCCESS if data byte received
I2CBUFFFULL if buffer is full or no more data expected
Description:
Slave receives one byte of data from master transmitter. The DLI global variables
ByteToRcv, RcvByte, and RcvBufFulStop are used to control the accepting of the data byte
or setting the acknowledge bit (I2CCR.TXAK) if the expected number of bytes have been
received. This function may only be called when the following conditions are met:
I2CSR.MIF = 1 I2CSR.MCF = 1 I2CCR.MSTA = 0 I2CCR.MTX = 0
I2CStatus I2C_Slave_Addr( unsigned int eumbbar );
NOTE
Untested.
eumbbar is the address of the Embedded Utilities Memory Block
Returns: I2CADDRESS if asked to receive data
results from call to I2C_Slave_Xmit if asked to transmit data
Description:
Process slave address phase. Called from I2C_ISR. This function may only be called when
the following conditions are met: I2CSR.MIF = 1 I2CSR.MAAS = 1
I2CStatus I2C_ISR(unsigned int eumbbar );
eumbbar is the address of the Embedded Utilities Memory Block
Returns:
— I2CADDRESS if address phase for master receive
— results from call to I2C_Slave_Addr if being addressed as slave ( untested )
— results from call to I2C_Master_Xmit if master transmit data mode
— results from call to I2C_Master_Rcv if master receive data mode
— results from call to I2C_Slave_Xmit if slave transmit data mode ( untested )
— results from call to I2C_Slave_Rcv if slave receive data mode ( untested )
— I2CSUCCESS if slave has not acknowledged, generated STOP ( untested )
— I2CSUCCESS if master has not acknowledged, wait for STOP ( untested )
— I2CSUCCESS if bus arbitration lost ( untested )
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.