Tool/software: Code Composer Studio
Hi TI-Team
There is some error in the documentation of TivaWare and the implementation.
The software returns only 0 or 1.
Docu:
Returns:
Returns the number of elements read from the SSI receive FIFO.
Code:
//!
//! \return Returns the number of elements read from the SSI receive FIFO.
//
//*****************************************************************************
int32_t
SSIDataGetNonBlocking(uint32_t ui32Base, uint32_t *pui32Data)
{
//
// Check the arguments.
//
ASSERT(_SSIBaseValid(ui32Base));
//
// Check for data to read.
//
if(HWREG(ui32Base + SSI_O_SR) & SSI_SR_RNE)
{
*pui32Data = HWREG(ui32Base + SSI_O_DR);
return(1);
}
else
{
return(0);
}
}