![]() |
uFCoder 2.62
|
Functions | |
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. | |
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. | |
UFR_STATUS DL_API | card_transceive_mode_stopM (UFR_HANDLE hndUFR) |
Multi reader support. The function returns the reader to normal mode. | |
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. | |
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.
hndUFR | handle of the uFR device |
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.
hndUFR | handle of the uFR device |
tx_crc | hardware RF TX crc using (1 - yes, 0 - no) |
rx_crc | hardware RF RX crc using (1 - yes, 0 - no) |
rf_timeout | timeout for card response in us |
uart_timeout | timeout for UART response in ms |
UFR_STATUS DL_API card_transceive_mode_stopM | ( | UFR_HANDLE | hndUFR | ) |
Multi reader support. The function returns the reader to normal mode.
hndUFR | handle of the uFR device |
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.
hndUFR | handle of the uFR device |
send_data | pointer to data array for sending to card |
send_len | number 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 |