libRBR
v1.2.3
RBR instrument communication API
|
Instrument commands and structures for miscellaneous commands. More...
Go to the source code of this file.
Data Structures | |
struct | RBRInstrumentHardwareRevision |
Instrument hwrev command parameters. More... | |
struct | RBRInstrumentPower |
Instrument power command parameters. More... | |
struct | RBRInstrumentPowerInternal |
Instrument powerinternal command parameters. More... | |
struct | RBRInstrumentPowerExternal |
Instrument powerexternal command parameters. More... | |
struct | RBRInstrumentInfo |
Instrument info command parameters. More... | |
Macros | |
#define | RBRINSTRUMENT_HWREV_CPU_MAX 5 |
The maximum number of characters in the type and revision of the CPU. More... | |
#define | RBRINSTRUMENT_PART_NUMBER_MAX 255 |
The maximum number of characters in an instrument part number. More... | |
Typedefs | |
typedef struct RBRInstrumentHardwareRevision | RBRInstrumentHardwareRevision |
Instrument hwrev command parameters. More... | |
typedef enum RBRInstrumentPowerSource | RBRInstrumentPowerSource |
typedef struct RBRInstrumentPower | RBRInstrumentPower |
Instrument power command parameters. More... | |
typedef enum RBRInstrumentInternalBatteryType | RBRInstrumentInternalBatteryType |
typedef struct RBRInstrumentPowerInternal | RBRInstrumentPowerInternal |
Instrument powerinternal command parameters. More... | |
typedef enum RBRInstrumentExternalBatteryType | RBRInstrumentExternalBatteryType |
typedef struct RBRInstrumentPowerExternal | RBRInstrumentPowerExternal |
Instrument powerexternal command parameters. More... | |
typedef struct RBRInstrumentInfo | RBRInstrumentInfo |
Instrument info command parameters. More... | |
Instrument commands and structures for miscellaneous commands.
#define RBRINSTRUMENT_HWREV_CPU_MAX 5 |
The maximum number of characters in the type and revision of the CPU.
Does not include any null terminator.
#define RBRINSTRUMENT_PART_NUMBER_MAX 255 |
The maximum number of characters in an instrument part number.
Does not include any null terminator.
External battery types.
typedef struct RBRInstrumentHardwareRevision RBRInstrumentHardwareRevision |
Instrument hwrev
command parameters.
typedef struct RBRInstrumentInfo RBRInstrumentInfo |
Instrument info
command parameters.
Internal battery types.
typedef struct RBRInstrumentPower RBRInstrumentPower |
Instrument power
command parameters.
typedef struct RBRInstrumentPowerExternal RBRInstrumentPowerExternal |
Instrument powerexternal
command parameters.
typedef struct RBRInstrumentPowerInternal RBRInstrumentPowerInternal |
Instrument powerinternal
command parameters.
typedef enum RBRInstrumentPowerSource RBRInstrumentPowerSource |
brief Possible instrument power sources.
External battery types.
Internal battery types.
brief Possible instrument power sources.
RBRInstrumentError RBRInstrument_getHardwareRevision | ( | RBRInstrument * | instrument, |
RBRInstrumentHardwareRevision * | hwrev | ||
) |
Get instrument hardware revision information.
[in] | instrument | the instrument connection |
[out] | hwrev | the hardware revision information |
RBRInstrumentError RBRInstrument_getId | ( | RBRInstrument * | instrument, |
RBRInstrumentId * | id | ||
) |
Get identification information from the instrument.
[in] | instrument | the instrument connection |
[out] | id | the instrument information |
RBRInstrumentError RBRInstrument_getInfo | ( | RBRInstrument * | instrument, |
RBRInstrumentInfo * | info | ||
) |
Get more information about the instrument.
This parameter is unavailable for Logger2 instruments.
[in] | instrument | the instrument connection |
[out] | info | the extended instrument information |
RBRInstrumentError RBRInstrument_getPower | ( | RBRInstrument * | instrument, |
RBRInstrumentPower * | power | ||
) |
Get instrument power information.
[in] | instrument | the instrument connection |
[out] | power | the power information |
RBRInstrumentError RBRInstrument_getPowerExternal | ( | RBRInstrument * | instrument, |
RBRInstrumentPowerExternal * | power | ||
) |
Get instrument external power information.
This parameter is unavailable for Logger2 instruments. Always returns RBRINSTRUMENT_UNSUPPORTED.
[in] | instrument | the instrument connection |
[out] | power | the power information |
RBRInstrumentError RBRInstrument_getPowerInternal | ( | RBRInstrument * | instrument, |
RBRInstrumentPowerInternal * | power | ||
) |
Get instrument internal power information.
This parameter is unavailable for Logger2 instruments. Always returns RBRINSTRUMENT_UNSUPPORTED.
[in] | instrument | the instrument connection |
[out] | power | the power information |
RBRInstrumentError RBRInstrument_resetPowerExternalUsed | ( | RBRInstrument * | instrument | ) |
Reset the counter of energy used from the external battery.
This parameter is unavailable for Logger2 instruments. Always returns RBRINSTRUMENT_UNSUPPORTED.
[in] | instrument | the instrument connection |
RBRInstrumentError RBRInstrument_resetPowerInternalUsed | ( | RBRInstrument * | instrument | ) |
Reset the counter of energy used from the internal battery.
This parameter is unavailable for Logger2 instruments. Always returns RBRINSTRUMENT_UNSUPPORTED.
[in] | instrument | the instrument connection |
RBRInstrumentError RBRInstrument_setInternalBatteryType | ( | RBRInstrument * | instrument, |
RBRInstrumentInternalBatteryType | type | ||
) |
Set the internal power battery type.
This parameter is unavailable for Logger2 instruments. Always returns RBRINSTRUMENT_UNSUPPORTED.
[in] | instrument | the instrument connection |
[in] | type | the battery type |
RBRInstrumentError RBRInstrument_setPowerExternalBatteryType | ( | RBRInstrument * | instrument, |
RBRInstrumentExternalBatteryType | type | ||
) |
Set the external power battery type.
This parameter is unavailable for Logger2 instruments. Always returns RBRINSTRUMENT_UNSUPPORTED.
[in] | instrument | the instrument connection |
[in] | type | the battery type |
const char* RBRInstrumentExternalBatteryType_displayName | ( | RBRInstrumentExternalBatteryType | type | ) |
Get a human-readable display name for an external battery type.
Unlike the values returned by RBRInstrumentExternalBatteryType_name(), RBRfermata/RBRfermette product names will be correctly capitalized, and the names of battery types will be formatted appropriately for the cell chemistry; e.g., “RBRfermette³ Li-SOCl₂”, not “rbrfermette3 lisocl2”. Values will be UTF-8-encoded.
[in] | type | the battery type |
const char* RBRInstrumentExternalBatteryType_name | ( | RBRInstrumentExternalBatteryType | type | ) |
Get a human-readable string name for an external battery type.
[in] | type | the battery type |
const char* RBRInstrumentInternalBatteryType_displayName | ( | RBRInstrumentInternalBatteryType | type | ) |
Get a human-readable display name for an internal battery type.
Unlike the values returned by RBRInstrumentInternalBatteryType_name(), the names of battery types will be formatted appropriately for the cell chemistry; e.g., “Li-SOCl₂”, not “lisocl2”. Values will be UTF-8-encoded.
[in] | type | the battery type |
const char* RBRInstrumentInternalBatteryType_name | ( | RBRInstrumentInternalBatteryType | type | ) |
Get a human-readable string name for an internal battery type.
[in] | type | the battery type |
const char* RBRInstrumentPowerSource_name | ( | RBRInstrumentPowerSource | source | ) |
Get a human-readable string name for a power source.
[in] | source | the power source |
int RBRInstrumentVersion_compare | ( | const char * | a, |
const char * | b | ||
) |
Compare two firmware version strings.
If either string is not a version string (format XXSYYY) then the result will indicate that it is the lesser version. If neither is valid, then the result will indicate equality.
a | the first firmware version as a null-terminated C string |
b | the second firmware version as a null-terminated C string |