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
20#ifndef HSC_INTERNALS_H
21#define HSC_INTERNALS_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#define HSC_PRESSURE_DATA_LENGTH (2)
33#define HSC_FULL_DATA_LENGTH (4)
35#define HSC_STATUS_MASK (0xc0)
37#define HSC_PRESSURE_MASK (0x3fff)
39#define HSC_TEMPERATURE_SHIFT (5)
47enum {
48 HSC_STATUS_OK = 0x00,
54 HSC_STATUS_COMMAND_MODE = 0x80,
55 HSC_STATUS_DIAGNOSTIC = 0xc0,
56};
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* HSC_INTERNALS_H */
@ HSC_STATUS_STALE_DATA
stale data: data that has already been fetched since the last measurement cycle, or data fetched befo...