LapTrigger
public enum LapTrigger : UInt8
extension LapTrigger: FitFieldCodeable
FIT Lap Trigger Type
-
Manual
Declaration
Swift
case manual = 0
-
Time
Declaration
Swift
case time = 1
-
Distance
Declaration
Swift
case distance = 2
-
Position Start
Declaration
Swift
case positionStart = 3
-
Position Lap
Declaration
Swift
case positionLap = 4
-
Position Waypoint
Declaration
Swift
case positionWaypoint = 5
-
Position Marked
Declaration
Swift
case positionMarked = 6
-
Session End
Declaration
Swift
case sessionEnd = 7
-
Fitness Eqiupment
Declaration
Swift
case fitnessEquipment = 8
-
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