Struct nfc_sys::nfc_driver [] [src]

#[repr(C)]
pub struct nfc_driver { pub name: *const c_char, pub scan_type: scan_type_enum, pub scan: Option<unsafe extern "C" fn(_: *const nfc_context, _: *mut nfc_connstring, _: size_t) -> size_t>, pub open: Option<unsafe extern "C" fn(_: *const nfc_context, _: nfc_connstring) -> *mut nfc_device>, pub close: Option<unsafe extern "C" fn(_: *mut nfc_device)>, pub strerror: Option<unsafe extern "C" fn(_: *const nfc_device) -> *const c_char>, pub initiator_init: Option<unsafe extern "C" fn(_: *mut nfc_device) -> c_int>, pub initiator_init_secure_element: Option<unsafe extern "C" fn(_: *mut nfc_device) -> c_int>, pub initiator_select_passive_target: Option<unsafe extern "C" fn(_: *mut nfc_device, _: nfc_modulation, _: *const uint8_t, _: size_t, _: *mut nfc_target) -> c_int>, pub initiator_poll_target: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *const nfc_modulation, _: size_t, _: uint8_t, _: uint8_t, _: *mut nfc_target) -> c_int>, pub initiator_select_dep_target: Option<unsafe extern "C" fn(_: *mut nfc_device, _: nfc_dep_mode, _: nfc_baud_rate, _: *const nfc_dep_info, _: *mut nfc_target, _: c_int) -> c_int>, pub initiator_deselect_target: Option<unsafe extern "C" fn(_: *mut nfc_device) -> c_int>, pub initiator_transceive_bytes: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *const uint8_t, _: size_t, _: *mut uint8_t, _: size_t, _: c_int) -> c_int>, pub initiator_transceive_bits: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *const uint8_t, _: size_t, _: *const uint8_t, _: *mut uint8_t, _: *mut uint8_t) -> c_int>, pub initiator_transceive_bytes_timed: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *const uint8_t, _: size_t, _: *mut uint8_t, _: size_t, _: *mut uint32_t) -> c_int>, pub initiator_transceive_bits_timed: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *const uint8_t, _: size_t, _: *const uint8_t, _: *mut uint8_t, _: *mut uint8_t, _: *mut uint32_t) -> c_int>, pub initiator_target_is_present: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *const nfc_target) -> c_int>, pub target_init: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *mut nfc_target, _: *mut uint8_t, _: size_t, _: c_int) -> c_int>, pub target_send_bytes: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *const uint8_t, _: size_t, _: c_int) -> c_int>, pub target_receive_bytes: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *mut uint8_t, _: size_t, _: c_int) -> c_int>, pub target_send_bits: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *const uint8_t, _: size_t, _: *const uint8_t) -> c_int>, pub target_receive_bits: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *mut uint8_t, _: size_t, _: *mut uint8_t) -> c_int>, pub device_set_property_bool: Option<unsafe extern "C" fn(_: *mut nfc_device, _: nfc_property, _: u8) -> c_int>, pub device_set_property_int: Option<unsafe extern "C" fn(_: *mut nfc_device, _: nfc_property, _: c_int) -> c_int>, pub get_supported_modulation: Option<unsafe extern "C" fn(_: *mut nfc_device, _: nfc_mode, _: *mut *const nfc_modulation_type) -> c_int>, pub get_supported_baud_rate: Option<unsafe extern "C" fn(_: *mut nfc_device, _: nfc_mode, _: nfc_modulation_type, _: *mut *const nfc_baud_rate) -> c_int>, pub device_get_information_about: Option<unsafe extern "C" fn(_: *mut nfc_device, _: *mut *mut c_char) -> c_int>, pub abort_command: Option<unsafe extern "C" fn(_: *mut nfc_device) -> c_int>, pub idle: Option<unsafe extern "C" fn(_: *mut nfc_device) -> c_int>, pub powerdown: Option<unsafe extern "C" fn(_: *mut nfc_device) -> c_int>, }

Fields

Trait Implementations

impl Copy for nfc_driver
[src]

impl Clone for nfc_driver
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for nfc_driver
[src]

Formats the value using the given formatter.

impl Default for nfc_driver
[src]

Returns the "default value" for a type. Read more