U8 --- 1 byte
s16---2 byte
typedef struct
{
U8 DL ;
U8 IN ;
U8/S16 Data ; /* Data*/
}Appl;
1.) As u can c the Data field i want to have can be of 1 byte or 2 bytes
please advice the type of structure i should have i don't want to have 2 structures.
2.) i want to transmit the above data through the serial port using my driver, now if the Transmission has to be in BIG ENDIAN format the High byte goes first....when i recieve the same structure back how do i know the data is One bye or 2 byte.
cool