pamoja for TypeScript - v0.2.0
    Preparing search index...

    Class DutyCycle

    The silence a radio owes after its transmissions under a duty-cycle limit.

    Index
    • get earliestUs(): number | null

      The earliest time the next transmission may start, in microseconds on the caller's clock, or null when the limit forbids transmitting.

      Returns number | null

    • Whether a transmission may start at a time in microseconds on the caller's clock.

      Parameters

      • nowUs: number

      Returns boolean

    • Records a transmission and the silence it owes, returning its airtime in microseconds.

      Parameters

      • startedUs: number
      • link: lora.LoraLink
      • payloadLength: number

      Returns number

    • How long the radio must still stay silent, in microseconds, or null when the limit forbids transmitting.

      Parameters

      • nowUs: number

      Returns number | null