/* Gets the number of bits transferred per frame.  */
unsigned char xSPIBitLengthGet(unsigned long ulBase)
/* Gets the number of bits transferred per frame.  */
unsigned char xSPIBitLengthGet(unsigned long ulBase)
{
    xASSERT(ulBase == SPI0_BASE);
    return ((xHWREG(ulBase + SPI_CNTRL) & SPI_CNTRL_TX_BIT_LEN_M)             
            >> SPI_CNTRL_TX_BIT_LEN_S);
}