uFCoder 2.62
Loading...
Searching...
No Matches

Functions

UFR_STATUS DL_API card_halt_enable (void)
 Function enables normal working mode of reader, after leaving the transceive working mode with blocking card HALT command in the main loop.
 
UFR_STATUS DL_API card_transceive_mode_start (uint8_t tx_crc, uint8_t rx_crc, uint32_t rf_timeout, uint32_t uart_timeout)
 Function sets the parameters for transceive mode.
 
UFR_STATUS DL_API card_transceive_mode_stop (void)
 The function returns the reader to normal mode.
 
UFR_STATUS DL_API uart_transceive (IN uint8_t *send_data, uint8_t send_len, OUT uint8_t *rcv_data, uint32_t bytes_to_receive, VAR uint32_t *rcv_len)
 The function sends data through the serial port to the card.
 

Detailed Description

Function Documentation

◆ card_halt_enable()

UFR_STATUS DL_API card_halt_enable ( void )

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

Returns
Operation status

◆ card_transceive_mode_start()

UFR_STATUS DL_API card_transceive_mode_start ( uint8_t tx_crc,
uint8_t rx_crc,
uint32_t rf_timeout,
uint32_t uart_timeout )

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
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_stop()

UFR_STATUS DL_API card_transceive_mode_stop ( void )

The function returns the reader to normal mode.

Returns
Operation status

◆ uart_transceive()

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

The function sends data through the serial port to the card.

Parameters
send_datapointer to data array for sending to card
send_lennumber of bytes for sending rcv_data pointer to data array received from card bytes_to_receive expected number of bytes received from card rcv_len number of bytes received from card
rcv_datapointer to data array received from card
bytes_to_receiveexpected number of bytes received from card rcv_len number of bytes received from card
rcv_lennumber of bytes received from card
Returns
Operation status