Skip to main content

HramAtomicAccess

Trait HramAtomicAccess 

Source
pub trait HramAtomicAccess: HramAccess {
    // Required methods
    fn get(&self) -> Self::Value;
    fn set(&self, value: Self::Value);
}
Expand description

Read and write a one-byte HRAM cell without a CriticalSection.

Implemented by the handles for HramAtomicCell declarations. A one-byte ldh is a single instruction, so no token is needed to make it indivisible.

Required Methods§

Source

fn get(&self) -> Self::Value

Read the cell.

Source

fn set(&self, value: Self::Value)

Write the cell.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§