MySensors Library & Examples  2.3.2
Macros
+ Collaboration diagram for Version:

Detailed Description

This file defines the MySensors library version number Please adjust for new releases.

These helper macros generate a numerical and alphanumerical (see http://www.semver.org) representation of the library version number, i.e

SemVer Numerical Comments
2.1.0 0x020100FF final
2.1.1-beta 0x02010100 first pre-release
2.1.1 0x020101FF final
2.2.0-beta 0x02020000 first pre-release

| 2.2.0-rc.1 | 0x02020001 | | 2.2.0-rc.2 | 0x02020002 | | 2.2.0 | 0x020200FF | final

Macros

#define STR_HELPER(x)   #x
 Helper macro, STR_HELPER()
 
#define STR(x)   STR_HELPER(x)
 Helper macro, STR()
 
#define MYSENSORS_LIBRARY_VERSION_MAJOR   2
 Major release version.
 
#define MYSENSORS_LIBRARY_VERSION_MINOR   3
 Minor release version.
 
#define MYSENSORS_LIBRARY_VERSION_PATCH   2
 Patch version.
 
#define MYSENSORS_LIBRARY_VERSION_PRERELEASE   ""
 Pre-release suffix, i.e. alpha, beta, rc.1, etc.
 
#define MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER   0xFF
 incremental counter, starting at 0x00. 0xFF for final release
 
#define MYSENSORS_LIBRARY_VERSION   STR(MYSENSORS_LIBRARY_VERSION_MAJOR) "." STR(MYSENSORS_LIBRARY_VERSION_MINOR) "." STR(MYSENSORS_LIBRARY_VERSION_PATCH)
 final release versioning
 
#define MYSENSORS_LIBRARY_VERSION_INT   ( ((uint32_t)MYSENSORS_LIBRARY_VERSION_MAJOR) << 24 | ((uint32_t)MYSENSORS_LIBRARY_VERSION_MINOR) << 16 | ((uint32_t)MYSENSORS_LIBRARY_VERSION_PATCH) << 8 | ((uint32_t)MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER) )
 numerical versioning