Pico-Arduino
Public Member Functions | List of all members
pico_arduino::MuliticoreFifo Class Reference

The RP2040 contains two FIFOs for passing data, messages or ordered events between the two cores. Each FIFO is 32 bits wide, and 8 entries deep. One of the FIFOs can only be written by core 0, and read by core 1. The other can only be written by core 1, and read by core 0. More...

#include <PicoMulticoreFifo.h>

Public Member Functions

 MuliticoreFifo ()
 Construct a new Muliticore Fifo object.
 
void clear ()
 Removes all entries.
 
bool isEmpty ()
 Checks if the fifo is empty.
 
bool isFull ()
 Checks if the fifo is full.
 
bool pop (uint32_t &data, bool is_blocking=true)
 Retrieves the next element (from the front) and removes it from the collection.
 
bool push (uint32_t data, bool is_blocking=true)
 Adds an elelment to the end.
 

Detailed Description

The RP2040 contains two FIFOs for passing data, messages or ordered events between the two cores. Each FIFO is 32 bits wide, and 8 entries deep. One of the FIFOs can only be written by core 0, and read by core 1. The other can only be written by core 1, and read by core 0.

Author
Phil Schatzmann

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