dpyPowermanager Namespace Reference
Deepsy PowerManager namespace that includes the different enums, structs or method signatures that should be used.
Classes | |
struct | PowerEvent |
A struct which represents the message that might be received from the service. It indicates when it was asked, the next action, and the level of the request. More... | |
struct | PowerRequest |
A struct which represents the message that might be received from the service. It indicates when it was asked, the next action, and the level of the request. More... | |
struct | Timers |
A struct which store the values of the power wakeup timers. More... | |
struct | TransitionIntervals |
A struct which store the values of the transition intervals. 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, dpyPowermanager::PowerEvent event)> | event_handler_function |
Handlers to the functions the client has to implement. More... | |
typedef boost::function< void(boost::system::error_code ec, bool active)> | debug_pm_handler_function |
Debug handler to check if the debug is active or not. | |
typedef boost::function< void(boost::system::error_code &ec)> | answer_pm_handler_function |
Answer handler function. | |
typedef boost::function< void(boost::system::error_code &ec, dpyPowermanager::Timers)> | timers_pm_handler_function |
Timers handler function. | |
typedef boost::function< void(boost::system::error_code &ec, bool rightConfiguration)> | power_rails_handler_function |
Power Rails handler function. | |
typedef boost::function< void(boost::system::error_code &ec, bool standbyEnabled, bool haltEnabled)> | timers_state_pm_handler_function |
Timers State handler function. | |
typedef boost::function< void(boost::system::error_code &ec, dpyPowermanager::TransitionIntervals)> | transition_intervals_pm_handler_function |
Transition Intervals handler function. | |
typedef boost::function< void(boost::system::error_code &ec, struct tm dateTime)> | wakeup_time_pm_handler_function |
Wakeup Time handler function. | |
typedef boost::function< void(boost::system::error_code &ec, int minutes)> | ignition_off_timeout_pm_handler_function |
Ignition Off Timeout handler function. | |
Enumerations | |
enum | Cause { DEFAULT = 0, CRITICAL_BATTERY = 1, MCU_ERROR = 2, IGNITION_OFF_TIMEOUT = 3 } |
The enum definition of the different types of causes. More... | |
enum | Request { REQ_POWER_ON = 0, REQ_REBOOT = 1, REQ_STANDBY = 2, REQ_SHUTDOWN = 3, REQ_ABORT = 4 } |
The enum definition of the different types of Power Manager Requests. More... | |
enum | Action { POWER_ON = 0, REBOOT = 1, STANDBY = 2, SHUTDOWN = 3 } |
The enum definition of the different types of Power Manager Requests. More... | |
enum | EventType { STARTED_MSG = 0, COMPLETED_MSG = 1, ABORTED_MSG = 2 } |
Identity of the kind of received message. More... | |
enum | ConfigType { NONE = 0, COMPLETED = 1, STARTED = 2, STARTED_COMPLETED = 3 } |
An enum definition which represents the different types of messages that it is wanted to be subscribed. More... | |
enum | Debug { NA_DEBUG = 0, ENABLE = 1, DISABLE = 2 } |
An enum definition which represents the different modes of the Automatic Power configuration. More... | |
Typedef Documentation
typedef boost::function<void(boost::system::error_code& ec, dpyPowermanager::PowerEvent event)> event_handler_function |
Power event handler function.
typedef boost::function<void(const bool &available)> service_availability_handler |
- Parameters
-
available true if the service is available, false otherwise
Enumeration Type Documentation
enum Action |
enum Cause |
enum ConfigType |
enum Debug |
enum EventType |
enum Request |