MessageIndex

public struct MessageIndex
extension MessageIndex: Equatable
extension MessageIndex: FitFieldCodeable

Message Index

  • Index is Selected

    Declaration

    Swift

    private(set) public var isSelected: Bool { get }
  • Index

    Declaration

    Swift

    private(set) public var index: UInt16 { get }
  • Undocumented

    Declaration

    Swift

    public init(isSelected: Bool = false, value: UInt16)

FitFieldCodeable

  • Encode Into Data

    Declaration

    Swift

    public func encode(base: BaseTypeData) -> Data?

    Parameters

    base

    BaseTypeData

  • Decode FIT Field

    Declaration

    Swift

    public static func decode<T>(type: T.Type, data: Data, base: BaseTypeData, arch: Endian) -> T?

    Parameters

    type

    Type of Field

    data

    Data to Decode

    base

    BaseTypeData

    arch

    Endian

    Return Value

    Decoded Value