Hi,

I will set the pretext:

Code:
typedef struct
  {
  ubyte
    command;
  ubyte
    data_length;
  ubyte
    data[MAX_DATA_LENGTH];
  WORD_UNION
    CRC;
  }COMMAND_PACKET;

void send_packet(COMMAND_PACKET *packet);
How would I call/use the function send_packet() in the main()

Can you give me an example of using it?

Thanks