libClearCore/src/SerialBase.cpp
void SerialBase::DataOrder(DataOrders newOrder) {
    bool sercomEnabled = m_serPort->USART.CTRLA.bit.ENABLE;
    PortDisable();
    // SPI/USART use the same bit.
    m_serPort->USART.CTRLA.bit.DORD = newOrder;
    if (sercomEnabled) {
        PortEnable();
    }
}
/**
    Change the data order for the port.
**/
Change the data order for the port.
Change the data order for the port .
void SerialBase::DataOrder(DataOrders newOrder) {
    bool sercomEnabled = m_serPort->USART.CTRLA.bit.ENABLE;
    PortDisable();
    m_serPort->USART.CTRLA.bit.DORD = newOrder;
    if (sercomEnabled) {
        PortEnable();
    }
}
void SerialBase :: DataOrder ( DataOrders newOrder ) { bool sercomEnabled = m_serPort -> USART . CTRLA . bit . ENABLE ; PortDisable ( ) ; m_serPort -> USART . CTRLA . bit . DORD = newOrder ; if ( sercomEnabled ) { PortEnable ( ) ; } }
Change the data order for the port.
Change the data order for the port .
// SPI/USART use the same bit.