Function schedule_pulse(uint32_t, uint32_t, uint64_t, uint32_t, uint32_t, bool)

Function Documentation

void schedule_pulse(uint32_t pin_idx, uint32_t pulse_duration_us, uint64_t timestamp_us, uint32_t N, uint32_t interval_us, bool relative = true)

Schedule a pulse event with explicit parameters.

Creates and schedules a pulse event with the specified parameters. This function provides direct control over all pulse parameters.

Parameters:
  • pin_idx – IOPORT index of the pin to pulse (see pin_map_t in pins.cpp for pin names)

  • pulse_duration_us – Duration of the pulse in microseconds

  • timestamp_us – Timestamp for the pulse in microseconds

  • N – Number of pulses to generate

  • interval_us – Interval between pulses in microseconds

  • relative – If true, timestamp is relative to current time