Download Stellaris Peripheral Driver Library User's Guide

Transcript
Stellaris Peripheral Driver Library User’s Guide
Returns:
None.
9.2.2.25 I2CSlaveIntStatus
Gets the current I2C Slave interrupt status.
Prototype:
tBoolean
I2CSlaveIntStatus(unsigned long ulBase,
tBoolean bMasked)
Parameters:
ulBase is the base address of the I2C Slave module.
bMasked is false if the raw interrupt status is requested and true if the masked interrupt status
is requested.
Description:
This returns the interrupt status for the I2C Slave module. Either the raw interrupt status or the
status of interrupts that are allowed to reflect to the processor can be returned.
Returns:
The current interrupt status, returned as true if active or false if not active.
9.2.2.26 I2CSlaveStatus
Gets the I2C Slave module status
Prototype:
unsigned long
I2CSlaveStatus(unsigned long ulBase)
Parameters:
ulBase is the base address of the I2C Slave module.
Description:
This function will return the action requested from a master, if any. Possible values are:
I2C_SLAVE_ACT_NONE
I2C_SLAVE_ACT_RREQ
I2C_SLAVE_ACT_TREQ
I2C_SLAVE_ACT_RREQ_FBR
Returns:
Returns I2C_SLAVE_ACT_NONE to indicate that no action has been requested of the I2C
Slave module, I2C_SLAVE_ACT_RREQ to indicate that an I2C master has sent data to the
I2C Slave module, I2C_SLAVE_ACT_TREQ to indicate that an I2C master has requested that
the I2C Slave module send data, and I2C_SLAVE_ACT_RREQ_FBR to indicate that an I2C
master has sent data to the I2C slave and the first byte following the slave’s own address has
been received.
October 11, 2007
125