/* Set the the LCD entry mode. 
The parameter of ucCursorMoveDirection can be: */
void SPLC780EntryModeSet(unsigned char ucCursorMoveDirection, xtBoolean bDisplayShift)
/* Set the the LCD entry mode. 
The parameter of ucCursorMoveDirection can be: */
void SPLC780EntryModeSet(unsigned char ucCursorMoveDirection, xtBoolean bDisplayShift)
{
    unsigned char ucDisplayShiftCmd;
    xASSERT((ucCursorMoveDirection == SPLC780_MOVE_DIRECTION_INC) || 
            (ucCursorMoveDirection == SPLC780_MOVE_DIRECTION_DEC));
    ucDisplayShiftCmd = (bDisplayShift ? SPLC780_ENTRY_MODE_SET_S : 0);
    while(SPLC780Busy());
    SPLC780WriteCmd(SPLC780_CMD_ENTRY_MODE_SET(ucCursorMoveDirection | 
                                               ucDisplayShiftCmd));    
}