![]() |
THM1176InstrumentDriver
1.0
C++ API for Metrolab THM1176
|
#include "IEEE488InstrumentTypes.h"
Go to the source code of this file.
Macros | |
#define | R8(x) ((unsigned)((const U8*)(x))[0]) |
Memory access macros. More... | |
#define | RB16(x) |
#define | RL16(x) |
#define | RB16S(x) |
#define | RL16S(x) |
#define | RB32(x) |
#define | RL32(x) |
#define | RB32S(x) |
#define | RL32S(x) |
#define | RB64(x) |
#define | RL64(x) |
#define | RL64S(x) |
#define | RBFL(x) ((union { uint32_t u; float f; }) { .u = RB32(x) }.f) |
#define | RLFL(x) ((union { uint32_t u; float f; }) { .u = RL32(x) }.f) |
#define | W8(p, x) do { ((U8*)(p))[0] = (U8) (x); } while (0) |
#define | WB16(p, x) |
#define | WL16(p, x) |
#define | WB32(p, x) |
#define | WL32(p, x) |
#define | WBFL(p, x) WB32(p, (union { uint32_t u; float f; }) { .f = x }.u) |
#define | WLFL(p, x) WL32(p, (union { uint32_t u; float f; }) { .f = x }.u) |
#define R8 | ( | x | ) | ((unsigned)((const U8*)(x))[0]) |
Memory access macros.
Read a 8 bits unsigned integer out of memory.
x | a pointer to the input memory |
Definition at line 140 of file USBTMCPrivate.h.
#define RB16 | ( | x | ) |
Read a 16 bits big endian unsigned integer out of memory.
x | a pointer to the input memory |
Definition at line 147 of file USBTMCPrivate.h.
#define RB16S | ( | x | ) |
Read a 16 bits big endian signed integer out of memory.
x | a pointer to the input memory |
Definition at line 163 of file USBTMCPrivate.h.
#define RB32 | ( | x | ) |
Read a 32 bits big endian unsigned integer out of memory.
x | a pointer to the input memory |
Definition at line 181 of file USBTMCPrivate.h.
#define RB32S | ( | x | ) |
Read a 32 bits big endian signed integer out of memory.
x | a pointer to the input memory |
Definition at line 201 of file USBTMCPrivate.h.
#define RB64 | ( | x | ) |
Read a 64 bits big endian unsigned integer out of memory.
x | a pointer to the input memory |
Definition at line 223 of file USBTMCPrivate.h.
#define RBFL | ( | x | ) | ((union { uint32_t u; float f; }) { .u = RB32(x) }.f) |
Read a 32 bits big endian float out of memory.
x | a pointer to the input memory |
Definition at line 266 of file USBTMCPrivate.h.
#define RL16 | ( | x | ) |
Read a 16 bits little endian unsigned integer out of memory.
x | a pointer to the input memory |
Definition at line 155 of file USBTMCPrivate.h.
#define RL16S | ( | x | ) |
Read a 16 bits little endian signed integer out of memory.
x | a pointer to the input memory |
Definition at line 172 of file USBTMCPrivate.h.
#define RL32 | ( | x | ) |
Read a 32 bits little endian unsigned integer out of memory.
x | a pointer to the input memory |
Definition at line 191 of file USBTMCPrivate.h.
#define RL32S | ( | x | ) |
Read a 32 bits little endian signed integer out of memory.
x | a pointer to the input memory |
Definition at line 212 of file USBTMCPrivate.h.
#define RL64 | ( | x | ) |
Read a 64 bits little endian unsigned integer out of memory.
x | a pointer to the input memory |
Definition at line 237 of file USBTMCPrivate.h.
#define RL64S | ( | x | ) |
Read a 64 bits little endian signed integer out of memory.
x | a pointer to the input memory |
Definition at line 251 of file USBTMCPrivate.h.
#define RLFL | ( | x | ) | ((union { uint32_t u; float f; }) { .u = RL32(x) }.f) |
Read a 32 bits little endian float out of memory.
x | a pointer to the input memory |
Definition at line 273 of file USBTMCPrivate.h.
Write a 8 bits unsigned integer to memory.
p | a pointer to the output memory |
x | the input unsigned integer |
Definition at line 280 of file USBTMCPrivate.h.
#define WB16 | ( | p, | |
x | |||
) |
#define WB32 | ( | p, | |
x | |||
) |
Write a 32 bits unsigned integer to memory stored as big endian.
p | a pointer to the output memory |
x | the input unsigned integer |
Definition at line 303 of file USBTMCPrivate.h.
#define WBFL | ( | p, | |
x | |||
) | WB32(p, (union { uint32_t u; float f; }) { .f = x }.u) |
Write a 32 bits float to memory stored as big endian.
p | a pointer to the output memory |
x | the input float |
Definition at line 323 of file USBTMCPrivate.h.
#define WL16 | ( | p, | |
x | |||
) |
#define WL32 | ( | p, | |
x | |||
) |
Write a 32 bits unsigned integer to memory stored as little endian.
p | a pointer to the output memory |
x | the input unsigned integer |
Definition at line 313 of file USBTMCPrivate.h.
#define WLFL | ( | p, | |
x | |||
) | WL32(p, (union { uint32_t u; float f; }) { .f = x }.u) |
Write a 32 bits float to memory stored as little endian.
p | a pointer to the output memory |
x | the input float |
Definition at line 330 of file USBTMCPrivate.h.
anonymous enum |
Definition at line 17 of file USBTMCPrivate.h.
anonymous enum |
Definition at line 52 of file USBTMCPrivate.h.
enum USBTMCError |
Error codes. Complementary to libusb errors (0 to -99).
Definition at line 95 of file USBTMCPrivate.h.
|
static |
Definition at line 91 of file USBTMCPrivate.h.
|
static |
Definition at line 83 of file USBTMCPrivate.h.
|
static |
Definition at line 81 of file USBTMCPrivate.h.
|
static |
Definition at line 87 of file USBTMCPrivate.h.
|
static |
Definition at line 82 of file USBTMCPrivate.h.
|
static |
Constants for USBTMC and USB488.
Definition at line 13 of file USBTMCPrivate.h.
|
static |
Definition at line 88 of file USBTMCPrivate.h.
|
static |
Definition at line 84 of file USBTMCPrivate.h.
|
static |
Definition at line 70 of file USBTMCPrivate.h.
|
static |
Definition at line 71 of file USBTMCPrivate.h.
|
static |
Definition at line 73 of file USBTMCPrivate.h.
|
static |
Definition at line 72 of file USBTMCPrivate.h.
|
static |
Definition at line 36 of file USBTMCPrivate.h.
|
static |
Definition at line 37 of file USBTMCPrivate.h.
|
static |
Definition at line 35 of file USBTMCPrivate.h.
|
static |
Definition at line 39 of file USBTMCPrivate.h.
|
static |
Definition at line 38 of file USBTMCPrivate.h.
|
static |
Definition at line 76 of file USBTMCPrivate.h.
|
static |
Definition at line 77 of file USBTMCPrivate.h.
|
static |
Definition at line 78 of file USBTMCPrivate.h.
|
static |
Definition at line 47 of file USBTMCPrivate.h.
|
static |
Definition at line 49 of file USBTMCPrivate.h.
|
static |
Definition at line 45 of file USBTMCPrivate.h.
|
static |
Definition at line 44 of file USBTMCPrivate.h.
|
static |
Definition at line 68 of file USBTMCPrivate.h.
|
static |
Error explanations.
Definition at line 114 of file USBTMCPrivate.h.
|
static |
Definition at line 46 of file USBTMCPrivate.h.
|
static |
Definition at line 48 of file USBTMCPrivate.h.
|
static |
Definition at line 43 of file USBTMCPrivate.h.
|
static |
Definition at line 66 of file USBTMCPrivate.h.
|
static |
Definition at line 64 of file USBTMCPrivate.h.
|
static |
Definition at line 65 of file USBTMCPrivate.h.
|
static |
Definition at line 40 of file USBTMCPrivate.h.
|
static |
Definition at line 41 of file USBTMCPrivate.h.
|
static |
Definition at line 42 of file USBTMCPrivate.h.
|
static |
Definition at line 14 of file USBTMCPrivate.h.