E-44
DINK32 PowerPC ISA Debugger User’s Manual
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
MPC8240 I2O Doorbell Driver
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 );
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 )
F
n
.