Pico-Arduino
Public Member Functions | Protected Attributes | List of all members
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

PIOManager pin (int pin)
 
PIOManager program (pio_program_t program)
 
PIOManager config (pio_sm_config config)
 
PIOManager pio (PIO pio)
 
PIOManagerbegin ()
 
PIOManagersetup (uint64_t hz, int pin, pio_program_t program, pio_sm_config config, PIO pio=pio0)
 
PIOManager setFrequency (uint64_t hz)
 
PIOManagerstart ()
 
PIOManagerstop ()
 

Protected Attributes

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

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: