modm API documentation
modm::SpiLock< Derived > Class Template Reference

#include <modm/architecture/interface/spi_lock.hpp>

Static Public Member Functions

static uint8_t acquire (void *ctx, Spi::ConfigurationHandler handler)
 
static uint8_t release (void *ctx)
 

Detailed Description

template<typename Derived>
class modm::SpiLock< Derived >

Helper class to implement the synchronization mechanism of modm::SpiMaster in SPI device drivers.

Inherit from this class publicly and pass the derived class as the template argument, as in class SpiMaster1 : public modm::SpiLock<SpiMaster1>.

Template Parameters
DerivedSPI master derived class

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