libRBR  v1.2.3
RBR instrument communication API
RBRInstrumentOther.h
Go to the documentation of this file.
1 
13 #ifndef LIBRBR_RBRINSTRUMENTOTHER_H
14 #define LIBRBR_RBRINSTRUMENTOTHER_H
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
25 #define RBRINSTRUMENT_HWREV_CPU_MAX 5
26 
32 #define RBRINSTRUMENT_PART_NUMBER_MAX 255
33 
47 int RBRInstrumentVersion_compare(const char *a, const char *b);
48 
60  RBRInstrumentId *id);
61 
69 {
71  char pcb;
75  char bsl;
77 
89  RBRInstrument *instrument,
91 
98 {
110 
119 
126 typedef struct RBRInstrumentPower
127 {
135  float internal;
137  float external;
144  float regulator;
146 
159  RBRInstrumentPower *power);
160 
167 {
185 
196 
210 
218 {
226  const float capacity;
231  float used;
233 
249  RBRInstrument *instrument,
251 
267  RBRInstrument *instrument,
269 
284  RBRInstrument *instrument);
285 
292 {
316 
327 
343 
351 {
359  const float capacity;
364  float used;
366 
382  RBRInstrument *instrument,
384 
399  RBRInstrument *instrument,
401 
415  RBRInstrument *instrument);
416 
423 typedef struct RBRInstrumentInfo
424 {
428  bool fwLock;
430 
445  RBRInstrument *instrument,
446  RBRInstrumentInfo *info);
447 
448 #ifdef __cplusplus
449 }
450 #endif
451 
452 #endif /* LIBRBR_RBRINSTRUMENTOTHER_H */
RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_LISOCL2
@ RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_LISOCL2
Definition: RBRInstrumentOther.h:302
RBRInstrumentInfo::fwLock
bool fwLock
Definition: RBRInstrumentOther.h:428
RBRINSTRUMENT_POWER_SOURCE_COUNT
@ RBRINSTRUMENT_POWER_SOURCE_COUNT
Definition: RBRInstrumentOther.h:106
RBRInstrumentPowerInternal
Instrument powerinternal command parameters.
Definition: RBRInstrumentOther.h:217
RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_LIFES2
@ RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_LIFES2
Definition: RBRInstrumentOther.h:304
RBRInstrumentPowerExternal::capacity
const float capacity
The capacity of the battery.
Definition: RBRInstrumentOther.h:359
RBRINSTRUMENT_INTERNAL_BATTERY_LINIMNCO
@ RBRINSTRUMENT_INTERNAL_BATTERY_LINIMNCO
Definition: RBRInstrumentOther.h:177
RBRInstrument_getPowerExternal
RBRInstrumentError RBRInstrument_getPowerExternal(RBRInstrument *instrument, RBRInstrumentPowerExternal *power)
Get instrument external power information.
RBRInstrumentPowerInternal::capacity
const float capacity
The capacity of the battery.
Definition: RBRInstrumentOther.h:226
RBRInstrumentHardwareRevision
struct RBRInstrumentHardwareRevision RBRInstrumentHardwareRevision
Instrument hwrev command parameters.
RBRInstrument_getHardwareRevision
RBRInstrumentError RBRInstrument_getHardwareRevision(RBRInstrument *instrument, RBRInstrumentHardwareRevision *hwrev)
Get instrument hardware revision information.
RBRInstrumentInternalBatteryType
RBRInstrumentInternalBatteryType
Definition: RBRInstrumentOther.h:166
RBRInstrument_resetPowerExternalUsed
RBRInstrumentError RBRInstrument_resetPowerExternalUsed(RBRInstrument *instrument)
Reset the counter of energy used from the external battery.
RBRInstrumentPower
struct RBRInstrumentPower RBRInstrumentPower
Instrument power command parameters.
RBRInstrumentPower::external
float external
The measured voltage of any external power source.
Definition: RBRInstrumentOther.h:137
RBRINSTRUMENT_INTERNAL_BATTERY_LISOCL2
@ RBRINSTRUMENT_INTERNAL_BATTERY_LISOCL2
Definition: RBRInstrumentOther.h:171
RBRInstrumentInfo::partNumber
char partNumber[RBRINSTRUMENT_PART_NUMBER_MAX+1]
Definition: RBRInstrumentOther.h:426
RBRINSTRUMENT_EXTERNAL_BATTERY_OTHER
@ RBRINSTRUMENT_EXTERNAL_BATTERY_OTHER
Definition: RBRInstrumentOther.h:294
RBRInstrument_getPower
RBRInstrumentError RBRInstrument_getPower(RBRInstrument *instrument, RBRInstrumentPower *power)
Get instrument power information.
RBRInstrumentHardwareRevision::bsl
char bsl
Definition: RBRInstrumentOther.h:75
RBRINSTRUMENT_INTERNAL_BATTERY_LIFES2
@ RBRINSTRUMENT_INTERNAL_BATTERY_LIFES2
Definition: RBRInstrumentOther.h:173
RBRInstrumentPower::source
RBRInstrumentPowerSource source
The power source from which the instrument is running.
Definition: RBRInstrumentOther.h:129
RBRINSTRUMENT_INTERNAL_BATTERY_COUNT
@ RBRINSTRUMENT_INTERNAL_BATTERY_COUNT
Definition: RBRInstrumentOther.h:181
RBRINSTRUMENT_EXTERNAL_BATTERY_FERMATA_ZNMNO2
@ RBRINSTRUMENT_EXTERNAL_BATTERY_FERMATA_ZNMNO2
Definition: RBRInstrumentOther.h:298
RBRInstrumentExternalBatteryType_displayName
const char * RBRInstrumentExternalBatteryType_displayName(RBRInstrumentExternalBatteryType type)
Get a human-readable display name for an external battery type.
RBRInstrumentId
Instrument id command parameters.
Definition: RBRInstrument.h:280
RBRInstrumentPowerSource_name
const char * RBRInstrumentPowerSource_name(RBRInstrumentPowerSource source)
Get a human-readable string name for a power source.
RBRInstrumentInfo
Instrument info command parameters.
Definition: RBRInstrumentOther.h:423
RBRINSTRUMENT_UNKNOWN_POWER_SOURCE
@ RBRINSTRUMENT_UNKNOWN_POWER_SOURCE
Definition: RBRInstrumentOther.h:108
RBRINSTRUMENT_PART_NUMBER_MAX
#define RBRINSTRUMENT_PART_NUMBER_MAX
The maximum number of characters in an instrument part number.
Definition: RBRInstrumentOther.h:32
RBRInstrumentInternalBatteryType_displayName
const char * RBRInstrumentInternalBatteryType_displayName(RBRInstrumentInternalBatteryType type)
Get a human-readable display name for an internal battery type.
RBRInstrumentVersion_compare
int RBRInstrumentVersion_compare(const char *a, const char *b)
Compare two firmware version strings.
RBRINSTRUMENT_UNKNOWN_INTERNAL_BATTERY
@ RBRINSTRUMENT_UNKNOWN_INTERNAL_BATTERY
Definition: RBRInstrumentOther.h:183
RBRInstrumentPowerInternal::used
float used
The accumulated energy used from the internal battery since the value was last reset.
Definition: RBRInstrumentOther.h:231
RBRInstrumentPowerExternal::batteryType
RBRInstrumentExternalBatteryType batteryType
The type of battery.
Definition: RBRInstrumentOther.h:353
RBRINSTRUMENT_POWER_SOURCE_EXTERNAL
@ RBRINSTRUMENT_POWER_SOURCE_EXTERNAL
Definition: RBRInstrumentOther.h:104
RBRINSTRUMENT_EXTERNAL_BATTERY_FERMATA_LISOCL2
@ RBRINSTRUMENT_EXTERNAL_BATTERY_FERMATA_LISOCL2
Definition: RBRInstrumentOther.h:296
RBRInstrumentPowerInternal::batteryType
RBRInstrumentInternalBatteryType batteryType
The type of battery.
Definition: RBRInstrumentOther.h:220
RBRInstrumentExternalBatteryType_name
const char * RBRInstrumentExternalBatteryType_name(RBRInstrumentExternalBatteryType type)
Get a human-readable string name for an external battery type.
RBRInstrumentError
RBRInstrumentError
Errors which can be returned from library functions.
Definition: RBRInstrument.h:200
RBRInstrumentPowerExternal
struct RBRInstrumentPowerExternal RBRInstrumentPowerExternal
Instrument powerexternal command parameters.
RBRINSTRUMENT_UNKNOWN_EXTERNAL_BATTERY
@ RBRINSTRUMENT_UNKNOWN_EXTERNAL_BATTERY
Definition: RBRInstrumentOther.h:314
RBRInstrument_resetPowerInternalUsed
RBRInstrumentError RBRInstrument_resetPowerInternalUsed(RBRInstrument *instrument)
Reset the counter of energy used from the internal battery.
RBRInstrumentPower::regulator
float regulator
The measured voltage of a short logger's internal voltage regulator.
Definition: RBRInstrumentOther.h:144
RBRInstrument_getInfo
RBRInstrumentError RBRInstrument_getInfo(RBRInstrument *instrument, RBRInstrumentInfo *info)
Get more information about the instrument.
RBRInstrument_getPowerInternal
RBRInstrumentError RBRInstrument_getPowerInternal(RBRInstrument *instrument, RBRInstrumentPowerInternal *power)
Get instrument internal power information.
RBRINSTRUMENT_INTERNAL_BATTERY_NIMH
@ RBRINSTRUMENT_INTERNAL_BATTERY_NIMH
Definition: RBRInstrumentOther.h:179
RBRINSTRUMENT_EXTERNAL_BATTERY_COUNT
@ RBRINSTRUMENT_EXTERNAL_BATTERY_COUNT
Definition: RBRInstrumentOther.h:312
RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_LINIMNCO
@ RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_LINIMNCO
Definition: RBRInstrumentOther.h:308
RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_ZNMNO2
@ RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_ZNMNO2
Definition: RBRInstrumentOther.h:306
RBRInstrument_setPowerExternalBatteryType
RBRInstrumentError RBRInstrument_setPowerExternalBatteryType(RBRInstrument *instrument, RBRInstrumentExternalBatteryType type)
Set the external power battery type.
RBRINSTRUMENT_POWER_SOURCE_INTERNAL
@ RBRINSTRUMENT_POWER_SOURCE_INTERNAL
Definition: RBRInstrumentOther.h:102
RBRInstrumentHardwareRevision
Instrument hwrev command parameters.
Definition: RBRInstrumentOther.h:68
RBRInstrumentInfo
struct RBRInstrumentInfo RBRInstrumentInfo
Instrument info command parameters.
RBRInstrumentPowerSource
RBRInstrumentPowerSource
Definition: RBRInstrumentOther.h:97
RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE_LIMNO2
@ RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE_LIMNO2
Definition: RBRInstrumentOther.h:300
RBRINSTRUMENT_INTERNAL_BATTERY_ZNMNO2
@ RBRINSTRUMENT_INTERNAL_BATTERY_ZNMNO2
Definition: RBRInstrumentOther.h:175
RBRInstrumentHardwareRevision::cpu
char cpu[RBRINSTRUMENT_HWREV_CPU_MAX+1]
Definition: RBRInstrumentOther.h:73
RBRInstrumentPowerExternal::used
float used
The accumulated energy used from the external battery since the value was last reset.
Definition: RBRInstrumentOther.h:364
RBRInstrumentHardwareRevision::pcb
char pcb
Definition: RBRInstrumentOther.h:71
RBRInstrument
Core library context object.
Definition: RBRInstrument.h:591
RBRInstrumentPower
Instrument power command parameters.
Definition: RBRInstrumentOther.h:126
RBRInstrumentPowerExternal
Instrument powerexternal command parameters.
Definition: RBRInstrumentOther.h:350
RBRInstrumentExternalBatteryType
RBRInstrumentExternalBatteryType
Definition: RBRInstrumentOther.h:291
RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_NIMH
@ RBRINSTRUMENT_EXTERNAL_BATTERY_FERMETTE3_NIMH
Definition: RBRInstrumentOther.h:310
RBRINSTRUMENT_HWREV_CPU_MAX
#define RBRINSTRUMENT_HWREV_CPU_MAX
The maximum number of characters in the type and revision of the CPU.
Definition: RBRInstrumentOther.h:25
RBRInstrument_getId
RBRInstrumentError RBRInstrument_getId(RBRInstrument *instrument, RBRInstrumentId *id)
Get identification information from the instrument.
RBRINSTRUMENT_INTERNAL_BATTERY_NONE
@ RBRINSTRUMENT_INTERNAL_BATTERY_NONE
Definition: RBRInstrumentOther.h:169
RBRInstrument_setInternalBatteryType
RBRInstrumentError RBRInstrument_setInternalBatteryType(RBRInstrument *instrument, RBRInstrumentInternalBatteryType type)
Set the internal power battery type.
RBRInstrumentInternalBatteryType_name
const char * RBRInstrumentInternalBatteryType_name(RBRInstrumentInternalBatteryType type)
Get a human-readable string name for an internal battery type.
RBRINSTRUMENT_POWER_SOURCE_USB
@ RBRINSTRUMENT_POWER_SOURCE_USB
Definition: RBRInstrumentOther.h:100
RBRInstrumentPowerInternal
struct RBRInstrumentPowerInternal RBRInstrumentPowerInternal
Instrument powerinternal command parameters.