Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
Classes | Namespaces | Typedefs | Enumerations | Functions
rfid_reader.h File Reference

Go to the source code of this file.

Classes

struct  rfid_reader::rfid_tag
 RFID tag structure. Stores data read from SPI. More...
 
struct  rfid_e
 Structure used for RFID event. This structure contains read tag and flags of the event. More...
 

Namespaces

 rfid_reader
 

Typedefs

typedef struct rfid_e rfid_event
 

Enumerations

enum  RFID_FLAGS_ { RFID_FLAGS_NONE = 0x00 , RFID_FLAGS_REPEATING = 0x01 << 0 }
 Flags of RFID events. More...
 

Functions

rfid_eventrfid_reader::poll_event ()
 Polls event from RFID event_queue. More...
 
void rfid_reader::clear_event_queue ()
 Clears event queue, discarding all waiting events. More...
 
int rfid_reader::init (const char *, uint8_t, uint32_t, uint16_t, uint8_t)
 RFID reader init through values. More...
 
int rfid_reader::init_from_conf ()
 RFID reader init from loaded configuration. More...
 
void rfid_reader::start_reading_cards ()
 Loop that is run in its own thread, reading the RFID reader. More...
 
void rfid_reader::clean ()
 Stops the reading thread. More...
 
char rfid_reader::detect_tag (uint16_t *tag_type, uint8_t *buff)
 This function detects if a RFID tag was put near the reader. More...
 
char rfid_reader::read_tag_serialn (uint8_t *serial, uint8_t *serial_size, uint8_t *ser_ack, uint8_t *buff)
 This function reads the serial number of RIFD tag put near the reader. More...
 
int rfid_reader::read_tag (rfid_tag *tag)
 This function is a loop handling the scanner. More...
 

Typedef Documentation

◆ rfid_event

typedef struct rfid_e rfid_event

Definition at line 1 of file rfid_reader.h.

Enumeration Type Documentation

◆ RFID_FLAGS_

Flags of RFID events.

Enumerator
RFID_FLAGS_NONE 
RFID_FLAGS_REPEATING 

Definition at line 91 of file rfid_reader.h.

91  {
92  RFID_FLAGS_NONE = 0x00,
93  RFID_FLAGS_REPEATING = 0x01 << 0
94 };
@ RFID_FLAGS_REPEATING
Definition: rfid_reader.h:93
@ RFID_FLAGS_NONE
Definition: rfid_reader.h:92