libRBR v1.2.3
RBR instrument communication API
RBRInstrumentSchedule.h
Go to the documentation of this file.
1
13#ifndef LIBRBR_RBRINSTRUMENTSCHEDULE_H
14#define LIBRBR_RBRINSTRUMENTSCHEDULE_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
26#define RBRINSTRUMENT_AVAILABLE_FAST_PERIODS_MAX 32
27
29#define RBRINSTRUMENT_SAMPLING_PERIOD_MAX 86400000
30
38typedef struct RBRInstrumentClock
39{
61
80 RBRInstrumentClock *clock);
81
108 const RBRInstrumentClock *clock);
109
117{
142
151
161{
183
192
203{
248 int32_t burstLength;
263
275 RBRInstrument *instrument,
276 RBRInstrumentSampling *sampling);
277
321 RBRInstrument *instrument,
322 const RBRInstrumentSampling *sampling);
323
355 RBRInstrument *instrument,
356 const RBRInstrumentSampling *sampling);
357
368{
400
410
419{
439
451 RBRInstrument *instrument,
452 RBRInstrumentDeployment *deployment);
453
476 RBRInstrument *instrument,
477 const RBRInstrumentDeployment *deployment);
478
479#ifdef __cplusplus
480}
481#endif
482
483#endif /* LIBRBR_RBRINSTRUMENTSCHEDULE_H */
int32_t RBRInstrumentPeriod
A periodic parameter.
Definition: RBRInstrument.h:191
RBRInstrumentError
Errors which can be returned from library functions.
Definition: RBRInstrument.h:201
int64_t RBRInstrumentDateTime
Definition: RBRInstrument.h:181
struct RBRInstrumentSampling RBRInstrumentSampling
Instrument sampling command parameters.
RBRInstrumentSamplingMode
Possible instrument sampling modes.
Definition: RBRInstrumentSchedule.h:117
@ RBRINSTRUMENT_SAMPLING_REGIMES
Definition: RBRInstrumentSchedule.h:129
@ RBRINSTRUMENT_SAMPLING_WAVE
Definition: RBRInstrumentSchedule.h:123
@ RBRINSTRUMENT_SAMPLING_AVERAGE
Definition: RBRInstrumentSchedule.h:125
@ RBRINSTRUMENT_SAMPLING_TIDE
Definition: RBRInstrumentSchedule.h:127
@ RBRINSTRUMENT_SAMPLING_BURST
Definition: RBRInstrumentSchedule.h:121
@ RBRINSTRUMENT_SAMPLING_COUNT
Definition: RBRInstrumentSchedule.h:138
@ RBRINSTRUMENT_SAMPLING_DDSAMPLING
Definition: RBRInstrumentSchedule.h:136
@ RBRINSTRUMENT_SAMPLING_CONTINUOUS
Definition: RBRInstrumentSchedule.h:119
@ RBRINSTRUMENT_UNKNOWN_SAMPLING
Definition: RBRInstrumentSchedule.h:140
struct RBRInstrumentDeployment RBRInstrumentDeployment
Instrument deployment command parameters.
const char * RBRInstrumentDeploymentStatus_name(RBRInstrumentDeploymentStatus status)
Get a human-readable string name for a deployment status.
RBRInstrumentGate
Possible instrument gating conditions.
Definition: RBRInstrumentSchedule.h:161
@ RBRINSTRUMENT_GATE_COUNT
Definition: RBRInstrumentSchedule.h:179
@ RBRINSTRUMENT_GATE_NONE
Definition: RBRInstrumentSchedule.h:163
@ RBRINSTRUMENT_GATE_TWISTACTIVATION
Definition: RBRInstrumentSchedule.h:175
@ RBRINSTRUMENT_GATE_INVALID
Definition: RBRInstrumentSchedule.h:177
@ RBRINSTRUMENT_GATE_THRESHOLDING
Definition: RBRInstrumentSchedule.h:169
@ RBRINSTRUMENT_UNKNOWN_GATE
Definition: RBRInstrumentSchedule.h:181
RBRInstrumentError RBRInstrument_setSampling(RBRInstrument *instrument, const RBRInstrumentSampling *sampling)
Set the instrument sampling mode and period.
struct RBRInstrumentClock RBRInstrumentClock
Instrument clock command parameters.
RBRInstrumentError RBRInstrument_setBurstSampling(RBRInstrument *instrument, const RBRInstrumentSampling *sampling)
Set the instrument burst sampling length and interval.
#define RBRINSTRUMENT_AVAILABLE_FAST_PERIODS_MAX
The maximum number of available fast sampling periods to parse from the instrument.
Definition: RBRInstrumentSchedule.h:26
const char * RBRInstrumentSamplingMode_name(RBRInstrumentSamplingMode mode)
Get a human-readable string name for a sampling mode.
RBRInstrumentError RBRInstrument_getDeployment(RBRInstrument *instrument, RBRInstrumentDeployment *deployment)
Get the instrument deployment parameters.
RBRInstrumentError RBRInstrument_setClock(RBRInstrument *instrument, const RBRInstrumentClock *clock)
Set the instrument clock.
RBRInstrumentError RBRInstrument_setDeployment(RBRInstrument *instrument, const RBRInstrumentDeployment *deployment)
Set the instrument deployment parameters.
RBRInstrumentDeploymentStatus
Possible instrument logging statuses.
Definition: RBRInstrumentSchedule.h:368
@ RBRINSTRUMENT_STATUS_NOTBLANK
Definition: RBRInstrumentSchedule.h:392
@ RBRINSTRUMENT_STATUS_FULL
Definition: RBRInstrumentSchedule.h:388
@ RBRINSTRUMENT_STATUS_STOPPED
Definition: RBRInstrumentSchedule.h:384
@ RBRINSTRUMENT_STATUS_FAILED
Definition: RBRInstrumentSchedule.h:390
@ RBRINSTRUMENT_STATUS_DISABLED
Definition: RBRInstrumentSchedule.h:370
@ RBRINSTRUMENT_STATUS_COUNT
Definition: RBRInstrumentSchedule.h:396
@ RBRINSTRUMENT_STATUS_LOGGING
Definition: RBRInstrumentSchedule.h:374
@ RBRINSTRUMENT_STATUS_UNKNOWN
Definition: RBRInstrumentSchedule.h:394
@ RBRINSTRUMENT_STATUS_PENDING
Definition: RBRInstrumentSchedule.h:372
@ RBRINSTRUMENT_STATUS_GATED
Definition: RBRInstrumentSchedule.h:376
@ RBRINSTRUMENT_UNKNOWN_STATUS
Definition: RBRInstrumentSchedule.h:398
@ RBRINSTRUMENT_STATUS_FINISHED
Definition: RBRInstrumentSchedule.h:378
@ RBRINSTRUMENT_STATUS_FULLANDSTOPPED
Definition: RBRInstrumentSchedule.h:386
const char * RBRInstrumentGate_name(RBRInstrumentGate gate)
Get a human-readable string name for a gating condition.
RBRInstrumentError RBRInstrument_getSampling(RBRInstrument *instrument, RBRInstrumentSampling *sampling)
Get the instrument sampling parameters.
RBRInstrumentError RBRInstrument_getClock(RBRInstrument *instrument, RBRInstrumentClock *clock)
Get the instrument clock.
Instrument clock command parameters.
Definition: RBRInstrumentSchedule.h:39
float offsetFromUtc
The offset of the instrument's date and time from UTC.
Definition: RBRInstrumentSchedule.h:59
RBRInstrumentDateTime dateTime
The instrument's date and time.
Definition: RBRInstrumentSchedule.h:43
Instrument deployment command parameters.
Definition: RBRInstrumentSchedule.h:419
RBRInstrumentDateTime endTime
The deployment end date and time.
Definition: RBRInstrumentSchedule.h:431
RBRInstrumentDateTime startTime
The deployment start date and time.
Definition: RBRInstrumentSchedule.h:425
const RBRInstrumentDeploymentStatus status
The deployment status.
Definition: RBRInstrumentSchedule.h:437
Core library context object.
Definition: RBRInstrument.h:592
Instrument sampling command parameters.
Definition: RBRInstrumentSchedule.h:203
const RBRInstrumentPeriod availableFastPeriods[RBRINSTRUMENT_AVAILABLE_FAST_PERIODS_MAX]
Fast measurement periods available for the logger for sampling rates faster than 1Hz.
Definition: RBRInstrumentSchedule.h:232
RBRInstrumentPeriod burstInterval
The time between the first measurement of two consecutive bursts.
Definition: RBRInstrumentSchedule.h:259
RBRInstrumentSamplingMode mode
The instrument sampling mode.
Definition: RBRInstrumentSchedule.h:205
int32_t burstLength
The number of measurements taken in each burst.
Definition: RBRInstrumentSchedule.h:248
RBRInstrumentGate gate
The sampling gating condition.
Definition: RBRInstrumentSchedule.h:261
const RBRInstrumentPeriod userPeriodLimit
The minimum period which can be used in fast sampling modes.
Definition: RBRInstrumentSchedule.h:242
RBRInstrumentPeriod period
Time between measurements.
Definition: RBRInstrumentSchedule.h:215