#[repr(C)]pub struct pn53x_data {Show 22 fields
pub type_: pn53x_type,
pub firmware_text: [c_char; 22],
pub power_mode: pn53x_power_mode,
pub operating_mode: pn53x_operating_mode,
pub current_target: *mut nfc_target,
pub sam_mode: pn532_sam_mode,
pub io: *const pn53x_io,
pub last_status_byte: u8,
pub ui8TxBits: u8,
pub ui8Parameters: u8,
pub last_command: u8,
pub timer_correction: i16,
pub timer_prescaler: u16,
pub wb_data: [u8; 62],
pub wb_mask: [u8; 62],
pub wb_trigged: bool,
pub timeout_command: c_int,
pub timeout_atr: c_int,
pub timeout_communication: c_int,
pub supported_modulation_as_initiator: *mut nfc_modulation_type,
pub supported_modulation_as_target: *mut nfc_modulation_type,
pub progressive_field: bool,
}Expand description
@internal @struct pn53x_data @brief PN53x data structure
Fields§
§type_: pn53x_typeChip type (PN531, PN532 or PN533)
firmware_text: [c_char; 22]Chip firmware text
power_mode: pn53x_power_modeCurrent power mode
operating_mode: pn53x_operating_modeCurrent operating mode
current_target: *mut nfc_targetCurrent emulated target
sam_mode: pn532_sam_modeCurrent sam mode (only applicable for PN532)
io: *const pn53x_ioPN53x I/O functions stored in struct
last_status_byte: u8Last status byte returned by PN53x
ui8TxBits: u8Register cache for REG_CIU_BIT_FRAMING, SYMBOL_TX_LAST_BITS: The last TX bits setting, we need to reset this if it does not apply anymore
ui8Parameters: u8Register cache for SetParameters function.
last_command: u8Last sent command
timer_correction: i16Interframe timer correction
timer_prescaler: u16Timer prescaler
wb_data: [u8; 62]WriteBack cache
wb_mask: [u8; 62]§wb_trigged: bool§timeout_command: c_intCommand timeout
timeout_atr: c_intATR timeout
timeout_communication: c_intCommunication timeout
supported_modulation_as_initiator: *mut nfc_modulation_typeSupported modulation type
supported_modulation_as_target: *mut nfc_modulation_type§progressive_field: boolTrait Implementations§
source§impl Clone for pn53x_data
impl Clone for pn53x_data
source§fn clone(&self) -> pn53x_data
fn clone(&self) -> pn53x_data
Returns a copy of the value. Read more
1.6.0 · 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 pn53x_data
impl Debug for pn53x_data
impl Copy for pn53x_data
Auto Trait Implementations§
impl Freeze for pn53x_data
impl RefUnwindSafe for pn53x_data
impl !Send for pn53x_data
impl !Sync for pn53x_data
impl Unpin for pn53x_data
impl UnwindSafe for pn53x_data
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)