BacklightMode

public enum BacklightMode : UInt8
extension BacklightMode: FitFieldCodeable

FIT Backlight Mode

  • off

    Off

    Declaration

    Swift

    case off = 0
  • Manual

    Declaration

    Swift

    case manual = 1
  • Key and Messages

    Declaration

    Swift

    case keyMessages = 2
  • Auto Brightness

    Declaration

    Swift

    case autoBrightness = 3
  • Smart Notifications

    Declaration

    Swift

    case smartNotifications = 4
  • Key and Messages Night

    Declaration

    Swift

    case keyMessagesNight = 5
  • Key and Messages and Smart Notifications

    Declaration

    Swift

    case keyMessagesSmartNotifications = 6
  • Invalid

    Declaration

    Swift

    case invalid = 255

FitFieldCodeable

  • 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