EventType

public enum EventType : UInt8
extension EventType: FitFieldCodeable

Event Types

  • Start

    Declaration

    Swift

    case start = 0
  • Stop

    Declaration

    Swift

    case stop = 1
  • Consecutive

    Note

    Deprecated

    Declaration

    Swift

    case consecutiveDeprecated = 2
  • Marker

    Declaration

    Swift

    case marker = 3
  • Stop All

    Declaration

    Swift

    case stopAll = 4
  • Begin

    Note

    Deprecated

    Declaration

    Swift

    case beginDeprecated = 5
  • End

    Note

    Deprecated

    Declaration

    Swift

    case endDeprecated = 6
  • End All

    Note

    Deprecated

    Declaration

    Swift

    case endAllDeprecated = 7
  • Stop Disable

    Declaration

    Swift

    case stopDisable = 8
  • Stop Disable All

    Declaration

    Swift

    case stopDisableAll = 9
  • 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