WorkoutStepTargetType
public enum WorkoutStepTargetType : UInt8
extension WorkoutStepTargetType: FitFieldCodeable
Workout Step Target Type
-
Speed
Declaration
Swift
case speed = 0 -
Heart Rate
Declaration
Swift
case heartRate = 1 -
Open
Declaration
Swift
case open = 2 -
Cadence
Declaration
Swift
case cadence = 3 -
Power
Declaration
Swift
case power = 4 -
Grade
Declaration
Swift
case grade = 5 -
Resistance
Declaration
Swift
case resistance = 6 -
Power 3 Seconds
Declaration
Swift
case powerThreeSeconds = 7 -
Power 10 Seconds
Declaration
Swift
case powerTenSeconds = 8 -
Power 30 Seconds
Declaration
Swift
case powerThirtySeconds = 9 -
Power Lap
Declaration
Swift
case powerLap = 10 -
Swim Stroke
Declaration
Swift
case swimStroke = 11 -
Speed Lap
Declaration
Swift
case speedLap = 12 -
Heart Rate Lap
Declaration
Swift
case heartRateLap = 13 -
Invalid
Declaration
Swift
case invalid = 255
-
Encode Into Data
Declaration
Swift
public func encode(base: BaseTypeData) -> Data?Parameters
baseBaseTypeData
-
Decode FIT Field
Declaration
Swift
public static func decode<T>(type: T.Type, data: Data, base: BaseTypeData, arch: Endian) -> T?Parameters
typeType of Field
dataData to Decode
baseBaseTypeData
archEndian
Return Value
Decoded Value