Embedded Artistry Framework
Embedded Systems C++ Framework
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ThumbInterruptLock Class Reference

#include <thumb_interrupt_lock.hpp>

Public Member Functions

 ThumbInterruptLock () noexcept
 
 ~ThumbInterruptLock ()=default
 
void lock () noexcept
 
void unlock () noexcept
 

Private Attributes

volatile uint32_t flags_
 

Static Private Attributes

static constexpr uint32_t mask = (1 << 0)
 

Constructor & Destructor Documentation

◆ ThumbInterruptLock()

ThumbInterruptLock::ThumbInterruptLock ( )
inlinenoexcept

◆ ~ThumbInterruptLock()

ThumbInterruptLock::~ThumbInterruptLock ( )
default

Member Function Documentation

◆ lock()

void ThumbInterruptLock::lock ( )
inlinenoexcept

References flags_.

◆ unlock()

void ThumbInterruptLock::unlock ( )
inlinenoexcept

References flags_, and mask.

Member Data Documentation

◆ flags_

volatile uint32_t ThumbInterruptLock::flags_
private

Referenced by lock(), and unlock().

◆ mask

constexpr uint32_t ThumbInterruptLock::mask = (1 << 0)
staticprivate

Referenced by unlock().


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