uFCoder 2.58
Loading...
Searching...
No Matches

Functions

UFR_STATUS DL_API card_transceive_mode_startM (UFR_HANDLE hndUFR, uint8_t tx_crc, uint8_t rx_crc, uint32_t rf_timeout, uint32_t uart_timeout)
 
UFR_STATUS DL_API card_transceive_mode_stopM (UFR_HANDLE hndUFR)
 
UFR_STATUS DL_API card_halt_enableM (UFR_HANDLE hndUFR)
 
UFR_STATUS DL_API uart_transceiveM (UFR_HANDLE hndUFR, IN uint8_t *send_data, uint8_t send_len, OUT uint8_t *rcv_data, uint32_t bytes_to_receive, VAR uint32_t *rcv_len)
 

Detailed Description

Function Documentation

◆ card_transceive_mode_startM()

UFR_STATUS DL_API card_transceive_mode_startM ( UFR_HANDLE hndUFR,
uint8_t tx_crc,
uint8_t rx_crc,
uint32_t rf_timeout,
uint32_t uart_timeout )

Multi reader support. Function sets the parameters for transceive mode. If the hardware CRC option is used, then only command bytes are sent to the card (hardware will add two bytes of CRC to the end of the RF packet). If this option did not use, then command bytes and two bytes of CRC sent to card (i.e. ISO14443 typeA CRC). Timeout for card response in us sets. Card is selected and waiting for commands.

Parameters
hndUFRhandle of the uFR device
tx_crchardware RF TX crc using (1 - yes, 0 - no)
rx_crchardware RF RX crc using (1 - yes, 0 - no)
rf_timeouttimeout for card response in us
uart_timeouttimeout for UART response in ms
Returns
Operation status

◆ card_transceive_mode_stopM()

UFR_STATUS DL_API card_transceive_mode_stopM ( UFR_HANDLE hndUFR)

Multi reader support. The function returns the reader to normal mode.

Parameters
hndUFRhandle of the uFR device
Returns
Operation status

◆ card_halt_enableM()

UFR_STATUS DL_API card_halt_enableM ( UFR_HANDLE hndUFR)

Multi reader support. Function enables normal working mode of reader, after leaving the transceive working mode with blocking card HALT command in the main loop.

Parameters
hndUFRhandle of the uFR device
Returns
Operation status

◆ uart_transceiveM()

UFR_STATUS DL_API uart_transceiveM ( UFR_HANDLE hndUFR,
IN uint8_t * send_data,
uint8_t send_len,
OUT uint8_t * rcv_data,
uint32_t bytes_to_receive,
VAR uint32_t * rcv_len )

Multi reader support. The function sends data through the serial port to the card.

Parameters
hndUFRhandle of the uFR device
send_datapointer to data array for sending to card
send_lennumber of bytes for sending
rcv_datapointer to data array received from card
bytes_to_receiveexpected number of bytes received from card
rcv_lennumber of bytes received from card
Returns
Operation status