 |
libRBR
v1.2.3
RBR instrument communication API
|
Go to the documentation of this file.
14 #ifndef LIBRBR_RBRINSTRUMENTCONFIGURATION_H
15 #define LIBRBR_RBRINSTRUMENTCONFIGURATION_H
26 #define RBRINSTRUMENT_CALIBRATION_C_COEFFICIENT_MAX 24
33 #define RBRINSTRUMENT_CALIBRATION_X_COEFFICIENT_MAX 8
40 #define RBRINSTRUMENT_CALIBRATION_N_COEFFICIENT_MAX 8
48 #define RBRINSTRUMENT_VALUE_COEFFICIENT 0xFF
55 #define RBRINSTRUMENT_CALIBRATION_EQUATION_MAX 31
60 #define RBRINSTRUMENT_CHANNEL_GAINS_MAX 8
63 #define RBRINSTRUMENT_INPUT_TIMEOUT_MIN 10000
66 #define RBRINSTRUMENT_INPUT_TIMEOUT_MAX 240000
73 #define RBRINSTRUMENT_SENSOR_PARAMETER_KEY_MAX 63
80 #define RBRINSTRUMENT_SENSOR_PARAMETER_VALUE_MAX 63
481 bool *sensorPowerAlwaysOn);
499 bool sensorPowerAlwaysOn);
516 bool *castDetection);
@ RBRINSTRUMENT_SETTING_ATMOSPHERE
Definition: RBRInstrumentConfiguration.h:627
RBRInstrumentPeriod settlingTime
The minimum power-on settling time required by this channel.
Definition: RBRInstrumentConfiguration.h:221
RBRInstrumentError RBRInstrument_setChannelStatus(RBRInstrument *instrument, RBRInstrumentChannelIndex channel, bool status)
Set the status of a channel.
RBRInstrumentPeriod readTime
The typical data acquisition time required by this channel.
Definition: RBRInstrumentConfiguration.h:228
RBRInstrumentPeriod settlingTime
The maximum power-on settling settling time across all enabled channels.
Definition: RBRInstrumentConfiguration.h:292
#define RBRINSTRUMENT_CHANNEL_MAX
The maximum number of channels present on an instrument.
Definition: RBRInstrument.h:93
const char * RBRInstrumentValueSetting_name(RBRInstrumentValueSetting setting)
Get a human-readable string name for an instrument value setting.
Details reported by a combination of the instrument channels, channel, and calibration commands.
Definition: RBRInstrumentConfiguration.h:275
RBRInstrumentError RBRInstrument_setInputTimeout(RBRInstrument *instrument, RBRInstrumentPeriod inputTimeout)
Set the timeout for output suppression while receiving commands.
RBRInstrumentError RBRInstrument_getCastDetection(RBRInstrument *instrument, bool *castDetection)
Get whether cast detection is enabled.
A channel calibration.
Definition: RBRInstrumentConfiguration.h:99
@ RBRINSTRUMENT_SETTING_TEMPERATURE
Definition: RBRInstrumentConfiguration.h:607
char userUnits[RBRINSTRUMENT_CHANNEL_UNIT_MAX+1]
The unit in which processed data is normally reported from the logger as a null-terminated C string.
Definition: RBRInstrumentConfiguration.h:244
char value[RBRINSTRUMENT_SENSOR_PARAMETER_VALUE_MAX+1]
The parameter value as a null-terminated C string.
Definition: RBRInstrumentConfiguration.h:715
#define RBRINSTRUMENT_CHANNEL_UNIT_MAX
The maximum number of characters in a channel unit name (e.g., “C”).
Definition: RBRInstrument.h:123
int32_t count
The number of installed and configured instrument channels.
Definition: RBRInstrumentConfiguration.h:278
RBRInstrumentError RBRInstrument_setCastDetection(RBRInstrument *instrument, bool castDetection)
Set whether cast detection is enabled.
@ RBRINSTRUMENT_SETTING_AVGSOUNDSPEED
Definition: RBRInstrumentConfiguration.h:645
RBRInstrumentError RBRInstrument_setCalibration(RBRInstrument *instrument, RBRInstrumentChannelIndex channel, const RBRInstrumentCalibration *calibration)
Update a channel's calibration coefficients.
char equation[RBRINSTRUMENT_CALIBRATION_EQUATION_MAX+1]
The type of formula used to convert raw readings to physical measurement units as a null-terminated C...
Definition: RBRInstrumentConfiguration.h:236
@ RBRINSTRUMENT_RANGING_MANUAL
Definition: RBRInstrumentConfiguration.h:139
RBRInstrumentError RBRInstrument_setValueSetting(RBRInstrument *instrument, RBRInstrumentValueSetting setting, float value)
Write the a value setting to the instrument.
float currentGain
The gain value in use by the sensor.
Definition: RBRInstrumentConfiguration.h:175
@ RBRINSTRUMENT_SETTING_CONDUCTIVITY
Definition: RBRInstrumentConfiguration.h:621
struct RBRInstrumentCalibration RBRInstrumentCalibration
A channel calibration.
char key[RBRINSTRUMENT_SENSOR_PARAMETER_KEY_MAX+1]
The name of the parameter as a null-terminated C string.
Definition: RBRInstrumentConfiguration.h:713
int64_t RBRInstrumentDateTime
Definition: RBRInstrument.h:181
#define RBRINSTRUMENT_CHANNEL_GAINS_MAX
The maximum number of gain settings for a channel.
Definition: RBRInstrumentConfiguration.h:60
char label[RBRINSTRUMENT_CHANNEL_LABEL_MAX+1]
An alphanumeric description of the physical parameter measured as a null-terminated C string.
Definition: RBRInstrumentConfiguration.h:260
RBRInstrumentDateTime dateTime
The date/time of the calibration.
Definition: RBRInstrumentConfiguration.h:106
#define RBRINSTRUMENT_CHANNEL_TYPE_MAX
The maximum number of characters in a channel type (e.g., “temp09”).
Definition: RBRInstrument.h:116
#define RBRINSTRUMENT_CHANNEL_LABEL_MAX
The maximum number of characters in a channel label.
Definition: RBRInstrument.h:131
@ RBRINSTRUMENT_UNKNOWN_RANGING
Definition: RBRInstrumentConfiguration.h:145
int32_t RBRInstrumentPeriod
A periodic parameter.
Definition: RBRInstrument.h:191
RBRInstrumentChannel channels[RBRINSTRUMENT_CHANNEL_MAX]
Specific channel details.
Definition: RBRInstrumentConfiguration.h:310
RBRInstrumentError RBRInstrument_setSensorPowerAlwaysOn(RBRInstrument *instrument, bool sensorPowerAlwaysOn)
Set whether sensor power is always on.
RBRInstrumentChannelRangingMode
Possible channel gain ranging modes.
Definition: RBRInstrumentConfiguration.h:134
RBRInstrumentError RBRInstrument_getChannels(RBRInstrument *instrument, RBRInstrumentChannels *channels)
Get channel information for the instrument.
@ RBRINSTRUMENT_SETTING_SPECCONDTEMPCO
Definition: RBRInstrumentConfiguration.h:595
@ RBRINSTRUMENT_SETTING_COUNT
Definition: RBRInstrumentConfiguration.h:647
RBRInstrumentCalibration calibration
The calibration for the channel.
Definition: RBRInstrumentConfiguration.h:263
@ RBRINSTRUMENT_SETTING_SALINITY
Definition: RBRInstrumentConfiguration.h:639
RBRInstrumentError RBRInstrument_getFetchPowerOffDelay(RBRInstrument *instrument, RBRInstrumentPeriod *fetchPowerOffDelay)
Get the fetch power-off delay.
@ RBRINSTRUMENT_SETTING_ALTITUDE
Definition: RBRInstrumentConfiguration.h:601
bool status
Whether the channel is activated for sampling.
Definition: RBRInstrumentConfiguration.h:214
int32_t on
The number of active channels, which excludes any turned off by the user.
Definition: RBRInstrumentConfiguration.h:285
RBRInstrumentError RBRInstrument_getValueSetting(RBRInstrument *instrument, RBRInstrumentValueSetting setting, float *value)
Read a value setting from the instrument.
RBRInstrumentError
Errors which can be returned from library functions.
Definition: RBRInstrument.h:200
@ RBRINSTRUMENT_SETTING_DENSITY
Definition: RBRInstrumentConfiguration.h:633
struct RBRInstrumentChannelGain RBRInstrumentChannelGain
float x[RBRINSTRUMENT_CALIBRATION_X_COEFFICIENT_MAX]
Calibration X coefficients.
Definition: RBRInstrumentConfiguration.h:118
@ RBRINSTRUMENT_SETTING_PRESSURE
Definition: RBRInstrumentConfiguration.h:613
@ RBRINSTRUMENT_RANGING_COUNT
Definition: RBRInstrumentConfiguration.h:143
RBRInstrumentError RBRInstrument_getSensorParameter(RBRInstrument *instrument, RBRInstrumentChannelIndex channel, RBRInstrumentSensorParameter *parameter)
Retrieve a single sensor parameter for a channel.
RBRInstrumentPeriod readTime
The maximum overall reading time across all enabled channels.
Definition: RBRInstrumentConfiguration.h:298
RBRInstrumentChannelIndex n[RBRINSTRUMENT_CALIBRATION_N_COEFFICIENT_MAX]
Input channel indices.
Definition: RBRInstrumentConfiguration.h:125
struct RBRInstrumentSensorParameter RBRInstrumentSensorParameter
A sensor parameter.
@ RBRINSTRUMENT_UNKNOWN_SETTING
Definition: RBRInstrumentConfiguration.h:649
float availableGains[RBRINSTRUMENT_CHANNEL_GAINS_MAX]
The gain settings supported by the sensor.
Definition: RBRInstrumentConfiguration.h:186
#define RBRINSTRUMENT_CALIBRATION_C_COEFFICIENT_MAX
The maximum number of C calibration coefficients.
Definition: RBRInstrumentConfiguration.h:26
RBRInstrumentError RBRInstrument_getSensorParameters(RBRInstrument *instrument, RBRInstrumentChannelIndex channel, RBRInstrumentSensorParameter *parameters, int32_t *size)
Retrieve the sensor parameters for a channel.
#define RBRINSTRUMENT_SENSOR_PARAMETER_VALUE_MAX
The maximum number of characters in a sensor parameter value.
Definition: RBRInstrumentConfiguration.h:80
A sensor parameter.
Definition: RBRInstrumentConfiguration.h:710
#define RBRINSTRUMENT_CALIBRATION_EQUATION_MAX
The maximum number of characters in a calibration equation name.
Definition: RBRInstrumentConfiguration.h:55
RBRInstrumentError RBRInstrument_setChannelGain(RBRInstrument *instrument, RBRInstrumentChannelIndex channel, RBRInstrumentChannelGain *gain)
Set the gain parameters of a channel.
RBRInstrumentChannelGain gain
Gain parameters for the channel.
Definition: RBRInstrumentConfiguration.h:247
struct RBRInstrumentChannel RBRInstrumentChannel
Details reported by the instrument channel command.
RBRInstrumentError RBRInstrument_setFetchPowerOffDelay(RBRInstrument *instrument, RBRInstrumentPeriod fetchPowerOffDelay)
Set the fetch power-off delay.
RBRInstrumentError RBRInstrument_isSensorPowerAlwaysOn(RBRInstrument *instrument, bool *sensorPowerAlwaysOn)
Get whether sensor power is always on.
RBRInstrumentChannelRangingMode rangingMode
The gain selection mode employed by the sensor.
Definition: RBRInstrumentConfiguration.h:167
Definition: RBRInstrumentConfiguration.h:164
uint8_t RBRInstrumentModuleAddress
An internal module identifier.
Definition: RBRInstrumentConfiguration.h:91
Details reported by the instrument channel command.
Definition: RBRInstrumentConfiguration.h:194
RBRInstrumentError RBRInstrument_getInputTimeout(RBRInstrument *instrument, RBRInstrumentPeriod *inputTimeout)
Get the timeout for output suppression while receiving commands.
RBRInstrumentError RBRInstrument_setSensorParameter(RBRInstrument *instrument, RBRInstrumentChannelIndex channel, RBRInstrumentSensorParameter *parameter)
Set a sensor parameter for a channel.
Core library context object.
Definition: RBRInstrument.h:591
@ RBRINSTRUMENT_RANGING_NONE
Definition: RBRInstrumentConfiguration.h:137
float c[RBRINSTRUMENT_CALIBRATION_C_COEFFICIENT_MAX]
Calibration C coefficients.
Definition: RBRInstrumentConfiguration.h:112
struct RBRInstrumentChannels RBRInstrumentChannels
Details reported by a combination of the instrument channels, channel, and calibration commands.
#define RBRINSTRUMENT_SENSOR_PARAMETER_KEY_MAX
The maximum number of characters in a sensor parameter key.
Definition: RBRInstrumentConfiguration.h:73
#define RBRINSTRUMENT_CALIBRATION_N_COEFFICIENT_MAX
The maximum number of input channel indices.
Definition: RBRInstrumentConfiguration.h:40
char type[RBRINSTRUMENT_CHANNEL_TYPE_MAX+1]
A short, pre-defined “generic” name for the installed channel as a null-terminated C string.
Definition: RBRInstrumentConfiguration.h:204
bool derived
Whether the channel is a derived channel.
Definition: RBRInstrumentConfiguration.h:250
@ RBRINSTRUMENT_RANGING_AUTO
Definition: RBRInstrumentConfiguration.h:141
RBRInstrumentValueSetting
Value settings the instrument uses for calculation of derived channels, or as defaults for physical p...
Definition: RBRInstrumentConfiguration.h:587
RBRInstrumentPeriod minimumPeriod
The minimum sampling period with the currently-active channels.
Definition: RBRInstrumentConfiguration.h:304
uint8_t RBRInstrumentChannelIndex
A channel identifier.
Definition: RBRInstrumentConfiguration.h:88
const char * RBRInstrumentChannelRangingMode_name(RBRInstrumentChannelRangingMode mode)
Get a human-readable string name for a channel gain ranging mode.
#define RBRINSTRUMENT_CALIBRATION_X_COEFFICIENT_MAX
The maximum number of X calibration coefficients.
Definition: RBRInstrumentConfiguration.h:33
RBRInstrumentModuleAddress module
The internal address to which the channel responds.
Definition: RBRInstrumentConfiguration.h:207