CoursePoint

public enum CoursePoint : UInt8
extension CoursePoint: FitFieldCodeable

Course Point Type

  • Generic

    Declaration

    Swift

    case generic = 0
  • Summit

    Declaration

    Swift

    case summit = 1
  • Valley

    Declaration

    Swift

    case valley = 2
  • Water

    Declaration

    Swift

    case water = 3
  • Food

    Declaration

    Swift

    case food = 4
  • Danger

    Declaration

    Swift

    case danger = 5
  • Left

    Declaration

    Swift

    case left = 6
  • Right

    Declaration

    Swift

    case right = 7
  • Straight

    Declaration

    Swift

    case straight = 8
  • First Aid

    Declaration

    Swift

    case firstAid = 9
  • Fourth Category

    Declaration

    Swift

    case fourthCategory = 10
  • Third Category

    Declaration

    Swift

    case thirdCategory = 11
  • Second Category

    Declaration

    Swift

    case secondCategory = 12
  • First Category

    Declaration

    Swift

    case firstCategory = 13
  • Hors Category (HC)

    Declaration

    Swift

    case horsCategory = 14
  • Sprint

    Declaration

    Swift

    case sprint = 15
  • / Left Fork

    Declaration

    Swift

    case leftFork = 16
  • Right Fork

    Declaration

    Swift

    case rightFork = 17
  • Middle Fork

    Declaration

    Swift

    case middleFork = 18
  • Slight Left

    Declaration

    Swift

    case slightLeft = 19
  • Sharp Left

    Declaration

    Swift

    case sharpLeft = 20
  • Slight Right

    Declaration

    Swift

    case slightRight = 21
  • Sharp Right

    Declaration

    Swift

    case sharpRight = 22
  • U Turn

    Declaration

    Swift

    case uTurn = 23
  • Segment Start

    Declaration

    Swift

    case segmentStart = 24
  • Segment End

    Declaration

    Swift

    case segmentEnd = 25
  • 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