634 sci->
SCIHBAUD = ((uint16_t)baudRate >> 8);
650 sci->
SCICCR |= charLength;
struct _SCI_Obj_ * SCI_Handle
Defines the serial communications interface (SCI) handle.
#define SCI_SCICCR_PARITY_BITS
Defines the location of the EVEN/ODD PARITY bits in the SCICCR register.
void SCI_clearAutoBaudDetect(SCI_Handle sciHandle)
Clears the auto baud detect mode.
uint16_t SCI_getDataBlocking(SCI_Handle sciHandle)
Gets data from the serial communications interface (Blocking)
void SCI_setPriority(SCI_Handle sciHandle, const SCI_Priority_e priority)
Sets the serial communications interface (SCI) priority.
#define SCI_SCIFFCT_CDC_BITS
Defines the location of the CDC bits in the SCIFFCT register.
void SCI_reset(SCI_Handle sciHandle)
Resets the serial communications interface (SCI)
#define SCI_SCIFFTX_IENA_BITS
Defines the location of the TXFFIENA bits in the SCIFFTX register.
void SCI_enableTxWake(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) wakeup method.
SCI_FifoLevel_e
Enumeration to define the serial communications interface (SCI) FIFO level.
void SCI_enable(SCI_Handle sciHandle)
Enables the serial communications interface (SCI)
void SCI_enableTx(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) masater/slave transmit mode.
void SCI_enableRxInt(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) receive interrupt.
#define SCI_SCIFFTX_IL_BITS
Defines the location of the TXFFIL4-0 bits in the SCIFFTX register.
volatile uint16_t SCIFFTX
SCI FIFO Transmit Register.
#define SCI_SCICCR_PARITY_ENA_BITS
Defines the location of the PARITY ENABLE bits in the SCICCR register.
void SCI_disable(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) interrupt.
void SCI_disableTx(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) master/slave transmit mode.
void SCI_enableAutoBaudAlign(SCI_Handle sciHandle)
Enable the serial communications interface (SCI) auto baud alignment.
void SCI_setMode(SCI_Handle sciHandle, const SCI_Mode_e mode)
Sets the serial communications interface (SCI) miltprocessor mode.
volatile uint16_t SCIPRI
SCI Priority Register.
void SCI_enableTxFifoInt(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) transmit FIFO interrupt.
void SCI_setRxFifoIntLevel(SCI_Handle sciHandle, const SCI_FifoLevel_e fifoLevel)
Sets the serial communications interface (SCI) receive FIFO level for generating an interrupt...
#define SCI_SCICTL1_RESET_BITS
Defines the location of the SW RESET bits in the SCICTL1 register.
#define SCI_SCIFFTX_FIFO_RESET_BITS
Defines the location of the TXFIFO Reset bits in the SCIFFTX register.
void SCI_enableParity(SCI_Handle sciHandle)
Enables the serial peripheral interface (SCI) parity.
volatile uint16_t SCICTL1
SCI Control Register 1.
void SCI_enableTxFifo(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) transmit FIFO.
void SCI_enableRxFifoInt(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) receive FIFO interrupt.
#define SCI_SCIFFTX_INTCLR_BITS
Defines the location of the TXFFINT CLR bits in the SCIFFTX register.
void SCI_disableLoopBack(SCI_Handle sciHandle)
Disables the serial peripheral interface (SCI) loop back mode.
static bool SCI_rxDataReady(SCI_Handle sciHandle)
Determines if the serial communications interface (SCI) has receive data ready.
#define SCI_SCICTL1_RXENA_BITS
Defines the location of the RXENA bits in the SCICTL1 register.
#define SCI_SCIFFRX_FIFO_ST_BITS
Defines the location of the RXFFST4-0 bits in the SCIFFRX register.
SCI_FifoStatus_e
Enumeration to define the serial communications interface (SCI) FIFO status.
void SCI_setCharLength(SCI_Handle sciHandle, const SCI_CharLength_e charLength)
Sets the serial communications interface (SCI) character length.
#define SCI_SCIFFRX_IL_BITS
Defines the location of the RXFFIL4-0 bits in the SCIFFRX register.
void SCI_enableSleep(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) sleep mode.
void SCI_setBaudRate(SCI_Handle sciHandle, const SCI_BaudRate_e baudRate)
Sets the serial communications interface (SCI) baud rate.
void SCI_enableTxFifoEnh(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) transmit FIFO enhancements.
uint16_t SCI_getDataNonBlocking(SCI_Handle sciHandle, uint16_t *success)
Read data from the serial communications interface (Non-Blocking)
void SCI_disableRxFifoInt(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) receive FIFO interrupt.
#define SCI_SCIFFRX_IENA_BITS
Defines the location of the RXFFIENA bits in the SCIFFRX register.
void SCI_disableRxErrorInt(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) receive error interrupt.
volatile uint16_t SCITXBUF
SCI Transmit Data Buffer Register.
Contains public interface to various functions related to the serial communications interface (SCI) o...
#define SCI_SCICTL1_SLEEP_BITS
Defines the location of the SLEEP bits in the SCICTL1 register.
SCI_NumStopBits_e
Enumeration to define the serial communications interface (SCI) number of stop bits.
void SCI_setNumStopBits(SCI_Handle sciHandle, const SCI_NumStopBits_e numBits)
Sets the serial communications interface (SCI) number of stop bits.
#define SCI_SCIFFTX_FIFO_ST_BITS
Defines the location of the TXFFST4-0 bits in the SCIFFTX register.
#define SCI_SCIFFRX_FIFO_RESET_BITS
Defines the location of the RXFIFO Reset bits in the SCIFFRX register.
void SCI_clearRxFifoOvf(SCI_Handle sciHandle)
Clears the Rx FIFO overflow flag.
#define SCI_SCICCR_STOP_BITS
Defines the location of the STOP bits in the SCICCR register.
#define SCI_SCIFFCT_ABDCLR_BITS
Defines the location of the ABD CLR bits in the SCIFFCT register.
Defines the serial communications interface (SCI) object.
void SCI_resetTxFifo(SCI_Handle sciHandle)
Resets the serial communications interface (SCI) transmit FIFO.
void SCI_disableParity(SCI_Handle sciHandle)
Disable the parity.
void SCI_disableAutoBaudAlign(SCI_Handle sciHandle)
Disable the serial communications interface (SCI) auto baud alignment.
SCI_CharLength_e
Enumeration to define the serial communications interface (SCI) character lengths.
#define SCI_SCICCR_LB_ENA_BITS
Defines the location of the LOOP BACK ENA bits in the SCICCR register.
void SCI_enableRxFifo(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) receive FIFO.
void SCI_disableRxInt(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) receive interrupt.
static bool SCI_txReady(SCI_Handle sciHandle)
Determines if the serial communications interface (SCI) is ready to transmit.
#define SCI_SCIFFCT_DELAY_BITS
Defines the location of the FFTXDLY7-0 bits in the SCIFFCT register.
void SCI_setTxDelay(SCI_Handle sciHandle, const uint_least8_t delay)
Sets the serial communications interface (SCI) transmit delay.
volatile uint16_t SCICTL2
SCI Control Register 2.
SCI_Priority_e
Enumeration to define the serial communications interface (SCI) emulation suspend priority...
void SCI_enableLoopBack(SCI_Handle sciHandle)
Enables the serial peripheral interface (SCI) loop back mode.
void SCI_setParity(SCI_Handle sciHandle, const SCI_Parity_e parity)
Sets the serial communications interface (SCI) parity.
#define SCI_SCIFFRX_INTCLR_BITS
Defines the location of the RXFFINT CLR bits in the SCIFFRX register.
void SCI_enableTxInt(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) transmit interrupt.
volatile uint16_t SCIRXBUF
SCI Receive Data Buffer Register.
uint16_t SCI_putDataNonBlocking(SCI_Handle sciHandle, uint16_t data)
Writes data to the serial communications interface (Non-Blocking)
#define SCI_SCICCR_MODE_BITS
Defines the location of the ADDR/IDLE MODE bits in the SCICCR register.
void SCI_resetRxFifo(SCI_Handle sciHandle)
Resets the serial communications interface (SCI) receive FIFO.
SCI_FifoStatus_e SCI_getRxFifoStatus(SCI_Handle sciHandle)
Gets the serial communications interface (SCI) receive FIFO status.
#define SCI_SCIFFTX_CHAN_RESET_BITS
Defines the location of the SCIRST bits in the SCIFFTX register.
void SCI_disableTxWake(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) wakeup method.
void SCI_enableChannels(SCI_Handle sciHandle)
Enable the serial communications interface (SCI) transmit and receive channels.
volatile uint16_t SCIHBAUD
SCI Baud Register, High Bits.
void SCI_disableTxFifoEnh(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) transmit FIFO enhancements.
void SCI_disableSleep(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) sleep mode.
SCI_Mode_e
Enumeration to define the serial communications interface (SCI) multiprocessor protocol mode...
#define SCI_SCICTL1_TXENA_BITS
Defines the location of the TXENA bits in the SCICTL1 register.
SCI_FifoStatus_e SCI_getTxFifoStatus(SCI_Handle sciHandle)
Gets the serial communications interface (SCI) transmit FIFO status.
void SCI_putDataBlocking(SCI_Handle sciHandle, uint16_t data)
Writes data to the serial communications interface (Blocking)
#define SCI_SCICTL1_RX_ERR_INT_ENA_BITS
Defines the location of the RX ERR INT ENA bits in the SCICTL1 register.
void SCI_clearTxFifoInt(SCI_Handle sciHandle)
Clears the Tx FIFO interrupt flag.
void SCI_disableTxInt(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) transmit interrupt.
volatile uint16_t SCIFFRX
SCI FIFO Receive Register.
void SCI_enableRx(SCI_Handle sciHandle)
Enables the serial peripheral interface (SCI) receiver.
void SCI_disableRx(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) master/slave receive mode.
SCI_Parity_e
Enumeration to define the serial communications interface (SCI) parity.
volatile uint16_t SCIFFCT
SCI FIFO Control Register.
SCI_BaudRate_e
Enumeration to define the serial communications interface (SCI) baud rates. This enumeration assume a...
#define SCI_SCICCR_CHAR_LENGTH_BITS
Defines the location of the SCICHAR2-0 bits in the SCICCR register.
volatile uint16_t SCICCR
SCI Configuration Control Register.
#define SCI_SCICTL2_RX_INT_ENA_BITS
Defines the location of the RX/BK INT ENA bits in the SCICTL2 register.
#define SCI_SCICTL2_TX_INT_ENA_BITS
Defines the location of the TX INT ENA bits in the SCICTL2 register.
void SCI_enableRxErrorInt(SCI_Handle sciHandle)
Enables the serial communications interface (SCI) receive error interrupt.
#define SCI_SCIFFRX_FIFO_OVFCLR_BITS
Defines the location of the RXFFOVF CLR bits in the SCIFFRX register.
void SCI_disableTxFifoInt(SCI_Handle sciHandle)
Disables the serial communications interface (SCI) transmit FIFO interrupt.
#define SCI_SCIFFTX_FIFO_ENA_BITS
Defines the location of the SCIFFENA bits in the SCIFFTX register.
void SCI_setTxFifoIntLevel(SCI_Handle sciHandle, const SCI_FifoLevel_e fifoLevel)
Sets the serial communications interface (SCI) transmit FIFO level for generating an interrupt...
void SCI_clearRxFifoInt(SCI_Handle sciHandle)
Clears the Rx FIFO interrupt flag.
volatile uint16_t SCILBAUD
SCI Baud Register, Low Bits.
SCI_Handle SCI_init(void *pMemory, const size_t numBytes)
Initializes the serial communications interface (SCI) object handle.
#define SCI_SCICTL1_TXWAKE_BITS
Defines the location of the TXWAKE bits in the SCICTL1 register.
void SCI_resetChannels(SCI_Handle sciHandle)
Resets the serial communications interface (SCI) transmit and receive channels.