39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
73#define RFID2_CARD_IS_SUCCESSFULLY_READ 0x00
80#define DRV_BUFFER_SIZE 200
98#define RFID2_MAP_MIKROBUS( cfg, mikrobus ) \
99 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
100 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
101 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
102 cfg.cp = MIKROBUS( mikrobus, MIKROBUS_INT );
#define DRV_BUFFER_SIZE
RFID 2 driver buffer size.
Definition rfid2.h:80
void rfid2_cfg_setup(rfid2_cfg_t *cfg)
RFID 2 configuration object setup function.
void rfid2_reset(rfid2_t *ctx)
RFID 2 reset chip function.
uint8_t rfid2_get_interrupt(rfid2_t *ctx)
RFID 2 read state interrupt(INT) pin function.
err_t rfid2_generic_read(rfid2_t *ctx, char *data_buf, uint16_t max_len)
RFID 2 data reading function.
err_t rfid2_init(rfid2_t *ctx, rfid2_cfg_t *cfg)
RFID 2 initialization function.
err_t rfid2_generic_write(rfid2_t *ctx, char *data_buf, uint16_t len)
RFID 2 data writing function.
rfid2_return_value_t
RFID 2 Click return value data.
Definition rfid2.h:156
@ RFID2_ERROR
Definition rfid2.h:158
@ RFID2_OK
Definition rfid2.h:157
RFID 2 Click configuration object.
Definition rfid2.h:133
uint32_t baud_rate
Definition rfid2.h:143
pin_name_t cp
Definition rfid2.h:140
bool uart_blocking
Definition rfid2.h:144
uart_data_bits_t data_bit
Definition rfid2.h:145
pin_name_t tx_pin
Definition rfid2.h:136
pin_name_t rx_pin
Definition rfid2.h:135
uart_stop_bits_t stop_bit
Definition rfid2.h:147
uart_parity_t parity_bit
Definition rfid2.h:146
pin_name_t rst
Definition rfid2.h:139
RFID 2 Click context object.
Definition rfid2.h:112
uart_t uart
Definition rfid2.h:120
digital_out_t rst
Definition rfid2.h:114
digital_in_t cp
Definition rfid2.h:117