SetType
public enum SetType : UInt8
extension SetType: FitFieldCodeable
Set Type
-
Rest
Declaration
Swift
case rest = 0 -
Active
Declaration
Swift
case active = 1 -
Invalid
Declaration
Swift
case invalid = 255
-
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