Loading...
Searching...
No Matches
hsc_internals.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define HSC_PRESSURE_DATA_LENGTH (2)
32#define HSC_FULL_DATA_LENGTH (4)
34#define HSC_STATUS_MASK (0xc0)
36#define HSC_PRESSURE_MASK (0x3fff)
38#define HSC_TEMPERATURE_SHIFT (5)
41
46enum {
47 HSC_STATUS_OK = 0x00,
53 HSC_STATUS_COMMAND_MODE = 0x80,
54 HSC_STATUS_DIAGNOSTIC = 0xc0,
55};
57
58#ifdef __cplusplus
59}
60#endif
61
@ HSC_STATUS_STALE_DATA
stale data: data that has already been fetched since the last measurement cycle, or data fetched befo...