This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Uint16 Error

I'm trying to move what's on my Receive buffer to my transmit buffer using the UART interace and i get this error:

A value of type "union SCIRXBUF_REG" cannot be assigned to an entity of type "Uint16"

now I defined them like this:

#define RXRDY ScibRegs.SCIRXST.bit.RXRDY // UART RX flag
#define TXRDY ScibRegs.SCICTL2.bit.TXRDY // UART TX flag
#define RX_Buf ScibRegs.SCIRXBUF // UART RX buffer
#define TX_Buf ScibRegs.SCITXBUF // UART TX buffer

I used rxrdy and txrdy to poll to see if info has been received. Any idea why this may be occurring?

This is the whole code for that part. Some of it pertains to something else however. 

#define I2C_Out I2caRegs.I2CDXR // I2C output register
#define RXRDY ScibRegs.SCIRXST.bit.RXRDY // UART RX flag
#define TXRDY ScibRegs.SCICTL2.bit.TXRDY // UART TX flag
#define RX_Buf ScibRegs.SCIRXBUF // UART RX buffer
#define TX_Buf ScibRegs.SCITXBUF // UART TX buffer
#define SPI_O SpiaRegs.SPITXBUF // Out buffer
#define SPI_I SpiaRegs.SPIRXBUF // In buffer


void PLL_Init();
void I2C_Init();
void Sci_Init();
void SPI_Init();

int main(void)
{

InitSysCtrl();
EALLOW;

// Initialize all things

PLL_Init();
I2C_Init();
Sci_Init();
SPI_Init();

while (1)
{

if (RXRDY == 1)
{
//TX_Buf = RX_Buf;
}

if (TXRDY == 1)
{
TX_Buf = RX_Buf;
}
// automatic UART Tx/Rx ?