EMMutableSoftDcvOathSettings
Objective-C
@protocol EMMutableSoftDcvOathSettings <EMSoftDcvOathSettings>
Swift
protocol EMMutableSoftDcvOathSettings : EMSoftDcvOathSettings
Protocol for changeable DCV settings.
Since
4.1-
The DCV length. Allowed range is 3-4 digits.
@exception NSInvalidArgumentException When dcvLength is not in allowed range.
Declaration
Objective-C
@property (nonatomic) NSInteger dcvLength;Swift
var dcvLength: Int { get set } -
The hash algorithm for DCV. See EMOathHashAlgorithm.
@exception NSInvalidArgumentException When hash algorithm is not supported.
Declaration
Objective-C
@property (nonatomic) EMOathHashAlgorithm dcvHashAlgorithm;Swift
var dcvHashAlgorithm: EMOathHashAlgorithm { get set } -
The T0 value for DCV. Value to start counting the time steps. Default: 0
@exception NSInvalidArgumentException When dcvStartTime is negative.
Declaration
Objective-C
@property (nonatomic) int64_t dcvStartTime;Swift
var dcvStartTime: Int64 { get set } -
The time step size for DCV. Default: 20
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger dcvTimestepSize;Swift
var dcvTimestepSize: Int { get } -
The time step type for DCV. Default: Minutes.
Declaration
Objective-C
@property (nonatomic, readonly) EMOathTimestepType dcvTimestepType;Swift
var dcvTimestepType: EMOathTimestepType { get } -
Sets the DCV time settings.
@exception NSInvalidArgumentException If one of the following conditions is true:
-
timestepTypeis not equal toEMOathTimestepTypeNoneandtimestepSizeis less than or equal to zero. -
timestepTypeis not equal toEMOathTimestepTypeNoneandstartTimeis less than zero. -
timestepTypeis equal toEMOathTimestepTypeSecondsandtimestepSizeis greater than 59. -
timestepTypeis equal toEMOathTimestepTypeMinutesandtimestepSizeis greater than 59. -
timestepTypeis equal toEMOathTimestepTypeHoursandtimestepSizeis greater than 48.
Declaration
Objective-C
- (void)setDcvTimeSettingsWithTimestepSize:(NSInteger)timestepSize timestepType:(EMOathTimestepType)timestepType;Swift
func setDcvTimeWithTimestepSize(_ timestepSize: Int, timestepType: EMOathTimestepType)Parameters
timestepTypeThe time step type, set to
EMOathTimestepTypeNoneto not use it.timestepSizeThe time step size, it is ignored if
timestepTypeisEMOathTimestepTypeNone. -
EMMutableSoftDcvOathSettings Protocol Reference