init(_:mode:period:)

Initializes a counter by specifying its period in microsecond.

Counter.swift:50
init(_ idName: Id, mode: Mode = .period, period: UInt64 = 1_000_000)

Parameters

idName

REQUIRED The id of the counter. See Id in MadBoards library for reference.

mode

OPTIONAL Whether the counter is periodic or one shot, .period by default.

period

OPTIONAL The period of the counter in microsecond.