Parking Garage Control System
ESP32 Parking Garage – ESP-IDF/FreeRTOS
Loading...
Searching...
No Matches
Event.h File Reference
#include <cstdint>
#include <variant>
Include dependency graph for Event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Event
 Event structure. More...
 

Typedefs

using EventPayload = std::variant< std::monostate, uint32_t, bool >
 Event payload types.
 

Enumerations

enum class  EventType {
  EntryButtonPressed , EntryButtonReleased , EntryLightBarrierBlocked , EntryLightBarrierCleared ,
  ExitLightBarrierBlocked , ExitLightBarrierCleared , CapacityAvailable , CapacityFull ,
  TicketIssued , TicketValidated , TicketRejected , EntryBarrierOpened ,
  EntryBarrierClosed , ExitBarrierOpened , ExitBarrierClosed , CarEnteredParking ,
  CarExitedParking , BarrierTimeout , ButtonPressed , LimitSwitchReached
}
 Event types in the parking system. More...
 

Functions

const char * eventTypeToString (EventType type)
 Get string representation of EventType.
 

Typedef Documentation

◆ EventPayload

using EventPayload = std::variant<std::monostate, uint32_t, bool>

Event payload types.

Enumeration Type Documentation

◆ EventType

enum class EventType
strong

Event types in the parking system.

Enumerator
EntryButtonPressed 
EntryButtonReleased 
EntryLightBarrierBlocked 
EntryLightBarrierCleared 
ExitLightBarrierBlocked 
ExitLightBarrierCleared 
CapacityAvailable 
CapacityFull 
TicketIssued 
TicketValidated 
TicketRejected 
EntryBarrierOpened 
EntryBarrierClosed 
ExitBarrierOpened 
ExitBarrierClosed 
CarEnteredParking 
CarExitedParking 
BarrierTimeout 
ButtonPressed 
LimitSwitchReached 

Function Documentation

◆ eventTypeToString()

const char * eventTypeToString ( EventType  type)
inline

Get string representation of EventType.

Coverage