SourceType

public enum SourceType : UInt8
extension SourceType: FitFieldCodeable

FIT Source Type

  • ant

    ANT Public

    Declaration

    Swift

    case ant = 0
  • ANT+

    Declaration

    Swift

    case antPlus = 1
  • Bluetooth

    Declaration

    Swift

    case bluetooth = 2
  • ble

    BLE

    Declaration

    Swift

    case ble = 3
  • WIFI

    Declaration

    Swift

    case wifi = 4
  • Local

    Declaration

    Swift

    case local = 5
  • 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

  • String Value

    Declaration

    Swift

    var stringValue: String { get }