Type Alias d1_pac::spinlock::spinlock_lock::TAKEN_W

source ·
pub type TAKEN_W<'a, const O: u8> = BitWriter<'a, u32, SPINLOCK_LOCK_SPEC, TAKEN_A, O>;
Expand description

Field taken writer - Lock State

Aliased Type§

struct TAKEN_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> TAKEN_W<'a, O>

source

pub fn free(self) -> &'a mut W

Read 0x0: The lock was previously Not Taken (free). The requester is granted the lock.

Write 0x0: Set the lock to Not Taken (free).

source

pub fn taken(self) -> &'a mut W

Read 0x1: The lock was previously Taken. The requester is not granted the lock and must retry.

Write 0x1: No update to the lock value.