Pico-Arduino
Public Member Functions | Protected Attributes | List of all members
pico_arduino::PIOManager Class Reference

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

PIOManagerbegin ()
 
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)
 
PIOManagersetup (uint64_t hz, int pin, pio_program_t program, pio_sm_config config, PIO pio=pio0)
 
PIOManagerstart ()
 
PIOManagerstop ()
 

Protected Attributes

pio_sm_config config
 
int pin
 
PIO pio = pio0
 
pio_program_t program
 
uint state_machine
 

Detailed Description

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.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: