nfc1_sys

Struct pn53x_data

source
#[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_type

Chip type (PN531, PN532 or PN533)

§firmware_text: [c_char; 22]

Chip firmware text

§power_mode: pn53x_power_mode

Current power mode

§operating_mode: pn53x_operating_mode

Current operating mode

§current_target: *mut nfc_target

Current emulated target

§sam_mode: pn532_sam_mode

Current sam mode (only applicable for PN532)

§io: *const pn53x_io

PN53x I/O functions stored in struct

§last_status_byte: u8

Last status byte returned by PN53x

§ui8TxBits: u8

Register 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: u8

Register cache for SetParameters function.

§last_command: u8

Last sent command

§timer_correction: i16

Interframe timer correction

§timer_prescaler: u16

Timer prescaler

§wb_data: [u8; 62]

WriteBack cache

§wb_mask: [u8; 62]§wb_trigged: bool§timeout_command: c_int

Command timeout

§timeout_atr: c_int

ATR timeout

§timeout_communication: c_int

Communication timeout

§supported_modulation_as_initiator: *mut nfc_modulation_type

Supported modulation type

§supported_modulation_as_target: *mut nfc_modulation_type§progressive_field: bool

Trait Implementations§

source§

impl Clone for pn53x_data

source§

fn clone(&self) -> pn53x_data

Returns a copy of the value. Read more
1.6.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for pn53x_data

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for pn53x_data

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.