Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
event_handler.h
Go to the documentation of this file.
1 #ifndef EVENT_HANDLER_H
2 #define EVENT_HANDLER_H
3 
4 #include <stdint.h>
5 #include <SDL2/SDL.h>
6 #include "keyboard.h"
7 #include "rfid_reader.h"
8 
9 namespace event_handler {
16  int handle_raw_event(kb_event* raw_event);
23  int handle_rfid_event(rfid_event* event);
30  int handle_sdl_event(const SDL_Event* event);
31 }
32 
33 #endif
int handle_rfid_event(rfid_event *event)
Function handles RFID event.
int handle_raw_event(kb_event *raw_event)
Offers option for cutom event handling. If not desired only created SDL event.
int handle_sdl_event(const SDL_Event *event)
Handles SDL2 library event.
Structure of SPI keyboard event, Contains pressed scancode, flags and timestamp of event creation.
Definition: keyboard.h:23
Structure used for RFID event. This structure contains read tag and flags of the event.
Definition: rfid_reader.h:100