subrascasse

Sub Rascasse: an iPhone dive log for Subsurface cloud storage, with a pure-Swift git client (GPL-2.0)
git clone https://git.schurger.org/subrascasse.git
Log | Files | Refs | README | LICENSE

garmin-models.h (2170B)


      1 // AI-generated (Claude)
      2 /*
      3  * libdivecomputer
      4  *
      5  * Copyright (C) 2026 Michael Keller
      6  *
      7  * This library is free software; you can redistribute it and/or
      8  * modify it under the terms of the GNU Lesser General Public
      9  * License as published by the Free Software Foundation; either
     10  * version 2.1 of the License, or (at your option) any later version.
     11  *
     12  * This library is distributed in the hope that it will be useful,
     13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15  * Lesser General Public License for more details.
     16  *
     17  * You should have received a copy of the GNU Lesser General Public
     18  * License along with this library; if not, write to the Free Software
     19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
     20  * MA 02110-1301 USA
     21  */
     22 
     23 #ifndef GARMIN_MODELS_H
     24 #define GARMIN_MODELS_H
     25 
     26 #include <stdbool.h>
     27 
     28 typedef struct {
     29 	const char *name;
     30 	int id;
     31 	bool mtp_capable;
     32 } garmin_model_t;
     33 
     34 /* FIT product IDs. See the Garmin Connect IQ device reference. */
     35 #define GARMIN_MODEL_LIST(MODEL) \
     36 	MODEL("Descent™ G1 / G1 Solar", 4005, true) \
     37 	MODEL("Descent™ G2", 4588, true) \
     38 	MODEL("Descent™ Mk1", 2859, false) \
     39 	MODEL("Descent™ Mk1 APAC", 2991, false) \
     40 	MODEL("Descent™ Mk2(i)", 3258, true) \
     41 	MODEL("Descent™ Mk2(i) APAC", 3702, true) \
     42 	MODEL("Descent™ Mk2 S", 3542, true) \
     43 	MODEL("Descent™ Mk2 S APAC", 3930, true) \
     44 	MODEL("Descent™ Mk3(i) 43mm", 4222, true) \
     45 	MODEL("Descent™ Mk3(i) 51mm", 4223, true) \
     46 	MODEL("Descent™ X50i", 4518, true) \
     47 	MODEL("fēnix® 8 43mm", 4534, true) \
     48 	MODEL("fēnix® 8 47mm / 51mm / tactix® 8 47mm / 51mm / quatix® 8 47mm / 51mm APAC", 4536, true) \
     49 	MODEL("fēnix® 8 47mm / 51mm / tactix® 8 47mm / 51mm / quatix® 8 47mm / 51mm", 4775, true) \
     50 	MODEL("fēnix® 8 Pro 47mm / 51mm / MicroLED / quatix® 8 Pro 47mm / 51mm", 4631, true) \
     51 	MODEL("fēnix® 8 Solar 47mm", 4532, true) \
     52 	MODEL("fēnix® 8 Solar 51mm / tactix® 8 Solar 51mm APAC", 4533, true) \
     53 	MODEL("fēnix® 8 Solar 51mm / tactix® 8 Solar 51mm", 4776, true)
     54 
     55 extern const garmin_model_t garmin_models[];
     56 
     57 #endif /* GARMIN_MODELS_H */