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
HapticFrameinstance.Declaration
Swift
public init( onMs: UInt32, offMs: UInt32, maxAmplitudePercent: UInt32, repeatNMinusOne: UInt32, pattern: HapticPatternType )Parameters
onMs16 bit val length of time on playing pattern in msec
val16 bit val length of off time in msec.
maxAmplitudePercent8 bit 0-100%
repeatNMinusOne8 bit Tell to play symbol N times before next one
View on GitHub
HapticFrame Structure Reference