Tool/software: Code Composer Studio
Hi,
I have a doubt in UART section.How to send a 13 byte of packet through the FIFO in the UART .
#pragma pack(1)
typedef struct __Datapacket__
{
unsigned int Header;
unsigned char Maxsize;
short int X_Data;
short int Y_Data;
short int Z_Data;
short int checksum;
}Datapacket;
Suppose the above is my packet and size is 13 byte and i want to send these Datapacket through UART to the serial port of the PC.Then i will decode the Packet in PC side for the feature work.Can any one guide me how to work with these.
After studying some forum in tiva and datasheet i got if data need to Tx-it through UART by writing the data in DATA REGISTER .So studying forum and uart_polled.c present in the example i got an idea
UARTCharPut(UART0_BASE, sizeof(Datapacket));
I don't know wheather the above is correct or not.Can any one provide correct path to handle these in UART.
