1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
/*=========================================================================
Program: OpenIGTLLink Library -- Dummy status data
Module: $RCSfile: $
Language: C
Date: $Date: $
Version: $Revision: $
Copyright (c) Insight Software Consortium. All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __IGTL_TEST_DATA_COMMAND_H
#define __IGTL_TEST_DATA_COMMAND_H
unsigned char test_command_message[] = {
/*-------- OpenIGTLink message header -------*/
0x00, 0x01, /* Version number */
0x43, 0x4F, 0x4D, 0x4D, 0x41, 0x4E, 0x44, 0x00,
0x00, 0x00, 0x00, 0x00, /* COMMAND */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Device name */
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Time stamp */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA4, /* Body size */
0x2B, 0xC7, 0xCD, 0x95, 0xB7, 0xC5, 0x95, 0x45, /* CRC */
/////// End of header
////// Start of command message header
0x00, 0x00, 0x00, 0x05, /*Command ID*/
0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x63,
0x6F, 0x6D, 0x6D, 0x61, 0x6E, 0x64, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Command name*/
0x00, 0x03, /* Encoding */
0x00, 0x00, 0x00, 0x1A, /* Command length*/
////// End of command message header
0x53, 0x74, 0x61, 0x72, 0x74, 0x20, 0x74, 0x68,
0x65, 0x20, 0x74, 0x72, 0x61, 0x63, 0x6B, 0x69,
0x6E, 0x67, 0x20, 0x6D, 0x61, 0x63, 0x68, 0x69,
0x6E, 0x65 /* Command */
};
#endif /* __IGTL_TEST_DATA_COMMAND_H */
|