LeftRightBalance
public struct LeftRightBalance
extension LeftRightBalance: FitFieldCodeable
Left Right Balance
-
Percent of Contribution
Declaration
Swift
public let percentContribution: UInt8
-
Corresponds to Right
Declaration
Swift
public let right: Bool
-
Undocumented
Declaration
Swift
public init(percentContribution: UInt8, right: Bool)
-
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