Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtl_sensor.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: The OpenIGTLink Library
4 Language: C
5 Web page: http://openigtlink.org/
6
7 Copyright (c) Insight Software Consortium. All rights reserved.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notices for more information.
12
13=========================================================================*/
14
15#ifndef __IGTL_SENSOR_H
16#define __IGTL_SENSOR_H
17
18#include "igtl_win32header.h"
19#include "igtl_util.h"
20#include "igtl_types.h"
21#include "igtl_unit.h"
22#include "igtl_win32header.h"
23
24#define IGTL_SENSOR_HEADER_SIZE 10
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#pragma pack(1) /* For 1-byte boundary in memroy */
31
32typedef struct {
33 igtl_uint8 larray; /* Length of array (0-255) */
34 igtl_uint8 status; /* (reserved) sensor status */
35 igtl_unit unit; /* Unit */
37
38#pragma pack()
39
43
47
50igtl_uint64 igtl_export igtl_sensor_get_crc(igtl_sensor_header * header, igtl_float64* data);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif /* __IGTL_SENSOR_H */
igtl_uint64 igtl_export igtl_sensor_get_crc(igtl_sensor_header *header, igtl_float64 *data)
igtl_uint32 igtl_export igtl_sensor_get_data_size(igtl_sensor_header *header)
void igtl_export igtl_sensor_convert_byte_order(igtl_sensor_header *header, igtl_float64 *data)
igtl_uint64 igtl_unit
Definition igtl_unit.h:72
#define igtl_export
igtl_uint8 status
Definition igtl_sensor.h:34
igtl_uint8 larray
Definition igtl_sensor.h:33

Generated for OpenIGTLink by Doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2012