fit_js 0.94.6 → 0.94.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,95 @@
1
+ /////////////////////////////////////////////////////////////////////////////////////////////
2
+ // Copyright 2022 Garmin International, Inc.
3
+ // Licensed under the Flexible and Interoperable Data Transfer (FIT) Protocol License; you
4
+ // may not use this file except in compliance with the Flexible and Interoperable Data
5
+ // Transfer (FIT) Protocol License.
6
+ /////////////////////////////////////////////////////////////////////////////////////////////
7
+ // ****WARNING**** This file is auto-generated! Do NOT edit this file.
8
+ // Profile Version = 21.94Release
9
+ // Tag = production/akw/21.94.00-0-g0f668193
10
+ /////////////////////////////////////////////////////////////////////////////////////////////
11
+
12
+
13
+ const BaseType = {
14
+ ENUM: 0x00,
15
+ SINT8: 0x01,
16
+ UINT8: 0x02,
17
+ SINT16: 0x83,
18
+ UINT16: 0x84,
19
+ SINT32: 0x85,
20
+ UINT32: 0x86,
21
+ STRING: 0x07,
22
+ FLOAT32: 0x88,
23
+ FLOAT64: 0x89,
24
+ UINT8Z: 0x0A,
25
+ UINT16Z: 0x8B,
26
+ UINT32Z: 0x8C,
27
+ BYTE: 0x0D,
28
+ SINT64: 0x8E,
29
+ UINT64: 0x8F,
30
+ UINT64Z: 0x90
31
+ };
32
+
33
+ const BaseTypeDefinitions = {
34
+ 0x00: { size: 1, type: BaseType.ENUM, invalid: 0xFF },
35
+ 0x01: { size: 1, type: BaseType.SINT8, invalid: 0x7F },
36
+ 0x02: { size: 1, type: BaseType.UINT8, invalid: 0xFF },
37
+ 0x83: { size: 2, type: BaseType.SINT16, invalid: 0x7FFF },
38
+ 0x84: { size: 2, type: BaseType.UINT16, invalid: 0xFFFF },
39
+ 0x85: { size: 4, type: BaseType.SINT32, invalid: 0x7FFFFFFF },
40
+ 0x86: { size: 4, type: BaseType.UINT32, invalid: 0xFFFFFFFF },
41
+ 0x07: { size: 1, type: BaseType.STRING, invalid: 0x00 },
42
+ 0x88: { size: 4, type: BaseType.FLOAT32, invalid: 0xFFFFFFFF },
43
+ 0x89: { size: 8, type: BaseType.FLOAT64, invalid: 0xFFFFFFFFFFFFFFFF },
44
+ 0x0A: { size: 1, type: BaseType.UINT8Z, invalid: 0x00 },
45
+ 0x8B: { size: 2, type: BaseType.UINT16Z, invalid: 0x0000 },
46
+ 0x8C: { size: 4, type: BaseType.UINT32Z, invalid: 0x00000000 },
47
+ 0x0D: { size: 1, type: BaseType.BYTE, invalid: 0xFF },
48
+ 0x8E: { size: 8, type: BaseType.SINT64, invalid: 0x7FFFFFFFFFFFFFFF },
49
+ 0x8F: { size: 8, type: BaseType.UINT64, invalid: 0xFFFFFFFFFFFFFFFF },
50
+ 0x90: { size: 8, type: BaseType.UINT64Z, invalid: 0x0000000000000000 },
51
+ };
52
+
53
+ const NumericFieldTypes = [
54
+ "sint8",
55
+ "uint8",
56
+ "sint16",
57
+ "uint16",
58
+ "sint32",
59
+ "uint32",
60
+ "float32",
61
+ "float64",
62
+ "uint8z",
63
+ "uint16z",
64
+ "uint32z",
65
+ "byte",
66
+ "sint64",
67
+ "uint64",
68
+ "uint64z"
69
+ ];
70
+
71
+ const FieldTypeToBaseType = {
72
+ "sint8": BaseType.SINT8,
73
+ "uint8": BaseType.UINT8,
74
+ "sint16": BaseType.SINT16,
75
+ "uint16": BaseType.UINT16,
76
+ "sint32": BaseType.SINT32,
77
+ "uint32": BaseType.UINT32,
78
+ "string": BaseType.STRING,
79
+ "float32": BaseType.FLOAT32,
80
+ "float64": BaseType.FLOAT64,
81
+ "uint8z": BaseType.UINT8Z,
82
+ "uint16z": BaseType.UINT16Z,
83
+ "uint32z": BaseType.UINT32Z,
84
+ "byte": BaseType.BYTE,
85
+ "sint64": BaseType.SINT64,
86
+ "uint64": BaseType.UINT64,
87
+ "uint64z": BaseType.UINT64Z
88
+ };
89
+
90
+ export default {
91
+ BaseType,
92
+ BaseTypeDefinitions,
93
+ NumericFieldTypes,
94
+ FieldTypeToBaseType
95
+ };
@@ -0,0 +1,11 @@
1
+ //= require accumulator
2
+ //= require bit-stream
3
+ //= require crc-calculator
4
+ //= require decorder
5
+ //= require fit
6
+ //= require index
7
+ //= require profile
8
+ //= require stream
9
+ //= require utils-hr-mesg
10
+ //= require utils-internal
11
+ //= require utils
@@ -0,0 +1,18 @@
1
+ /////////////////////////////////////////////////////////////////////////////////////////////
2
+ // Copyright 2022 Garmin International, Inc.
3
+ // Licensed under the Flexible and Interoperable Data Transfer (FIT) Protocol License; you
4
+ // may not use this file except in compliance with the Flexible and Interoperable Data
5
+ // Transfer (FIT) Protocol License.
6
+ /////////////////////////////////////////////////////////////////////////////////////////////
7
+ // ****WARNING**** This file is auto-generated! Do NOT edit this file.
8
+ // Profile Version = 21.94Release
9
+ // Tag = production/akw/21.94.00-0-g0f668193
10
+ /////////////////////////////////////////////////////////////////////////////////////////////
11
+
12
+
13
+ import Decoder from "./decoder.js";
14
+ import Profile from "./profile.js";
15
+ import Stream from "./stream.js";
16
+ import Utils from "./utils.js";
17
+
18
+ export { Decoder, Stream, Profile, Utils };