Struct elatec_twn4_simple::Multitech3 [−][src]
Elatec Multitech3-based RFID card reader
Methods
impl<RX, TX> Multitech3<RX, TX, Sleep> where
RX: Read<u8>,
TX: Write<u8>,
[src]
impl<RX, TX> Multitech3<RX, TX, Sleep> where
RX: Read<u8>,
TX: Write<u8>,
pub fn into_running(
self
) -> Result<(Multitech3<RX, TX, Run>, WakeReason), (Self, Error)>
[src]
pub fn into_running(
self
) -> Result<(Multitech3<RX, TX, Run>, WakeReason), (Self, Error)>
Read the results of the sleep operation and return a running reader object
impl<RX, TX> Multitech3<RX, TX, Run> where
RX: Read<u8>,
TX: Write<u8>,
[src]
impl<RX, TX> Multitech3<RX, TX, Run> where
RX: Read<u8>,
TX: Write<u8>,
pub fn reset(&mut self) -> Result<(), Error>
[src]
pub fn reset(&mut self) -> Result<(), Error>
Reset the reader; does not return a status
pub fn sleep(self, dur: Duration) -> Result<Multitech3<RX, TX, Sleep>, Error>
[src]
pub fn sleep(self, dur: Duration) -> Result<Multitech3<RX, TX, Sleep>, Error>
Put the reader to sleep; will wake on low-power card detect or timeout
pub fn get_sys_ticks(&mut self) -> Result<u32, Error>
[src]
pub fn get_sys_ticks(&mut self) -> Result<u32, Error>
Return the number of ticks the reader has been powered on
pub fn get_version_string(&mut self, buf: &mut [u8]) -> Result<usize, Error>
[src]
pub fn get_version_string(&mut self, buf: &mut [u8]) -> Result<usize, Error>
Return the reader version string in buf
pub fn search_tag(&mut self, buf: &mut [u8]) -> Result<Option<usize>, Error>
[src]
pub fn search_tag(&mut self, buf: &mut [u8]) -> Result<Option<usize>, Error>
Execute a tag read operation and return the tag type and ID in buf
This does no parsing of the tag information except to strip out TLV-esqe data sent during transmission. The data is returned in the form:
[type: u8] [id_bit_cnt: u8] [tag_id: u8|...]
Trait Implementations
impl<RX: Debug, TX: Debug, MODE: Debug> Debug for Multitech3<RX, TX, MODE> where
RX: Read<u8>,
TX: Write<u8>,
[src]
impl<RX: Debug, TX: Debug, MODE: Debug> Debug for Multitech3<RX, TX, MODE> where
RX: Read<u8>,
TX: Write<u8>,
Auto Trait Implementations
impl<RX, TX, MODE> Send for Multitech3<RX, TX, MODE> where
MODE: Send,
RX: Send,
TX: Send,
impl<RX, TX, MODE> Send for Multitech3<RX, TX, MODE> where
MODE: Send,
RX: Send,
TX: Send,
impl<RX, TX, MODE> Sync for Multitech3<RX, TX, MODE> where
MODE: Sync,
RX: Sync,
TX: Sync,
impl<RX, TX, MODE> Sync for Multitech3<RX, TX, MODE> where
MODE: Sync,
RX: Sync,
TX: Sync,