Structure that represents MeshNet version. Real size of this class is always 2 bytes.
More...
#include <meshHelper.h>
|
uint16_t | Patch: 5 |
| Patch part of version. It's value can be between 0-31. More...
|
|
uint16_t | Minor: 5 |
| Minor part of version. It's value can be between 0-31. More...
|
|
uint16_t | Major: 6 |
| Major part of version. It's value can be between 0-63. More...
|
|
Structure that represents MeshNet version. Real size of this class is always 2 bytes.
◆ MeshVersion() [1/4]
MeshVersion::MeshVersion |
( |
| ) |
|
|
inline |
◆ MeshVersion() [2/4]
MeshVersion::MeshVersion |
( |
uint8_t |
major, |
|
|
uint8_t |
minor, |
|
|
uint8_t |
patch |
|
) |
| |
Constructor with numbers.
- Parameters
-
major | Major part of version. It's value can be between 0-63. |
minor | Minor part of version. It's value can be between 0-31. |
patch | Patch part of version. It's value can be between 0-31. |
◆ MeshVersion() [3/4]
MeshVersion::MeshVersion |
( |
uint16_t |
raw | ) |
|
Constructor with raw value.
- Parameters
-
◆ MeshVersion() [4/4]
Default copy constructor.
◆ getRaw()
uint16_t MeshVersion::getRaw |
( |
| ) |
const |
|
inline |
◆ operator uint16_t() [1/2]
MeshVersion::operator uint16_t |
( |
| ) |
|
|
inline |
◆ operator uint16_t() [2/2]
MeshVersion::operator uint16_t |
( |
| ) |
const |
|
inline |
◆ operator!=() [1/2]
bool MeshVersion::operator!= |
( |
const MeshVersion & |
val | ) |
|
|
inline |
◆ operator!=() [2/2]
bool MeshVersion::operator!= |
( |
const uint16_t & |
val | ) |
|
|
inline |
◆ operator<() [1/2]
◆ operator<() [2/2]
bool MeshVersion::operator< |
( |
const uint16_t & |
val | ) |
|
|
inline |
◆ operator<=() [1/2]
bool MeshVersion::operator<= |
( |
const MeshVersion & |
val | ) |
|
|
inline |
◆ operator<=() [2/2]
bool MeshVersion::operator<= |
( |
const uint16_t & |
val | ) |
|
|
inline |
◆ operator=()
void MeshVersion::operator= |
( |
const uint16_t & |
val | ) |
|
|
inline |
◆ operator==() [1/2]
bool MeshVersion::operator== |
( |
const MeshVersion & |
val | ) |
|
|
inline |
◆ operator==() [2/2]
bool MeshVersion::operator== |
( |
const uint16_t & |
val | ) |
|
|
inline |
◆ operator>() [1/2]
◆ operator>() [2/2]
bool MeshVersion::operator> |
( |
const uint16_t & |
val | ) |
|
|
inline |
◆ operator>=() [1/2]
bool MeshVersion::operator>= |
( |
const MeshVersion & |
val | ) |
|
|
inline |
◆ operator>=() [2/2]
bool MeshVersion::operator>= |
( |
const uint16_t & |
val | ) |
|
|
inline |
◆ printTo()
size_t MeshVersion::printTo |
( |
Print & |
p | ) |
const |
Pretty prints MeshVersion.
- Parameters
-
p | Stream, where to print data. |
- Returns
- Returns number of printed characters.
◆ setRaw()
void MeshVersion::setRaw |
( |
const uint16_t |
version | ) |
|
|
inline |
◆ Major
uint16_t MeshVersion::Major |
Major part of version. It's value can be between 0-63.
◆ Minor
uint16_t MeshVersion::Minor |
Minor part of version. It's value can be between 0-31.
◆ Patch
uint16_t MeshVersion::Patch |
Patch part of version. It's value can be between 0-31.
The documentation for this struct was generated from the following files: