seac_screen_common.h (1335B)
1 /* 2 * libdivecomputer 3 * 4 * Copyright (C) 2025 Jef Driesen 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 19 * MA 02110-1301 USA 20 */ 21 22 #ifndef SEAC_SCREEN_COMMON_H 23 #define SEAC_SCREEN_COMMON_H 24 25 #include <libdivecomputer/context.h> 26 27 #ifdef __cplusplus 28 extern "C" { 29 #endif /* __cplusplus */ 30 31 #define HEADER1 0xCF 32 #define HEADER2 0xC0 33 #define SAMPLE 0xAA 34 35 #define SZ_RECORD 64 36 #define SZ_HEADER (SZ_RECORD * 2) 37 #define SZ_SAMPLE SZ_RECORD 38 39 int 40 seac_screen_record_isvalid (dc_context_t *context, const unsigned char data[], unsigned int size, unsigned int type, unsigned int id); 41 42 #ifdef __cplusplus 43 } 44 #endif /* __cplusplus */ 45 #endif /* SEAC_SCREEN_COMMON_H */