C++

C++ - Enum

Static Functions And Keyword

Posted by Rico's Nerd Cluster on February 3, 2023

Enum Class

Enum class is a type safe way to initialize enums

1
2
3
4
enum class MPS_Status: uint8_t{
    SENSOR_UNINITIALIZED = 0x00,
    SENSOR_STARTUP = 0x27
};