forked from tormoder/fit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
2522 lines (2290 loc) · 114 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated using the program found in 'cmd/fitgen/main.go'. DO NOT EDIT.
// SDK Version: 20.43
package fit
// ActivityClass represents the activity_class FIT type.
type ActivityClass byte
const (
ActivityClassLevel ActivityClass = 0x7F // 0 to 100
ActivityClassLevelMax ActivityClass = 100
ActivityClassAthlete ActivityClass = 0x80
ActivityClassInvalid ActivityClass = 0xFF
)
// ActivityLevel represents the activity_level FIT type.
type ActivityLevel byte
const (
ActivityLevelLow ActivityLevel = 0
ActivityLevelMedium ActivityLevel = 1
ActivityLevelHigh ActivityLevel = 2
ActivityLevelInvalid ActivityLevel = 0xFF
)
// ActivityMode represents the activity FIT type.
type ActivityMode byte
const (
ActivityModeManual ActivityMode = 0
ActivityModeAutoMultiSport ActivityMode = 1
ActivityModeInvalid ActivityMode = 0xFF
)
// ActivitySubtype represents the activity_subtype FIT type.
type ActivitySubtype byte
const (
ActivitySubtypeGeneric ActivitySubtype = 0
ActivitySubtypeTreadmill ActivitySubtype = 1 // Run
ActivitySubtypeStreet ActivitySubtype = 2 // Run
ActivitySubtypeTrail ActivitySubtype = 3 // Run
ActivitySubtypeTrack ActivitySubtype = 4 // Run
ActivitySubtypeSpin ActivitySubtype = 5 // Cycling
ActivitySubtypeIndoorCycling ActivitySubtype = 6 // Cycling
ActivitySubtypeRoad ActivitySubtype = 7 // Cycling
ActivitySubtypeMountain ActivitySubtype = 8 // Cycling
ActivitySubtypeDownhill ActivitySubtype = 9 // Cycling
ActivitySubtypeRecumbent ActivitySubtype = 10 // Cycling
ActivitySubtypeCyclocross ActivitySubtype = 11 // Cycling
ActivitySubtypeHandCycling ActivitySubtype = 12 // Cycling
ActivitySubtypeTrackCycling ActivitySubtype = 13 // Cycling
ActivitySubtypeIndoorRowing ActivitySubtype = 14 // Fitness Equipment
ActivitySubtypeElliptical ActivitySubtype = 15 // Fitness Equipment
ActivitySubtypeStairClimbing ActivitySubtype = 16 // Fitness Equipment
ActivitySubtypeLapSwimming ActivitySubtype = 17 // Swimming
ActivitySubtypeOpenWater ActivitySubtype = 18 // Swimming
ActivitySubtypeAll ActivitySubtype = 254
ActivitySubtypeInvalid ActivitySubtype = 0xFF
)
// ActivityType represents the activity_type FIT type.
type ActivityType byte
const (
ActivityTypeGeneric ActivityType = 0
ActivityTypeRunning ActivityType = 1
ActivityTypeCycling ActivityType = 2
ActivityTypeTransition ActivityType = 3 // Mulitsport transition
ActivityTypeFitnessEquipment ActivityType = 4
ActivityTypeSwimming ActivityType = 5
ActivityTypeWalking ActivityType = 6
ActivityTypeSedentary ActivityType = 8
ActivityTypeAll ActivityType = 254 // All is for goals only to include all sports.
ActivityTypeInvalid ActivityType = 0xFF
)
// AnalogWatchfaceLayout represents the analog_watchface_layout FIT type.
type AnalogWatchfaceLayout byte
const (
AnalogWatchfaceLayoutMinimal AnalogWatchfaceLayout = 0
AnalogWatchfaceLayoutTraditional AnalogWatchfaceLayout = 1
AnalogWatchfaceLayoutModern AnalogWatchfaceLayout = 2
AnalogWatchfaceLayoutInvalid AnalogWatchfaceLayout = 0xFF
)
// AntNetwork represents the ant_network FIT type.
type AntNetwork byte
const (
AntNetworkPublic AntNetwork = 0
AntNetworkAntplus AntNetwork = 1
AntNetworkAntfs AntNetwork = 2
AntNetworkPrivate AntNetwork = 3
AntNetworkInvalid AntNetwork = 0xFF
)
// AntplusDeviceType represents the antplus_device_type FIT type.
type AntplusDeviceType uint8
const (
AntplusDeviceTypeAntfs AntplusDeviceType = 1
AntplusDeviceTypeBikePower AntplusDeviceType = 11
AntplusDeviceTypeEnvironmentSensorLegacy AntplusDeviceType = 12
AntplusDeviceTypeMultiSportSpeedDistance AntplusDeviceType = 15
AntplusDeviceTypeControl AntplusDeviceType = 16
AntplusDeviceTypeFitnessEquipment AntplusDeviceType = 17
AntplusDeviceTypeBloodPressure AntplusDeviceType = 18
AntplusDeviceTypeGeocacheNode AntplusDeviceType = 19
AntplusDeviceTypeLightElectricVehicle AntplusDeviceType = 20
AntplusDeviceTypeEnvSensor AntplusDeviceType = 25
AntplusDeviceTypeRacquet AntplusDeviceType = 26
AntplusDeviceTypeControlHub AntplusDeviceType = 27
AntplusDeviceTypeMuscleOxygen AntplusDeviceType = 31
AntplusDeviceTypeBikeLightMain AntplusDeviceType = 35
AntplusDeviceTypeBikeLightShared AntplusDeviceType = 36
AntplusDeviceTypeExd AntplusDeviceType = 38
AntplusDeviceTypeBikeRadar AntplusDeviceType = 40
AntplusDeviceTypeWeightScale AntplusDeviceType = 119
AntplusDeviceTypeHeartRate AntplusDeviceType = 120
AntplusDeviceTypeBikeSpeedCadence AntplusDeviceType = 121
AntplusDeviceTypeBikeCadence AntplusDeviceType = 122
AntplusDeviceTypeBikeSpeed AntplusDeviceType = 123
AntplusDeviceTypeStrideSpeedDistance AntplusDeviceType = 124
AntplusDeviceTypeInvalid AntplusDeviceType = 0xFF
)
// AttitudeStage represents the attitude_stage FIT type.
type AttitudeStage byte
const (
AttitudeStageFailed AttitudeStage = 0
AttitudeStageAligning AttitudeStage = 1
AttitudeStageDegraded AttitudeStage = 2
AttitudeStageValid AttitudeStage = 3
AttitudeStageInvalid AttitudeStage = 0xFF
)
// AttitudeValidity represents the attitude_validity FIT type.
type AttitudeValidity uint16
const (
AttitudeValidityTrackAngleHeadingValid AttitudeValidity = 0x0001
AttitudeValidityPitchValid AttitudeValidity = 0x0002
AttitudeValidityRollValid AttitudeValidity = 0x0004
AttitudeValidityLateralBodyAccelValid AttitudeValidity = 0x0008
AttitudeValidityNormalBodyAccelValid AttitudeValidity = 0x0010
AttitudeValidityTurnRateValid AttitudeValidity = 0x0020
AttitudeValidityHwFail AttitudeValidity = 0x0040
AttitudeValidityMagInvalid AttitudeValidity = 0x0080
AttitudeValidityNoGps AttitudeValidity = 0x0100
AttitudeValidityGpsInvalid AttitudeValidity = 0x0200
AttitudeValiditySolutionCoasting AttitudeValidity = 0x0400
AttitudeValidityTrueTrackAngle AttitudeValidity = 0x0800
AttitudeValidityMagneticHeading AttitudeValidity = 0x1000
AttitudeValidityInvalid AttitudeValidity = 0xFFFF
)
// AutoActivityDetect represents the auto_activity_detect FIT type.
type AutoActivityDetect uint32
const (
AutoActivityDetectNone AutoActivityDetect = 0x00000000
AutoActivityDetectRunning AutoActivityDetect = 0x00000001
AutoActivityDetectCycling AutoActivityDetect = 0x00000002
AutoActivityDetectSwimming AutoActivityDetect = 0x00000004
AutoActivityDetectWalking AutoActivityDetect = 0x00000008
AutoActivityDetectElliptical AutoActivityDetect = 0x00000020
AutoActivityDetectSedentary AutoActivityDetect = 0x00000400
AutoActivityDetectInvalid AutoActivityDetect = 0xFFFFFFFF
)
// AutoSyncFrequency represents the auto_sync_frequency FIT type.
type AutoSyncFrequency byte
const (
AutoSyncFrequencyNever AutoSyncFrequency = 0
AutoSyncFrequencyOccasionally AutoSyncFrequency = 1
AutoSyncFrequencyFrequent AutoSyncFrequency = 2
AutoSyncFrequencyOnceADay AutoSyncFrequency = 3
AutoSyncFrequencyRemote AutoSyncFrequency = 4
AutoSyncFrequencyInvalid AutoSyncFrequency = 0xFF
)
// AutolapTrigger represents the autolap_trigger FIT type.
type AutolapTrigger byte
const (
AutolapTriggerTime AutolapTrigger = 0
AutolapTriggerDistance AutolapTrigger = 1
AutolapTriggerPositionStart AutolapTrigger = 2
AutolapTriggerPositionLap AutolapTrigger = 3
AutolapTriggerPositionWaypoint AutolapTrigger = 4
AutolapTriggerPositionMarked AutolapTrigger = 5
AutolapTriggerOff AutolapTrigger = 6
AutolapTriggerInvalid AutolapTrigger = 0xFF
)
// Autoscroll represents the autoscroll FIT type.
type Autoscroll byte
const (
AutoscrollNone Autoscroll = 0
AutoscrollSlow Autoscroll = 1
AutoscrollMedium Autoscroll = 2
AutoscrollFast Autoscroll = 3
AutoscrollInvalid Autoscroll = 0xFF
)
// BacklightMode represents the backlight_mode FIT type.
type BacklightMode byte
const (
BacklightModeOff BacklightMode = 0
BacklightModeManual BacklightMode = 1
BacklightModeKeyAndMessages BacklightMode = 2
BacklightModeAutoBrightness BacklightMode = 3
BacklightModeSmartNotifications BacklightMode = 4
BacklightModeKeyAndMessagesNight BacklightMode = 5
BacklightModeKeyAndMessagesAndSmartNotifications BacklightMode = 6
BacklightModeInvalid BacklightMode = 0xFF
)
// BatteryStatus represents the battery_status FIT type.
type BatteryStatus uint8
const (
BatteryStatusNew BatteryStatus = 1
BatteryStatusGood BatteryStatus = 2
BatteryStatusOk BatteryStatus = 3
BatteryStatusLow BatteryStatus = 4
BatteryStatusCritical BatteryStatus = 5
BatteryStatusCharging BatteryStatus = 6
BatteryStatusUnknown BatteryStatus = 7
BatteryStatusInvalid BatteryStatus = 0xFF
)
// BikeLightBeamAngleMode represents the bike_light_beam_angle_mode FIT type.
type BikeLightBeamAngleMode uint8
const (
BikeLightBeamAngleModeManual BikeLightBeamAngleMode = 0
BikeLightBeamAngleModeAuto BikeLightBeamAngleMode = 1
BikeLightBeamAngleModeInvalid BikeLightBeamAngleMode = 0xFF
)
// BikeLightNetworkConfigType represents the bike_light_network_config_type FIT type.
type BikeLightNetworkConfigType byte
const (
BikeLightNetworkConfigTypeAuto BikeLightNetworkConfigType = 0
BikeLightNetworkConfigTypeIndividual BikeLightNetworkConfigType = 4
BikeLightNetworkConfigTypeHighVisibility BikeLightNetworkConfigType = 5
BikeLightNetworkConfigTypeTrail BikeLightNetworkConfigType = 6
BikeLightNetworkConfigTypeInvalid BikeLightNetworkConfigType = 0xFF
)
// BodyLocation represents the body_location FIT type.
type BodyLocation byte
const (
BodyLocationLeftLeg BodyLocation = 0
BodyLocationLeftCalf BodyLocation = 1
BodyLocationLeftShin BodyLocation = 2
BodyLocationLeftHamstring BodyLocation = 3
BodyLocationLeftQuad BodyLocation = 4
BodyLocationLeftGlute BodyLocation = 5
BodyLocationRightLeg BodyLocation = 6
BodyLocationRightCalf BodyLocation = 7
BodyLocationRightShin BodyLocation = 8
BodyLocationRightHamstring BodyLocation = 9
BodyLocationRightQuad BodyLocation = 10
BodyLocationRightGlute BodyLocation = 11
BodyLocationTorsoBack BodyLocation = 12
BodyLocationLeftLowerBack BodyLocation = 13
BodyLocationLeftUpperBack BodyLocation = 14
BodyLocationRightLowerBack BodyLocation = 15
BodyLocationRightUpperBack BodyLocation = 16
BodyLocationTorsoFront BodyLocation = 17
BodyLocationLeftAbdomen BodyLocation = 18
BodyLocationLeftChest BodyLocation = 19
BodyLocationRightAbdomen BodyLocation = 20
BodyLocationRightChest BodyLocation = 21
BodyLocationLeftArm BodyLocation = 22
BodyLocationLeftShoulder BodyLocation = 23
BodyLocationLeftBicep BodyLocation = 24
BodyLocationLeftTricep BodyLocation = 25
BodyLocationLeftBrachioradialis BodyLocation = 26 // Left anterior forearm
BodyLocationLeftForearmExtensors BodyLocation = 27 // Left posterior forearm
BodyLocationRightArm BodyLocation = 28
BodyLocationRightShoulder BodyLocation = 29
BodyLocationRightBicep BodyLocation = 30
BodyLocationRightTricep BodyLocation = 31
BodyLocationRightBrachioradialis BodyLocation = 32 // Right anterior forearm
BodyLocationRightForearmExtensors BodyLocation = 33 // Right posterior forearm
BodyLocationNeck BodyLocation = 34
BodyLocationThroat BodyLocation = 35
BodyLocationWaistMidBack BodyLocation = 36
BodyLocationWaistFront BodyLocation = 37
BodyLocationWaistLeft BodyLocation = 38
BodyLocationWaistRight BodyLocation = 39
BodyLocationInvalid BodyLocation = 0xFF
)
// BpStatus represents the bp_status FIT type.
type BpStatus byte
const (
BpStatusNoError BpStatus = 0
BpStatusErrorIncompleteData BpStatus = 1
BpStatusErrorNoMeasurement BpStatus = 2
BpStatusErrorDataOutOfRange BpStatus = 3
BpStatusErrorIrregularHeartRate BpStatus = 4
BpStatusInvalid BpStatus = 0xFF
)
// CameraEventType represents the camera_event_type FIT type.
type CameraEventType byte
const (
CameraEventTypeVideoStart CameraEventType = 0 // Start of video recording
CameraEventTypeVideoSplit CameraEventType = 1 // Mark of video file split (end of one file, beginning of the other)
CameraEventTypeVideoEnd CameraEventType = 2 // End of video recording
CameraEventTypePhotoTaken CameraEventType = 3 // Still photo taken
CameraEventTypeVideoSecondStreamStart CameraEventType = 4
CameraEventTypeVideoSecondStreamSplit CameraEventType = 5
CameraEventTypeVideoSecondStreamEnd CameraEventType = 6
CameraEventTypeVideoSplitStart CameraEventType = 7 // Mark of video file split start
CameraEventTypeVideoSecondStreamSplitStart CameraEventType = 8
CameraEventTypeVideoPause CameraEventType = 11 // Mark when a video recording has been paused
CameraEventTypeVideoSecondStreamPause CameraEventType = 12
CameraEventTypeVideoResume CameraEventType = 13 // Mark when a video recording has been resumed
CameraEventTypeVideoSecondStreamResume CameraEventType = 14
CameraEventTypeInvalid CameraEventType = 0xFF
)
// CameraOrientationType represents the camera_orientation_type FIT type.
type CameraOrientationType byte
const (
CameraOrientationTypeCameraOrientation0 CameraOrientationType = 0
CameraOrientationTypeCameraOrientation90 CameraOrientationType = 1
CameraOrientationTypeCameraOrientation180 CameraOrientationType = 2
CameraOrientationTypeCameraOrientation270 CameraOrientationType = 3
CameraOrientationTypeInvalid CameraOrientationType = 0xFF
)
// Checksum represents the checksum FIT type.
type Checksum uint8
const (
ChecksumClear Checksum = 0 // Allows clear of checksum for flash memory where can only write 1 to 0 without erasing sector.
ChecksumOk Checksum = 1 // Set to mark checksum as valid if computes to invalid values 0 or 0xFF. Checksum can also be set to ok to save encoding computation time.
ChecksumInvalid Checksum = 0xFF
)
// CommTimeoutType represents the comm_timeout_type FIT type.
type CommTimeoutType uint16
const (
CommTimeoutTypeWildcardPairingTimeout CommTimeoutType = 0 // Timeout pairing to any device
CommTimeoutTypePairingTimeout CommTimeoutType = 1 // Timeout pairing to previously paired device
CommTimeoutTypeConnectionLost CommTimeoutType = 2 // Temporary loss of communications
CommTimeoutTypeConnectionTimeout CommTimeoutType = 3 // Connection closed due to extended bad communications
CommTimeoutTypeInvalid CommTimeoutType = 0xFFFF
)
// ConnectivityCapabilities represents the connectivity_capabilities FIT type.
type ConnectivityCapabilities uint32
const (
ConnectivityCapabilitiesBluetooth ConnectivityCapabilities = 0x00000001
ConnectivityCapabilitiesBluetoothLe ConnectivityCapabilities = 0x00000002
ConnectivityCapabilitiesAnt ConnectivityCapabilities = 0x00000004
ConnectivityCapabilitiesActivityUpload ConnectivityCapabilities = 0x00000008
ConnectivityCapabilitiesCourseDownload ConnectivityCapabilities = 0x00000010
ConnectivityCapabilitiesWorkoutDownload ConnectivityCapabilities = 0x00000020
ConnectivityCapabilitiesLiveTrack ConnectivityCapabilities = 0x00000040
ConnectivityCapabilitiesWeatherConditions ConnectivityCapabilities = 0x00000080
ConnectivityCapabilitiesWeatherAlerts ConnectivityCapabilities = 0x00000100
ConnectivityCapabilitiesGpsEphemerisDownload ConnectivityCapabilities = 0x00000200
ConnectivityCapabilitiesExplicitArchive ConnectivityCapabilities = 0x00000400
ConnectivityCapabilitiesSetupIncomplete ConnectivityCapabilities = 0x00000800
ConnectivityCapabilitiesContinueSyncAfterSoftwareUpdate ConnectivityCapabilities = 0x00001000
ConnectivityCapabilitiesConnectIqAppDownload ConnectivityCapabilities = 0x00002000
ConnectivityCapabilitiesGolfCourseDownload ConnectivityCapabilities = 0x00004000
ConnectivityCapabilitiesDeviceInitiatesSync ConnectivityCapabilities = 0x00008000 // Indicates device is in control of initiating all syncs
ConnectivityCapabilitiesConnectIqWatchAppDownload ConnectivityCapabilities = 0x00010000
ConnectivityCapabilitiesConnectIqWidgetDownload ConnectivityCapabilities = 0x00020000
ConnectivityCapabilitiesConnectIqWatchFaceDownload ConnectivityCapabilities = 0x00040000
ConnectivityCapabilitiesConnectIqDataFieldDownload ConnectivityCapabilities = 0x00080000
ConnectivityCapabilitiesConnectIqAppManagment ConnectivityCapabilities = 0x00100000 // Device supports delete and reorder of apps via GCM
ConnectivityCapabilitiesSwingSensor ConnectivityCapabilities = 0x00200000
ConnectivityCapabilitiesSwingSensorRemote ConnectivityCapabilities = 0x00400000
ConnectivityCapabilitiesIncidentDetection ConnectivityCapabilities = 0x00800000 // Device supports incident detection
ConnectivityCapabilitiesAudioPrompts ConnectivityCapabilities = 0x01000000
ConnectivityCapabilitiesWifiVerification ConnectivityCapabilities = 0x02000000 // Device supports reporting wifi verification via GCM
ConnectivityCapabilitiesTrueUp ConnectivityCapabilities = 0x04000000 // Device supports True Up
ConnectivityCapabilitiesFindMyWatch ConnectivityCapabilities = 0x08000000 // Device supports Find My Watch
ConnectivityCapabilitiesRemoteManualSync ConnectivityCapabilities = 0x10000000
ConnectivityCapabilitiesLiveTrackAutoStart ConnectivityCapabilities = 0x20000000 // Device supports LiveTrack auto start
ConnectivityCapabilitiesLiveTrackMessaging ConnectivityCapabilities = 0x40000000 // Device supports LiveTrack Messaging
ConnectivityCapabilitiesInstantInput ConnectivityCapabilities = 0x80000000 // Device supports instant input feature
ConnectivityCapabilitiesInvalid ConnectivityCapabilities = 0x00000000
)
// CourseCapabilities represents the course_capabilities FIT type.
type CourseCapabilities uint32
const (
CourseCapabilitiesProcessed CourseCapabilities = 0x00000001
CourseCapabilitiesValid CourseCapabilities = 0x00000002
CourseCapabilitiesTime CourseCapabilities = 0x00000004
CourseCapabilitiesDistance CourseCapabilities = 0x00000008
CourseCapabilitiesPosition CourseCapabilities = 0x00000010
CourseCapabilitiesHeartRate CourseCapabilities = 0x00000020
CourseCapabilitiesPower CourseCapabilities = 0x00000040
CourseCapabilitiesCadence CourseCapabilities = 0x00000080
CourseCapabilitiesTraining CourseCapabilities = 0x00000100
CourseCapabilitiesNavigation CourseCapabilities = 0x00000200
CourseCapabilitiesBikeway CourseCapabilities = 0x00000400
CourseCapabilitiesInvalid CourseCapabilities = 0x00000000
)
// CoursePoint represents the course_point FIT type.
type CoursePoint byte
const (
CoursePointGeneric CoursePoint = 0
CoursePointSummit CoursePoint = 1
CoursePointValley CoursePoint = 2
CoursePointWater CoursePoint = 3
CoursePointFood CoursePoint = 4
CoursePointDanger CoursePoint = 5
CoursePointLeft CoursePoint = 6
CoursePointRight CoursePoint = 7
CoursePointStraight CoursePoint = 8
CoursePointFirstAid CoursePoint = 9
CoursePointFourthCategory CoursePoint = 10
CoursePointThirdCategory CoursePoint = 11
CoursePointSecondCategory CoursePoint = 12
CoursePointFirstCategory CoursePoint = 13
CoursePointHorsCategory CoursePoint = 14
CoursePointSprint CoursePoint = 15
CoursePointLeftFork CoursePoint = 16
CoursePointRightFork CoursePoint = 17
CoursePointMiddleFork CoursePoint = 18
CoursePointSlightLeft CoursePoint = 19
CoursePointSharpLeft CoursePoint = 20
CoursePointSlightRight CoursePoint = 21
CoursePointSharpRight CoursePoint = 22
CoursePointUTurn CoursePoint = 23
CoursePointSegmentStart CoursePoint = 24
CoursePointSegmentEnd CoursePoint = 25
CoursePointInvalid CoursePoint = 0xFF
)
// DateMode represents the date_mode FIT type.
type DateMode byte
const (
DateModeDayMonth DateMode = 0
DateModeMonthDay DateMode = 1
DateModeInvalid DateMode = 0xFF
)
// DayOfWeek represents the day_of_week FIT type.
type DayOfWeek byte
const (
DayOfWeekSunday DayOfWeek = 0
DayOfWeekMonday DayOfWeek = 1
DayOfWeekTuesday DayOfWeek = 2
DayOfWeekWednesday DayOfWeek = 3
DayOfWeekThursday DayOfWeek = 4
DayOfWeekFriday DayOfWeek = 5
DayOfWeekSaturday DayOfWeek = 6
DayOfWeekInvalid DayOfWeek = 0xFF
)
// DeviceIndex represents the device_index FIT type.
type DeviceIndex uint8
const (
DeviceIndexCreator DeviceIndex = 0 // Creator of the file is always device index 0.
DeviceIndexInvalid DeviceIndex = 0xFF
)
// DigitalWatchfaceLayout represents the digital_watchface_layout FIT type.
type DigitalWatchfaceLayout byte
const (
DigitalWatchfaceLayoutTraditional DigitalWatchfaceLayout = 0
DigitalWatchfaceLayoutModern DigitalWatchfaceLayout = 1
DigitalWatchfaceLayoutBold DigitalWatchfaceLayout = 2
DigitalWatchfaceLayoutInvalid DigitalWatchfaceLayout = 0xFF
)
// DisplayHeart represents the display_heart FIT type.
type DisplayHeart byte
const (
DisplayHeartBpm DisplayHeart = 0
DisplayHeartMax DisplayHeart = 1
DisplayHeartReserve DisplayHeart = 2
DisplayHeartInvalid DisplayHeart = 0xFF
)
// DisplayMeasure represents the display_measure FIT type.
type DisplayMeasure byte
const (
DisplayMeasureMetric DisplayMeasure = 0
DisplayMeasureStatute DisplayMeasure = 1
DisplayMeasureNautical DisplayMeasure = 2
DisplayMeasureInvalid DisplayMeasure = 0xFF
)
// DisplayOrientation represents the display_orientation FIT type.
type DisplayOrientation byte
const (
DisplayOrientationAuto DisplayOrientation = 0 // automatic if the device supports it
DisplayOrientationPortrait DisplayOrientation = 1
DisplayOrientationLandscape DisplayOrientation = 2
DisplayOrientationPortraitFlipped DisplayOrientation = 3 // portrait mode but rotated 180 degrees
DisplayOrientationLandscapeFlipped DisplayOrientation = 4 // landscape mode but rotated 180 degrees
DisplayOrientationInvalid DisplayOrientation = 0xFF
)
// DisplayPosition represents the display_position FIT type.
type DisplayPosition byte
const (
DisplayPositionDegree DisplayPosition = 0 // dd.dddddd
DisplayPositionDegreeMinute DisplayPosition = 1 // dddmm.mmm
DisplayPositionDegreeMinuteSecond DisplayPosition = 2 // dddmmss
DisplayPositionAustrianGrid DisplayPosition = 3 // Austrian Grid (BMN)
DisplayPositionBritishGrid DisplayPosition = 4 // British National Grid
DisplayPositionDutchGrid DisplayPosition = 5 // Dutch grid system
DisplayPositionHungarianGrid DisplayPosition = 6 // Hungarian grid system
DisplayPositionFinnishGrid DisplayPosition = 7 // Finnish grid system Zone3 KKJ27
DisplayPositionGermanGrid DisplayPosition = 8 // Gausss Krueger (German)
DisplayPositionIcelandicGrid DisplayPosition = 9 // Icelandic Grid
DisplayPositionIndonesianEquatorial DisplayPosition = 10 // Indonesian Equatorial LCO
DisplayPositionIndonesianIrian DisplayPosition = 11 // Indonesian Irian LCO
DisplayPositionIndonesianSouthern DisplayPosition = 12 // Indonesian Southern LCO
DisplayPositionIndiaZone0 DisplayPosition = 13 // India zone 0
DisplayPositionIndiaZoneIA DisplayPosition = 14 // India zone IA
DisplayPositionIndiaZoneIB DisplayPosition = 15 // India zone IB
DisplayPositionIndiaZoneIIA DisplayPosition = 16 // India zone IIA
DisplayPositionIndiaZoneIIB DisplayPosition = 17 // India zone IIB
DisplayPositionIndiaZoneIIIA DisplayPosition = 18 // India zone IIIA
DisplayPositionIndiaZoneIIIB DisplayPosition = 19 // India zone IIIB
DisplayPositionIndiaZoneIVA DisplayPosition = 20 // India zone IVA
DisplayPositionIndiaZoneIVB DisplayPosition = 21 // India zone IVB
DisplayPositionIrishTransverse DisplayPosition = 22 // Irish Transverse Mercator
DisplayPositionIrishGrid DisplayPosition = 23 // Irish Grid
DisplayPositionLoran DisplayPosition = 24 // Loran TD
DisplayPositionMaidenheadGrid DisplayPosition = 25 // Maidenhead grid system
DisplayPositionMgrsGrid DisplayPosition = 26 // MGRS grid system
DisplayPositionNewZealandGrid DisplayPosition = 27 // New Zealand grid system
DisplayPositionNewZealandTransverse DisplayPosition = 28 // New Zealand Transverse Mercator
DisplayPositionQatarGrid DisplayPosition = 29 // Qatar National Grid
DisplayPositionModifiedSwedishGrid DisplayPosition = 30 // Modified RT-90 (Sweden)
DisplayPositionSwedishGrid DisplayPosition = 31 // RT-90 (Sweden)
DisplayPositionSouthAfricanGrid DisplayPosition = 32 // South African Grid
DisplayPositionSwissGrid DisplayPosition = 33 // Swiss CH-1903 grid
DisplayPositionTaiwanGrid DisplayPosition = 34 // Taiwan Grid
DisplayPositionUnitedStatesGrid DisplayPosition = 35 // United States National Grid
DisplayPositionUtmUpsGrid DisplayPosition = 36 // UTM/UPS grid system
DisplayPositionWestMalayan DisplayPosition = 37 // West Malayan RSO
DisplayPositionBorneoRso DisplayPosition = 38 // Borneo RSO
DisplayPositionEstonianGrid DisplayPosition = 39 // Estonian grid system
DisplayPositionLatvianGrid DisplayPosition = 40 // Latvian Transverse Mercator
DisplayPositionSwedishRef99Grid DisplayPosition = 41 // Reference Grid 99 TM (Swedish)
DisplayPositionInvalid DisplayPosition = 0xFF
)
// DisplayPower represents the display_power FIT type.
type DisplayPower byte
const (
DisplayPowerWatts DisplayPower = 0
DisplayPowerPercentFtp DisplayPower = 1
DisplayPowerInvalid DisplayPower = 0xFF
)
// Event represents the event FIT type.
type Event byte
const (
EventTimer Event = 0 // Group 0. Start / stop_all
EventWorkout Event = 3 // start / stop
EventWorkoutStep Event = 4 // Start at beginning of workout. Stop at end of each step.
EventPowerDown Event = 5 // stop_all group 0
EventPowerUp Event = 6 // stop_all group 0
EventOffCourse Event = 7 // start / stop group 0
EventSession Event = 8 // Stop at end of each session.
EventLap Event = 9 // Stop at end of each lap.
EventCoursePoint Event = 10 // marker
EventBattery Event = 11 // marker
EventVirtualPartnerPace Event = 12 // Group 1. Start at beginning of activity if VP enabled, when VP pace is changed during activity or VP enabled mid activity. stop_disable when VP disabled.
EventHrHighAlert Event = 13 // Group 0. Start / stop when in alert condition.
EventHrLowAlert Event = 14 // Group 0. Start / stop when in alert condition.
EventSpeedHighAlert Event = 15 // Group 0. Start / stop when in alert condition.
EventSpeedLowAlert Event = 16 // Group 0. Start / stop when in alert condition.
EventCadHighAlert Event = 17 // Group 0. Start / stop when in alert condition.
EventCadLowAlert Event = 18 // Group 0. Start / stop when in alert condition.
EventPowerHighAlert Event = 19 // Group 0. Start / stop when in alert condition.
EventPowerLowAlert Event = 20 // Group 0. Start / stop when in alert condition.
EventRecoveryHr Event = 21 // marker
EventBatteryLow Event = 22 // marker
EventTimeDurationAlert Event = 23 // Group 1. Start if enabled mid activity (not required at start of activity). Stop when duration is reached. stop_disable if disabled.
EventDistanceDurationAlert Event = 24 // Group 1. Start if enabled mid activity (not required at start of activity). Stop when duration is reached. stop_disable if disabled.
EventCalorieDurationAlert Event = 25 // Group 1. Start if enabled mid activity (not required at start of activity). Stop when duration is reached. stop_disable if disabled.
EventActivity Event = 26 // Group 1.. Stop at end of activity.
EventFitnessEquipment Event = 27 // marker
EventLength Event = 28 // Stop at end of each length.
EventUserMarker Event = 32 // marker
EventSportPoint Event = 33 // marker
EventCalibration Event = 36 // start/stop/marker
EventFrontGearChange Event = 42 // marker
EventRearGearChange Event = 43 // marker
EventRiderPositionChange Event = 44 // marker
EventElevHighAlert Event = 45 // Group 0. Start / stop when in alert condition.
EventElevLowAlert Event = 46 // Group 0. Start / stop when in alert condition.
EventCommTimeout Event = 47 // marker
EventInvalid Event = 0xFF
)
// EventType represents the event_type FIT type.
type EventType byte
const (
EventTypeStart EventType = 0
EventTypeStop EventType = 1
EventTypeConsecutiveDepreciated EventType = 2
EventTypeMarker EventType = 3
EventTypeStopAll EventType = 4
EventTypeBeginDepreciated EventType = 5
EventTypeEndDepreciated EventType = 6
EventTypeEndAllDepreciated EventType = 7
EventTypeStopDisable EventType = 8
EventTypeStopDisableAll EventType = 9
EventTypeInvalid EventType = 0xFF
)
// ExdDataUnits represents the exd_data_units FIT type.
type ExdDataUnits byte
const (
ExdDataUnitsNoUnits ExdDataUnits = 0
ExdDataUnitsLaps ExdDataUnits = 1
ExdDataUnitsMilesPerHour ExdDataUnits = 2
ExdDataUnitsKilometersPerHour ExdDataUnits = 3
ExdDataUnitsFeetPerHour ExdDataUnits = 4
ExdDataUnitsMetersPerHour ExdDataUnits = 5
ExdDataUnitsDegreesCelsius ExdDataUnits = 6
ExdDataUnitsDegreesFarenheit ExdDataUnits = 7
ExdDataUnitsZone ExdDataUnits = 8
ExdDataUnitsGear ExdDataUnits = 9
ExdDataUnitsRpm ExdDataUnits = 10
ExdDataUnitsBpm ExdDataUnits = 11
ExdDataUnitsDegrees ExdDataUnits = 12
ExdDataUnitsMillimeters ExdDataUnits = 13
ExdDataUnitsMeters ExdDataUnits = 14
ExdDataUnitsKilometers ExdDataUnits = 15
ExdDataUnitsFeet ExdDataUnits = 16
ExdDataUnitsYards ExdDataUnits = 17
ExdDataUnitsKilofeet ExdDataUnits = 18
ExdDataUnitsMiles ExdDataUnits = 19
ExdDataUnitsTime ExdDataUnits = 20
ExdDataUnitsEnumTurnType ExdDataUnits = 21
ExdDataUnitsPercent ExdDataUnits = 22
ExdDataUnitsWatts ExdDataUnits = 23
ExdDataUnitsWattsPerKilogram ExdDataUnits = 24
ExdDataUnitsEnumBatteryStatus ExdDataUnits = 25
ExdDataUnitsEnumBikeLightBeamAngleMode ExdDataUnits = 26
ExdDataUnitsEnumBikeLightBatteryStatus ExdDataUnits = 27
ExdDataUnitsEnumBikeLightNetworkConfigType ExdDataUnits = 28
ExdDataUnitsLights ExdDataUnits = 29
ExdDataUnitsSeconds ExdDataUnits = 30
ExdDataUnitsMinutes ExdDataUnits = 31
ExdDataUnitsHours ExdDataUnits = 32
ExdDataUnitsCalories ExdDataUnits = 33
ExdDataUnitsKilojoules ExdDataUnits = 34
ExdDataUnitsMilliseconds ExdDataUnits = 35
ExdDataUnitsSecondPerMile ExdDataUnits = 36
ExdDataUnitsSecondPerKilometer ExdDataUnits = 37
ExdDataUnitsCentimeter ExdDataUnits = 38
ExdDataUnitsEnumCoursePoint ExdDataUnits = 39
ExdDataUnitsBradians ExdDataUnits = 40
ExdDataUnitsEnumSport ExdDataUnits = 41
ExdDataUnitsInchesHg ExdDataUnits = 42
ExdDataUnitsMmHg ExdDataUnits = 43
ExdDataUnitsMbars ExdDataUnits = 44
ExdDataUnitsHectoPascals ExdDataUnits = 45
ExdDataUnitsFeetPerMin ExdDataUnits = 46
ExdDataUnitsMetersPerMin ExdDataUnits = 47
ExdDataUnitsMetersPerSec ExdDataUnits = 48
ExdDataUnitsEightCardinal ExdDataUnits = 49
ExdDataUnitsInvalid ExdDataUnits = 0xFF
)
// ExdDescriptors represents the exd_descriptors FIT type.
type ExdDescriptors byte
const (
ExdDescriptorsBikeLightBatteryStatus ExdDescriptors = 0
ExdDescriptorsBeamAngleStatus ExdDescriptors = 1
ExdDescriptorsBateryLevel ExdDescriptors = 2
ExdDescriptorsLightNetworkMode ExdDescriptors = 3
ExdDescriptorsNumberLightsConnected ExdDescriptors = 4
ExdDescriptorsCadence ExdDescriptors = 5
ExdDescriptorsDistance ExdDescriptors = 6
ExdDescriptorsEstimatedTimeOfArrival ExdDescriptors = 7
ExdDescriptorsHeading ExdDescriptors = 8
ExdDescriptorsTime ExdDescriptors = 9
ExdDescriptorsBatteryLevel ExdDescriptors = 10
ExdDescriptorsTrainerResistance ExdDescriptors = 11
ExdDescriptorsTrainerTargetPower ExdDescriptors = 12
ExdDescriptorsTimeSeated ExdDescriptors = 13
ExdDescriptorsTimeStanding ExdDescriptors = 14
ExdDescriptorsElevation ExdDescriptors = 15
ExdDescriptorsGrade ExdDescriptors = 16
ExdDescriptorsAscent ExdDescriptors = 17
ExdDescriptorsDescent ExdDescriptors = 18
ExdDescriptorsVerticalSpeed ExdDescriptors = 19
ExdDescriptorsDi2BatteryLevel ExdDescriptors = 20
ExdDescriptorsFrontGear ExdDescriptors = 21
ExdDescriptorsRearGear ExdDescriptors = 22
ExdDescriptorsGearRatio ExdDescriptors = 23
ExdDescriptorsHeartRate ExdDescriptors = 24
ExdDescriptorsHeartRateZone ExdDescriptors = 25
ExdDescriptorsTimeInHeartRateZone ExdDescriptors = 26
ExdDescriptorsHeartRateReserve ExdDescriptors = 27
ExdDescriptorsCalories ExdDescriptors = 28
ExdDescriptorsGpsAccuracy ExdDescriptors = 29
ExdDescriptorsGpsSignalStrength ExdDescriptors = 30
ExdDescriptorsTemperature ExdDescriptors = 31
ExdDescriptorsTimeOfDay ExdDescriptors = 32
ExdDescriptorsBalance ExdDescriptors = 33
ExdDescriptorsPedalSmoothness ExdDescriptors = 34
ExdDescriptorsPower ExdDescriptors = 35
ExdDescriptorsFunctionalThresholdPower ExdDescriptors = 36
ExdDescriptorsIntensityFactor ExdDescriptors = 37
ExdDescriptorsWork ExdDescriptors = 38
ExdDescriptorsPowerRatio ExdDescriptors = 39
ExdDescriptorsNormalizedPower ExdDescriptors = 40
ExdDescriptorsTrainingStressScore ExdDescriptors = 41
ExdDescriptorsTimeOnZone ExdDescriptors = 42
ExdDescriptorsSpeed ExdDescriptors = 43
ExdDescriptorsLaps ExdDescriptors = 44
ExdDescriptorsReps ExdDescriptors = 45
ExdDescriptorsWorkoutStep ExdDescriptors = 46
ExdDescriptorsCourseDistance ExdDescriptors = 47
ExdDescriptorsNavigationDistance ExdDescriptors = 48
ExdDescriptorsCourseEstimatedTimeOfArrival ExdDescriptors = 49
ExdDescriptorsNavigationEstimatedTimeOfArrival ExdDescriptors = 50
ExdDescriptorsCourseTime ExdDescriptors = 51
ExdDescriptorsNavigationTime ExdDescriptors = 52
ExdDescriptorsCourseHeading ExdDescriptors = 53
ExdDescriptorsNavigationHeading ExdDescriptors = 54
ExdDescriptorsPowerZone ExdDescriptors = 55
ExdDescriptorsTorqueEffectiveness ExdDescriptors = 56
ExdDescriptorsTimerTime ExdDescriptors = 57
ExdDescriptorsPowerWeightRatio ExdDescriptors = 58
ExdDescriptorsLeftPlatformCenterOffset ExdDescriptors = 59
ExdDescriptorsRightPlatformCenterOffset ExdDescriptors = 60
ExdDescriptorsLeftPowerPhaseStartAngle ExdDescriptors = 61
ExdDescriptorsRightPowerPhaseStartAngle ExdDescriptors = 62
ExdDescriptorsLeftPowerPhaseFinishAngle ExdDescriptors = 63
ExdDescriptorsRightPowerPhaseFinishAngle ExdDescriptors = 64
ExdDescriptorsGears ExdDescriptors = 65 // Combined gear information
ExdDescriptorsPace ExdDescriptors = 66
ExdDescriptorsTrainingEffect ExdDescriptors = 67
ExdDescriptorsVerticalOscillation ExdDescriptors = 68
ExdDescriptorsVerticalRatio ExdDescriptors = 69
ExdDescriptorsGroundContactTime ExdDescriptors = 70
ExdDescriptorsLeftGroundContactTimeBalance ExdDescriptors = 71
ExdDescriptorsRightGroundContactTimeBalance ExdDescriptors = 72
ExdDescriptorsStrideLength ExdDescriptors = 73
ExdDescriptorsRunningCadence ExdDescriptors = 74
ExdDescriptorsPerformanceCondition ExdDescriptors = 75
ExdDescriptorsCourseType ExdDescriptors = 76
ExdDescriptorsTimeInPowerZone ExdDescriptors = 77
ExdDescriptorsNavigationTurn ExdDescriptors = 78
ExdDescriptorsCourseLocation ExdDescriptors = 79
ExdDescriptorsNavigationLocation ExdDescriptors = 80
ExdDescriptorsCompass ExdDescriptors = 81
ExdDescriptorsGearCombo ExdDescriptors = 82
ExdDescriptorsMuscleOxygen ExdDescriptors = 83
ExdDescriptorsIcon ExdDescriptors = 84
ExdDescriptorsCompassHeading ExdDescriptors = 85
ExdDescriptorsGpsHeading ExdDescriptors = 86
ExdDescriptorsGpsElevation ExdDescriptors = 87
ExdDescriptorsAnaerobicTrainingEffect ExdDescriptors = 88
ExdDescriptorsCourse ExdDescriptors = 89
ExdDescriptorsOffCourse ExdDescriptors = 90
ExdDescriptorsGlideRatio ExdDescriptors = 91
ExdDescriptorsVerticalDistance ExdDescriptors = 92
ExdDescriptorsVmg ExdDescriptors = 93
ExdDescriptorsAmbientPressure ExdDescriptors = 94
ExdDescriptorsPressure ExdDescriptors = 95
ExdDescriptorsVam ExdDescriptors = 96
ExdDescriptorsInvalid ExdDescriptors = 0xFF
)
// ExdDisplayType represents the exd_display_type FIT type.
type ExdDisplayType byte
const (
ExdDisplayTypeNumerical ExdDisplayType = 0
ExdDisplayTypeSimple ExdDisplayType = 1
ExdDisplayTypeGraph ExdDisplayType = 2
ExdDisplayTypeBar ExdDisplayType = 3
ExdDisplayTypeCircleGraph ExdDisplayType = 4
ExdDisplayTypeVirtualPartner ExdDisplayType = 5
ExdDisplayTypeBalance ExdDisplayType = 6
ExdDisplayTypeStringList ExdDisplayType = 7
ExdDisplayTypeString ExdDisplayType = 8
ExdDisplayTypeSimpleDynamicIcon ExdDisplayType = 9
ExdDisplayTypeGauge ExdDisplayType = 10
ExdDisplayTypeInvalid ExdDisplayType = 0xFF
)
// ExdLayout represents the exd_layout FIT type.
type ExdLayout byte
const (
ExdLayoutFullScreen ExdLayout = 0
ExdLayoutHalfVertical ExdLayout = 1
ExdLayoutHalfHorizontal ExdLayout = 2
ExdLayoutHalfVerticalRightSplit ExdLayout = 3
ExdLayoutHalfHorizontalBottomSplit ExdLayout = 4
ExdLayoutFullQuarterSplit ExdLayout = 5
ExdLayoutHalfVerticalLeftSplit ExdLayout = 6
ExdLayoutHalfHorizontalTopSplit ExdLayout = 7
ExdLayoutInvalid ExdLayout = 0xFF
)
// ExdQualifiers represents the exd_qualifiers FIT type.
type ExdQualifiers byte
const (
ExdQualifiersNoQualifier ExdQualifiers = 0
ExdQualifiersInstantaneous ExdQualifiers = 1
ExdQualifiersAverage ExdQualifiers = 2
ExdQualifiersLap ExdQualifiers = 3
ExdQualifiersMaximum ExdQualifiers = 4
ExdQualifiersMaximumAverage ExdQualifiers = 5
ExdQualifiersMaximumLap ExdQualifiers = 6
ExdQualifiersLastLap ExdQualifiers = 7
ExdQualifiersAverageLap ExdQualifiers = 8
ExdQualifiersToDestination ExdQualifiers = 9
ExdQualifiersToGo ExdQualifiers = 10
ExdQualifiersToNext ExdQualifiers = 11
ExdQualifiersNextCoursePoint ExdQualifiers = 12
ExdQualifiersTotal ExdQualifiers = 13
ExdQualifiersThreeSecondAverage ExdQualifiers = 14
ExdQualifiersTenSecondAverage ExdQualifiers = 15
ExdQualifiersThirtySecondAverage ExdQualifiers = 16
ExdQualifiersPercentMaximum ExdQualifiers = 17
ExdQualifiersPercentMaximumAverage ExdQualifiers = 18
ExdQualifiersLapPercentMaximum ExdQualifiers = 19
ExdQualifiersElapsed ExdQualifiers = 20
ExdQualifiersSunrise ExdQualifiers = 21
ExdQualifiersSunset ExdQualifiers = 22
ExdQualifiersComparedToVirtualPartner ExdQualifiers = 23
ExdQualifiersMaximum24h ExdQualifiers = 24
ExdQualifiersMinimum24h ExdQualifiers = 25
ExdQualifiersMinimum ExdQualifiers = 26
ExdQualifiersFirst ExdQualifiers = 27
ExdQualifiersSecond ExdQualifiers = 28
ExdQualifiersThird ExdQualifiers = 29
ExdQualifiersShifter ExdQualifiers = 30
ExdQualifiersLastSport ExdQualifiers = 31
ExdQualifiersMoving ExdQualifiers = 32
ExdQualifiersStopped ExdQualifiers = 33
ExdQualifiersZone9 ExdQualifiers = 242
ExdQualifiersZone8 ExdQualifiers = 243
ExdQualifiersZone7 ExdQualifiers = 244
ExdQualifiersZone6 ExdQualifiers = 245
ExdQualifiersZone5 ExdQualifiers = 246
ExdQualifiersZone4 ExdQualifiers = 247
ExdQualifiersZone3 ExdQualifiers = 248
ExdQualifiersZone2 ExdQualifiers = 249
ExdQualifiersZone1 ExdQualifiers = 250
ExdQualifiersInvalid ExdQualifiers = 0xFF
)
// FileFlags represents the file_flags FIT type.
type FileFlags uint8
const (
FileFlagsRead FileFlags = 0x02
FileFlagsWrite FileFlags = 0x04
FileFlagsErase FileFlags = 0x08
FileFlagsInvalid FileFlags = 0x00
)
// FileType represents the file FIT type.
type FileType byte
const (
FileTypeDevice FileType = 1 // Read only, single file. Must be in root directory.
FileTypeSettings FileType = 2 // Read/write, single file. Directory=Settings
FileTypeSport FileType = 3 // Read/write, multiple files, file number = sport type. Directory=Sports
FileTypeActivity FileType = 4 // Read/erase, multiple files. Directory=Activities
FileTypeWorkout FileType = 5 // Read/write/erase, multiple files. Directory=Workouts
FileTypeCourse FileType = 6 // Read/write/erase, multiple files. Directory=Courses
FileTypeSchedules FileType = 7 // Read/write, single file. Directory=Schedules
FileTypeWeight FileType = 9 // Read only, single file. Circular buffer. All message definitions at start of file. Directory=Weight
FileTypeTotals FileType = 10 // Read only, single file. Directory=Totals
FileTypeGoals FileType = 11 // Read/write, single file. Directory=Goals
FileTypeBloodPressure FileType = 14 // Read only. Directory=Blood Pressure
FileTypeMonitoringA FileType = 15 // Read only. Directory=Monitoring. File number=sub type.
FileTypeActivitySummary FileType = 20 // Read/erase, multiple files. Directory=Activities
FileTypeMonitoringDaily FileType = 28
FileTypeMonitoringB FileType = 32 // Read only. Directory=Monitoring. File number=identifier
FileTypeSegment FileType = 34 // Read/write/erase. Multiple Files. Directory=Segments
FileTypeSegmentList FileType = 35 // Read/write/erase. Single File. Directory=Segments
FileTypeExdConfiguration FileType = 40 // Read/write/erase. Single File. Directory=Settings
FileTypeMfgRangeMin FileType = 0xF7 // 0xF7 - 0xFE reserved for manufacturer specific file types
FileTypeMfgRangeMax FileType = 0xFE // 0xF7 - 0xFE reserved for manufacturer specific file types
FileTypeInvalid FileType = 0xFF
)
// FitBaseType represents the fit_base_type FIT type.
type FitBaseType uint8
const (
FitBaseTypeEnum FitBaseType = 0
FitBaseTypeSint8 FitBaseType = 1
FitBaseTypeUint8 FitBaseType = 2
FitBaseTypeSint16 FitBaseType = 131
FitBaseTypeUint16 FitBaseType = 132
FitBaseTypeSint32 FitBaseType = 133
FitBaseTypeUint32 FitBaseType = 134
FitBaseTypeString FitBaseType = 7
FitBaseTypeFloat32 FitBaseType = 136
FitBaseTypeFloat64 FitBaseType = 137
FitBaseTypeUint8z FitBaseType = 10
FitBaseTypeUint16z FitBaseType = 139
FitBaseTypeUint32z FitBaseType = 140
FitBaseTypeByte FitBaseType = 13
FitBaseTypeSint64 FitBaseType = 142
FitBaseTypeUint64 FitBaseType = 143
FitBaseTypeUint64z FitBaseType = 144
FitBaseTypeInvalid FitBaseType = 0xFF
)
// FitBaseUnit represents the fit_base_unit FIT type.
type FitBaseUnit uint16
const (
FitBaseUnitOther FitBaseUnit = 0
FitBaseUnitKilogram FitBaseUnit = 1
FitBaseUnitPound FitBaseUnit = 2
FitBaseUnitInvalid FitBaseUnit = 0xFFFF
)
// FitnessEquipmentState represents the fitness_equipment_state FIT type.
type FitnessEquipmentState byte
const (
FitnessEquipmentStateReady FitnessEquipmentState = 0
FitnessEquipmentStateInUse FitnessEquipmentState = 1
FitnessEquipmentStatePaused FitnessEquipmentState = 2
FitnessEquipmentStateUnknown FitnessEquipmentState = 3 // lost connection to fitness equipment
FitnessEquipmentStateInvalid FitnessEquipmentState = 0xFF
)
// GarminProduct represents the garmin_product FIT type.
type GarminProduct uint16
const (
GarminProductHrm1 GarminProduct = 1
GarminProductAxh01 GarminProduct = 2 // AXH01 HRM chipset
GarminProductAxb01 GarminProduct = 3
GarminProductAxb02 GarminProduct = 4
GarminProductHrm2ss GarminProduct = 5
GarminProductDsiAlf02 GarminProduct = 6
GarminProductHrm3ss GarminProduct = 7
GarminProductHrmRunSingleByteProductId GarminProduct = 8 // hrm_run model for HRM ANT+ messaging
GarminProductBsm GarminProduct = 9 // BSM model for ANT+ messaging
GarminProductBcm GarminProduct = 10 // BCM model for ANT+ messaging
GarminProductAxs01 GarminProduct = 11 // AXS01 HRM Bike Chipset model for ANT+ messaging
GarminProductHrmTriSingleByteProductId GarminProduct = 12 // hrm_tri model for HRM ANT+ messaging
GarminProductFr225SingleByteProductId GarminProduct = 14 // fr225 model for HRM ANT+ messaging
GarminProductFr301China GarminProduct = 473
GarminProductFr301Japan GarminProduct = 474
GarminProductFr301Korea GarminProduct = 475
GarminProductFr301Taiwan GarminProduct = 494
GarminProductFr405 GarminProduct = 717 // Forerunner 405
GarminProductFr50 GarminProduct = 782 // Forerunner 50
GarminProductFr405Japan GarminProduct = 987