BaseUnitType
public enum BaseUnitType : UInt16
extension BaseUnitType: FitFieldCodeable
FIT Base Unit Type
-
Other
Declaration
Swift
case other = 0 -
Kilogram
Declaration
Swift
case kilogram = 1 -
Pound
Declaration
Swift
case pound = 2 -
Invalid
Declaration
Swift
case invalid = 65535
-
Encode Into Data
Declaration
Swift
public func encode(base: BaseTypeData) -> Data?Parameters
baseBaseTypeData
-
Decode FIT Field
Declaration
Swift
public static func decode<T>(type: T.Type, data: Data, base: BaseTypeData, arch: Endian) -> T?Parameters
typeType of Field
dataData to Decode
baseBaseTypeData
archEndian
Return Value
Decoded Value