Electroneum
device_ledger.hpp File Reference
#include <cstddef>
#include <string>
#include "device.hpp"
#include "log.hpp"
#include "device_io_hid.hpp"
#include <boost/thread/mutex.hpp>
#include <boost/thread/recursive_mutex.hpp>
Include dependency graph for device_ledger.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 hw
 
 hw::ledger
 

Macros

#define MINIMAL_APP_VERSION_MAJOR   1
 
#define MINIMAL_APP_VERSION_MINOR   0
 
#define MINIMAL_APP_VERSION_MICRO   0
 
#define VERSION(M, m, u)   ((M)<<16|(m)<<8|(u))
 
#define VERSION_MAJOR(v)   (((v)>>16)&0xFF)
 
#define VERSION_MINOR(v)   (((v)>>8)&0xFF)
 
#define VERSION_MICRO(v)   (((v)>>0)&0xFF)
 
#define MINIMAL_APP_VERSION   VERSION(MINIMAL_APP_VERSION_MAJOR, MINIMAL_APP_VERSION_MINOR, MINIMAL_APP_VERSION_MICRO)
 

Functions

void hw::ledger::register_all (std::map< std::string, std::unique_ptr< device >> &registry)
 

Macro Definition Documentation

◆ MINIMAL_APP_VERSION

Definition at line 55 of file device_ledger.hpp.

◆ MINIMAL_APP_VERSION_MAJOR

#define MINIMAL_APP_VERSION_MAJOR   1

Definition at line 46 of file device_ledger.hpp.

◆ MINIMAL_APP_VERSION_MICRO

#define MINIMAL_APP_VERSION_MICRO   0

Definition at line 48 of file device_ledger.hpp.

◆ MINIMAL_APP_VERSION_MINOR

#define MINIMAL_APP_VERSION_MINOR   0

Definition at line 47 of file device_ledger.hpp.

◆ VERSION

#define VERSION (   M,
  m,
 
)    ((M)<<16|(m)<<8|(u))

Definition at line 50 of file device_ledger.hpp.

◆ VERSION_MAJOR

#define VERSION_MAJOR (   v)    (((v)>>16)&0xFF)

Definition at line 51 of file device_ledger.hpp.

◆ VERSION_MICRO

#define VERSION_MICRO (   v)    (((v)>>0)&0xFF)

Definition at line 53 of file device_ledger.hpp.

◆ VERSION_MINOR

#define VERSION_MINOR (   v)    (((v)>>8)&0xFF)

Definition at line 52 of file device_ledger.hpp.