Go to the source code of this file.
Macros | |
#define | BYTE_SWAP_INT16(S) |
#define | BYTE_SWAP_INT32(L) |
#define | BYTE_SWAP_INT64(LL) |
#define | IGTL_SCALAR_COMPLEX 13 |
#define | IGTL_SCALAR_FLOAT32 10 |
#define | IGTL_SCALAR_FLOAT64 11 |
#define | IGTL_SCALAR_INT16 4 |
#define | IGTL_SCALAR_INT32 6 |
#define | IGTL_SCALAR_INT8 2 |
#define | IGTL_SCALAR_UINT16 5 |
#define | IGTL_SCALAR_UINT32 7 |
#define | IGTL_SCALAR_UINT8 3 |
Functions | |
igtl_uint64 igtl_export | crc64 (unsigned char *data, igtl_uint64 len, igtl_uint64 crc) |
igtl_uint32 igtl_export | igtl_frac_to_nanosec (igtl_uint32 frac) |
igtl_uint32 igtl_export | igtl_get_scalar_size (int type) |
int igtl_export | igtl_is_little_endian () |
void igtl_export | igtl_message_dump_hex (FILE *stream, const void *message, int max_size) |
igtl_uint32 igtl_export | igtl_nanosec_to_frac (igtl_uint32 nanosec) |
#define BYTE_SWAP_INT16 | ( | S | ) |
Byte order conversion macros
Definition at line 41 of file igtl_util.h.
#define BYTE_SWAP_INT32 | ( | L | ) |
Definition at line 43 of file igtl_util.h.
#define BYTE_SWAP_INT64 | ( | LL | ) |
Definition at line 45 of file igtl_util.h.
#define IGTL_SCALAR_COMPLEX 13 |
Definition at line 37 of file igtl_util.h.
#define IGTL_SCALAR_FLOAT32 10 |
Definition at line 35 of file igtl_util.h.
#define IGTL_SCALAR_FLOAT64 11 |
Definition at line 36 of file igtl_util.h.
#define IGTL_SCALAR_INT16 4 |
Definition at line 31 of file igtl_util.h.
#define IGTL_SCALAR_INT32 6 |
Definition at line 33 of file igtl_util.h.
#define IGTL_SCALAR_INT8 2 |
Definition at line 29 of file igtl_util.h.
#define IGTL_SCALAR_UINT16 5 |
Definition at line 32 of file igtl_util.h.
#define IGTL_SCALAR_UINT32 7 |
Definition at line 34 of file igtl_util.h.
#define IGTL_SCALAR_UINT8 3 |
Definition at line 30 of file igtl_util.h.
igtl_uint64 igtl_export crc64 | ( | unsigned char * | data, |
igtl_uint64 | len, | ||
igtl_uint64 | crc | ||
) |
Tests endian of the host
igtl_uint32 igtl_export igtl_frac_to_nanosec | ( | igtl_uint32 | frac | ) |
Tests endian of the host
igtl_uint32 igtl_export igtl_get_scalar_size | ( | int | type | ) |
Gets size of scalar. Type should be IGTL_SCALAR_*
int igtl_export igtl_is_little_endian | ( | ) |
Tests endian of the host
void igtl_export igtl_message_dump_hex | ( | FILE * | stream, |
const void * | message, | ||
int | max_size | ||
) |
Tests endian of the host
igtl_uint32 igtl_export igtl_nanosec_to_frac | ( | igtl_uint32 | nanosec | ) |
Converts nanosecond to fraction / fraction to nanosec.