RC5 Demo
Enumerations
bit.h File Reference

Contains the Bit data type. More...

Enumerations

enum  Bit { ZERO = 0, ONE = 1 }
 Enumeration to provide meaningful names for bit states. More...
 

Detailed Description

Contains the Bit data type.

Enumeration Type Documentation

◆ Bit

enum Bit

Enumeration to provide meaningful names for bit states.

The binary values are chosen to match the logical states as well, e.g. if (x) equals to if (x == ONE) and if (x != ZERO). However, this type should be used in situations only where there are actual bits to refer to (e.g. the result from bit detection). In situations where the logical character is dominant, bool should be used instead.

Enumerator
ZERO 

Binary zero.

ONE 

Binary one.