uFCoder 2.62
|
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. | |
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.
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.
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_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.
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 |
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_len | number of bytes received from card |