WorkoutStepDurationType
public enum WorkoutStepDurationType : UInt8
extension WorkoutStepDurationType: FitFieldCodeable
Workout Step Duration Type
-
Time
Declaration
Swift
case time = 0
-
Distance
Declaration
Swift
case distance = 1
-
Heart Rate Less Then
Declaration
Swift
case heartRateLessThen = 2
-
Heart Rate Greater Then
Declaration
Swift
case heatRateGreaterThen = 3
-
Calories
Declaration
Swift
case calories = 4
-
Open
Declaration
Swift
case open = 5
-
Repeat Until Steps Complete
Declaration
Swift
case repeatUntilStepsComplete = 6
-
Repeat Until Time
Declaration
Swift
case repeatUntilTime = 7
-
Repeat Until Distance
Declaration
Swift
case repeatUntilDistance = 8
-
Repeat Until Calories
Declaration
Swift
case repeatUntilCalories = 9
-
Repeat Until Heart Rate Less Then
Declaration
Swift
case repeatUntilHeartRateLessThen = 10
-
Repeat Until Heart Rate Greater Then
Declaration
Swift
case repeatUntilHeartRateGreaterThen = 11
-
Repeat Until Power Less Then
Declaration
Swift
case repeatUntilPowerLessThen = 12
-
Repeat Until Power Greater Then
Declaration
Swift
case repeatUntilPowerGreaterThen = 13
-
Power Less Then
Declaration
Swift
case powerLessThen = 14
-
Power Greater Then
Declaration
Swift
case powerGreaterThen = 15
-
Training Peaks TSS
Declaration
Swift
case trainingPeaksTss = 16
-
Repeat Until Power Last Lap Less Then
Declaration
Swift
case repeatUntilPowerLastLapLessThen = 17
-
Repeat Until Max Power Last Lap Less Then
Declaration
Swift
case repeatUntilMaxPowerLastLapLessThen = 18
-
Power 3 Second Less Then
Declaration
Swift
case power3SecondLessThen = 19
-
Power 10 Second Less Then
Declaration
Swift
case power10SecondLessThen = 20
-
Power 30 Second Less Then
Declaration
Swift
case power30SecondLessThen = 21
-
Power 3 Second Greater Then
Declaration
Swift
case power3SecondGreaterThen = 22
-
Power 10 Second Greater Then
Declaration
Swift
case power10SecondGreaterThen = 23
-
Power 30 Second Greater Then
Declaration
Swift
case power30SecondGreaterThen = 24
-
Power Lap Less Then
Declaration
Swift
case powerLapLessThen = 25
-
Power Lap Greater Then
Declaration
Swift
case powerLapGreaterThen = 26
-
Repeat Until Training Peaks TSS
Declaration
Swift
case repeatUntilTrainingPeaksTss = 27
-
Repetition Time
Declaration
Swift
case repetitionTime = 28
-
Reps
Declaration
Swift
case repetitions = 29
-
Invalid
Declaration
Swift
case invalid = 255
-
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