HapticFrame

public struct HapticFrame

Configuration for haptic frame.

  • 16 bit val length of time on playing pattern in msec

    Declaration

    Swift

    public let onMs: UInt32
  • 16 bit val length of off time in msec.

    Declaration

    Swift

    public let offMs: UInt32
  • 8 bit 0-100%

    Declaration

    Swift

    public let maxAmplitudePercent: UInt32
  • 8 bit Play symbol N times before next one

    Declaration

    Swift

    public let repeatNMinusOne: UInt32
  • Pattern to play, total 8 patterns are defined.

    Declaration

    Swift

    public let pattern: HapticPatternType
  • Creates a HapticFrame instance.

    Declaration

    Swift

    public init(
      onMs: UInt32,
      offMs: UInt32,
      maxAmplitudePercent: UInt32,
      repeatNMinusOne: UInt32,
      pattern: HapticPatternType
    )

    Parameters

    onMs

    16 bit val length of time on playing pattern in msec

    val

    16 bit val length of off time in msec.

    maxAmplitudePercent

    8 bit 0-100%

    repeatNMinusOne

    8 bit Tell to play symbol N times before next one