Struct nfc1_sys::nfc_device
source · #[repr(C)]pub struct nfc_device {Show 13 fields
pub context: *const nfc_context,
pub driver: *const nfc_driver,
pub driver_data: *mut c_void,
pub chip_data: *mut c_void,
pub name: [c_char; 256],
pub connstring: nfc_connstring,
pub bCrc: bool,
pub bPar: bool,
pub bEasyFraming: bool,
pub bInfiniteSelect: bool,
pub bAutoIso14443_4: bool,
pub btSupportByte: u8,
pub last_error: c_int,
}Expand description
@struct nfc_device @brief NFC device information
Fields§
§context: *const nfc_context§driver: *const nfc_driver§driver_data: *mut c_void§chip_data: *mut c_void§name: [c_char; 256]Device name string, including device wrapper firmware
connstring: nfc_connstringDevice connection string
bCrc: boolIs the CRC automaticly added, checked and removed from the frames
bPar: boolDoes the chip handle parity bits, all parities are handled as data
bEasyFraming: boolShould the chip handle frames encapsulation and chaining
bInfiniteSelect: boolShould the chip try forever on select?
bAutoIso14443_4: boolShould the chip switch automatically activate ISO14443-4 when selecting tags supporting it?
btSupportByte: u8Supported modulation encoded in a byte
last_error: c_intLast reported error
Trait Implementations§
source§impl Clone for nfc_device
impl Clone for nfc_device
source§fn clone(&self) -> nfc_device
fn clone(&self) -> nfc_device
Returns a copy of the value. Read more
1.0.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 nfc_device
impl Debug for nfc_device
impl Copy for nfc_device
Auto Trait Implementations§
impl RefUnwindSafe for nfc_device
impl !Send for nfc_device
impl !Sync for nfc_device
impl Unpin for nfc_device
impl UnwindSafe for nfc_device
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