Pico-Arduino
|
The PIO subsystem on RP2040 allows you to write small, simple programs for what are called PIO state machines, of which RP2040 has eight split across two PIO instances. A state machine is responsible for setting and reading one or more GPIOs, buffering data to or from the processor (or RP2040’s ultra-fast DMA subsystem), and notifying the processor, via IRQ or polling, when data or attention is needed. More...
#include <PicoPIOManager.h>
Public Member Functions | |
PIOManager & | begin () |
PIOManager | config (pio_sm_config config) |
PIOManager | pin (int pin) |
PIOManager | pio (PIO pio) |
PIOManager | program (pio_program_t program) |
PIOManager | setFrequency (uint64_t hz) |
PIOManager & | setup (uint64_t hz, int pin, pio_program_t program, pio_sm_config config, PIO pio=pio0) |
PIOManager & | start () |
PIOManager & | stop () |
Protected Attributes | |
pio_sm_config | config |
int | pin |
PIO | pio = pio0 |
pio_program_t | program |
uint | state_machine |
The PIO subsystem on RP2040 allows you to write small, simple programs for what are called PIO state machines, of which RP2040 has eight split across two PIO instances. A state machine is responsible for setting and reading one or more GPIOs, buffering data to or from the processor (or RP2040’s ultra-fast DMA subsystem), and notifying the processor, via IRQ or polling, when data or attention is needed.