Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
Source
igtlutil
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
27
extern
"C"
{
28
#endif
29
30
#pragma pack(1)
/* For 1-byte boundary in memroy */
31
32
typedef
struct
{
33
igtl_uint8
larray
;
/* Length of array (0-255) */
34
igtl_uint8
status
;
/* (reserved) sensor status */
35
igtl_unit
unit
;
/* Unit */
36
}
igtl_sensor_header
;
37
38
#pragma pack()
39
42
igtl_uint32
igtl_export
igtl_sensor_get_data_size
(
igtl_sensor_header
* header);
43
46
void
igtl_export
igtl_sensor_convert_byte_order
(
igtl_sensor_header
* header, igtl_float64* data);
47
50
igtl_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_unit
igtl_uint64 igtl_unit
Definition:
igtl_unit.h:72
igtl_util.h
igtl_sensor_header::larray
igtl_uint8 larray
Definition:
igtl_sensor.h:33
igtl_types.h
igtl_sensor_header
Definition:
igtl_sensor.h:32
igtl_sensor_get_crc
igtl_uint64 igtl_export igtl_sensor_get_crc(igtl_sensor_header *header, igtl_float64 *data)
igtl_sensor_header::status
igtl_uint8 status
Definition:
igtl_sensor.h:34
igtl_sensor_header::unit
igtl_unit unit
Definition:
igtl_sensor.h:35
igtl_sensor_get_data_size
igtl_uint32 igtl_export igtl_sensor_get_data_size(igtl_sensor_header *header)
igtl_win32header.h
igtl_sensor_convert_byte_order
void igtl_export igtl_sensor_convert_byte_order(igtl_sensor_header *header, igtl_float64 *data)
igtl_unit.h
igtl_export
#define igtl_export
Definition:
igtl_win32header.h:28
Generated for OpenIGTLink by
Doxygen
1.8.17 written by
Dimitri van Heesch
, © 1997-2012