modm API documentation
modm::platform::multicore::Mailbox Struct Reference

#include <modm/platform/core/multicore.hpp>

Static Public Member Functions

static bool canRead ()
 
static bool canWrite ()
 
static bool push (uint32_t msg)
 
static bool pop (uint32_t &msg)
 
static void pushBlocked (uint32_t msg)
 
static uint32_t popBlocked ()
 
static void drain ()
 

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.


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