FitFileFlag
public struct FitFileFlag : OptionSet
extension FitFileFlag: FitFieldCodeable
FIT File Flags
-
Declaration
Swift
public let rawValue: UInt8
-
Declaration
Swift
public init(rawValue: UInt8)
-
Read
Declaration
Swift
public static let read: FitFileFlag
-
Write
Declaration
Swift
public static let write: FitFileFlag
-
Erase
Declaration
Swift
public static let erase: FitFileFlag
-
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