| DC_PARSER_GET_FIELD(3) | Library Functions Manual | DC_PARSER_GET_FIELD(3) |
dc_parser_get_field —
#include
<libdivecomputer/parser.h>
dc_status_t
dc_parser_get_field(dc_parser_t
*parser, dc_field_type_t type,
unsigned int flags, void
*value);
DC_FIELD_GASMIX and
DC_FIELD_TANK.
The type may be one of the following values:
DC_FIELD_DIVETIMEDC_FIELD_MAXDEPTHDC_FIELD_AVGDEPTHDC_FIELD_GASMIX_COUNTDC_FIELD_GASMIXDC_FIELD_GASMIX_COUNT.DC_FIELD_SALINITYDC_WATER_FRESH or
DC_WATER_SALT, and the salinity
density.DC_FIELD_ATMOSPHERICDC_FIELD_TEMPERATURE_SURFACEDC_FIELD_TEMPERATURE_MINIMUMDC_FIELD_TEMPERATURE_MAXIMUMDC_FIELD_TANK_COUNTDC_FIELD_TANKDC_FIELD_GASMIX; type, the
tank volume units as DC_TANKVOLUME_NONE,
DC_TANKVOLUME_IMPERIAL, or
DC_TANKVOLUME_METRIC;
volume, the tank volume in litres or zero if the
tank is DC_TANKVOLUME_NONE;
workpressure, the work pressure in bar or zero if
DC_TANKVOLUME_NONE and maybe zero if
DC_TANKVOLUME_METRIC;
beginpressure and endpressure
being the pressures at start and finish in bar. The
flags value is the tank index.DC_FIELD_DIVEMODEDC_DIVEMODE_FREEDIVE for
free-diving, DC_DIVEMODE_GAUGE for gauge (i.e.,
running as a record and not computing, say, decompression events),
DC_DIVEMODE_OC for standard open-circuit diving,
and DC_DIVEMODE_CCR and
DC_DIVEMODE_SCR for respectively closed circuit
and semi closed circuit “rebreather” diving.DC_STATUS_SUCCESS if the field was retrieved,
DC_STATUS_UNSUPPORTED if the field is not supported by
the device, or other error messages on further failure.
| January 5, 2017 | NetBSD 10.0 |