nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ ppi_seq_start()

int ppi_seq_start ( struct ppi_seq * seq,
size_t period,
size_t batch_cnt,
int repeat )

#include <include/drivers/ppi_seq/ppi_seq.h>

Start the sequencer.

When started, sequence will be repeated requested number of timers and callback will be called after batch_cnt periods. If sequence consist of a single operation (for example, a SPI transfer) then there will be callback after batch_cnt transfers and sequencer will stop after repeat callbacks. Sequence can be forced to stop by ppi_seq_stop.

Sequence is started as fast as possible. In case of RTC it can be delayed by a single low frequency tick (approx. 30 us).

Parameters
seqSequencer instance.
periodDistance (in microseconds) between triggering the main task.
batch_cntNumber of periods after which the callback is called.
repeatNumber of callbacks after which the sequencer is stopped. UINT32_MAX for continuous operation.