pub struct OcrResponse {
pub raw: u32,
}Expand description
OCR register (R3/CMD58 response)
Fields§
§raw: u32Implementations§
Source§impl OcrResponse
impl OcrResponse
pub fn from_raw(raw: u32) -> Self
Sourcepub fn card_powered_up(&self) -> bool
pub fn card_powered_up(&self) -> bool
Card power up status — true if card has completed power-up
Sourcepub fn voltage_window(&self) -> u32
pub fn voltage_window(&self) -> u32
Supported voltage range (bits 23:0)
Sourcepub fn supports_2v7_to_3v6(&self) -> bool
pub fn supports_2v7_to_3v6(&self) -> bool
Supports 2.7–3.6V (typical operating range)
Trait Implementations§
Source§impl Clone for OcrResponse
impl Clone for OcrResponse
Source§fn clone(&self) -> OcrResponse
fn clone(&self) -> OcrResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OcrResponse
impl Debug for OcrResponse
impl Copy for OcrResponse
Auto Trait Implementations§
impl Freeze for OcrResponse
impl RefUnwindSafe for OcrResponse
impl Send for OcrResponse
impl Sync for OcrResponse
impl Unpin for OcrResponse
impl UnsafeUnpin for OcrResponse
impl UnwindSafe for OcrResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more