TimeMode

public enum TimeMode : UInt8
extension TimeMode: FitFieldCodeable

FIT Time Mode

  • 12 Hour Time

    Declaration

    Swift

    case hour12 = 0
  • 24 Hour Time

    Declaration

    Swift

    case hour24 = 1
  • Military

    Declaration

    Swift

    case military = 2
  • 12 Hour Time with Seconds

    Declaration

    Swift

    case hour12Seconds = 3
  • 24 Hour Time with Seconds

    Declaration

    Swift

    case hour24Secons = 4
  • utc

    UTC

    Declaration

    Swift

    case utc = 5
  • Invalid

    Declaration

    Swift

    case invalid = 255

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