dpyRtc Namespace Reference

Deepsy Rtc namespace that includes the different enums, structs or method signatures that should be used.

Classes

struct  DateSources
 
struct  ParamConfig
 Parameters struct which contains the response received from the service. More...
 

Typedefs

typedef boost::function< void(const bool &available)> service_availability_handler
 Prototype of the handler function used to monitor service availability. More...
 
typedef boost::function< void(boost::system::error_code &ec)> result_handler
 Handler for result function callback. This type of function is called when the status callback is done. More...
 
typedef boost::function< void(boost::system::error_code &ec, dpyRtc::ParamConfig &)> params_handler
 Handler for result function callback. This type of function is called when the status callback is done. More...
 
typedef boost::function< void(boost::system::error_code &ec, struct tm date_and_time)> time_and_date_handler
 Handler for result function callback. This type of function is called when the status callback is done. More...
 
typedef boost::function< void(boost::system::error_code &ec, struct tm date_and_time, struct tm last_set_date_and_time)> time_date_set_handler
 Handler for result function callback. This type of function is called when the status callback is done. More...
 
typedef boost::function< void(boost::system::error_code &ec, std::map< std::string, dpyRtc::DateSources > sourceList)> sources_list_handler
 Prototype of the handler function for getting sources list. More...
 

Enumerations

enum  DateSourceType { GNSS = 0, MODEM = 1, SNTP = 2, FILE = 3 }
 Defines the possible status of date sources. More...
 

Typedef Documentation

typedef boost::function<void(boost::system::error_code& ec, dpyRtc::ParamConfig &)> params_handler
Parameters
ecerror code (if any)
ParamConfig
typedef boost::function<void(boost::system::error_code& ec)> result_handler
Parameters
ecerror code (if any)
typedef boost::function<void(const bool &available)> service_availability_handler
Parameters
availabletrue if the service is available, false otherwise
typedef boost::function<void(boost::system::error_code& ec, std::map<std::string, dpyRtc::DateSources> sourceList)> sources_list_handler
Parameters
error_codeerror code (if any)
sourceslist of rtc sources
typedef boost::function<void(boost::system::error_code& ec, struct tm date_and_time)> time_and_date_handler
Parameters
ecerror code (if any)
date_and_timedate and time provided by the service
Deprecated:
typedef boost::function<void(boost::system::error_code& ec, struct tm date_and_time,struct tm last_set_date_and_time)> time_date_set_handler
Parameters
ecerror code (if any)
date_and_timedate and time provided by the service
last_set_date_and_timelast time the RTC performed a set date

Enumeration Type Documentation

Enumerator
GNSS 

Gnss device.

MODEM 

Modem device.

SNTP 

SNTP Server.

FILE 

File , containing a line with date time info in ISO 8601:2000 standard date format [FTTZ].