BodyLocation

public enum BodyLocation : UInt8
extension BodyLocation: FitFieldCodeable

Body Location

  • Left Leg

    Declaration

    Swift

    case leftLeg = 0
  • Left Calf

    Declaration

    Swift

    case leftCalf = 1
  • Left Shin

    Declaration

    Swift

    case leftShin = 2
  • Left Hamstring

    Declaration

    Swift

    case leftHamstring = 3
  • Left Quad

    Declaration

    Swift

    case leftQuad = 4
  • Left Glute

    Declaration

    Swift

    case leftGlute = 5
  • Right Leg

    Declaration

    Swift

    case rightLeg = 6
  • Right Calf

    Declaration

    Swift

    case rightCalf = 7
  • Right Shin

    Declaration

    Swift

    case rightShin = 8
  • Right Hamstring

    Declaration

    Swift

    case rightHamstring = 9
  • Right Quad

    Declaration

    Swift

    case rightQuad = 10
  • Right Glute

    Declaration

    Swift

    case rightGlute = 11
  • Torso Back

    Declaration

    Swift

    case torsoBack = 12
  • Left Lower Back

    Declaration

    Swift

    case leftLowerBack = 13
  • Left Upper Back

    Declaration

    Swift

    case leftUpperBack = 14
  • Right Lower Back

    Declaration

    Swift

    case rightLowerBack = 15
  • Right Upper Back

    Declaration

    Swift

    case rightUpperBack = 16
  • Torso Front

    Declaration

    Swift

    case torsoFront = 17
  • Left Abdomen

    Declaration

    Swift

    case leftAbdomen = 18
  • Left Chest

    Declaration

    Swift

    case leftChest = 19
  • Right Abdomen

    Declaration

    Swift

    case rightAbdomen = 20
  • Right Chest

    Declaration

    Swift

    case rightChest = 21
  • Left Arm

    Declaration

    Swift

    case leftArm = 22
  • Left Shoulder

    Declaration

    Swift

    case leftShoulder = 23
  • Left Bicep

    Declaration

    Swift

    case leftBicep = 24
  • Left Tricep

    Declaration

    Swift

    case leftTricep = 25
  • Left anterior forearm

    Declaration

    Swift

    case leftAnteriorForearm = 26
  • Left posterior forearm

    Declaration

    Swift

    case leftPosteriorForearm = 27
  • Right Arm

    Declaration

    Swift

    case rightArm = 28
  • Right Shoulder

    Declaration

    Swift

    case rightShoulder = 29
  • Right Bicep

    Declaration

    Swift

    case rightBicep = 30
  • Right Tricep

    Declaration

    Swift

    case rightTricep = 31
  • Right anterior forearm

    Declaration

    Swift

    case rightAnteriorForearm = 32
  • Right posterior forearm

    Declaration

    Swift

    case rightPosteriorForearm = 33
  • Neck

    Declaration

    Swift

    case neck = 34
  • Throat

    Declaration

    Swift

    case throat = 35
  • Waist Mid Back

    Declaration

    Swift

    case waistMidBack = 36
  • Waist Front

    Declaration

    Swift

    case waistFront = 37
  • Waist Left

    Declaration

    Swift

    case waistLeft = 38
  • Waist Right

    Declaration

    Swift

    case waistRight = 39
  • 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