ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
shutterptpConfig.hpp
Go to the documentation of this file.
1
7
8#ifndef FCF_DEVMGR_DEVICE_SHUTTER_PTP_CONFIG_HPP
9#define FCF_DEVMGR_DEVICE_SHUTTER_PTP_CONFIG_HPP
10
11#include <string>
12#include <unordered_map>
13
14#include <yaml-cpp/yaml.h>
15
16#include <ifw/core/utils/bat/logger.hpp>
22
23
25
26 constexpr auto LOGGER_NAME = "shutterptp";
27
28 // PTP-specific RPC
29 constexpr auto RPC_OPEN_AT = "rpcOpenAt";
30
31 // PTP-specific stat fields
32 constexpr auto CI_ACTUAL_EXPO_TIME = "actual_expo_time";
33 constexpr auto CI_TIME_BEFORE_OPEN = "time_before_open";
34 constexpr auto CI_TIME_EXPO_LEFT = "time_expo_left";
35
36 // PTP-specific substates
37 constexpr short SUBSTATE_OP_ARMED = 216;
38
39 constexpr auto SUBSTATE_OP_ARMED_STR = "Armed";
40
41 // PTP-specific stat attribute codes for subscription map
42 constexpr unsigned int STAT_ACTUAL_EXPO_TIME = 10;
43 constexpr unsigned int STAT_TIME_BEFORE_OPEN = 11;
44 constexpr unsigned int STAT_TIME_EXPO_LEFT = 12;
45
46 // PTP-specific substate map extends the base shutter map
61
62
63}
64
65
66#endif //FCF_DEVMGR_DEVICE_SHUTTER_PTP_CONFIG_HPP
constexpr int SUBSTATE_ERROR
Definition deviceConfig.hpp:97
constexpr int SUBSTATE_OP_DISABLING
Definition deviceConfig.hpp:104
constexpr auto SUBSTATE_INITIALISING_STR
Definition deviceConfig.hpp:100
constexpr auto SUBSTATE_ERROR_STR
Definition deviceConfig.hpp:102
constexpr int SUBSTATE_INITIALISING
Definition deviceConfig.hpp:96
constexpr auto SUBSTATE_NOTREADY_STR
Definition deviceConfig.hpp:99
constexpr auto SUBSTATE_OP_DISABLING_STR
Definition deviceConfig.hpp:107
constexpr int SUBSTATE_OP_ERROR
Definition deviceConfig.hpp:105
constexpr int SUBSTATE_NOTREADY
Definition deviceConfig.hpp:94
constexpr auto SUBSTATE_OP_ERROR_STR
Definition deviceConfig.hpp:108
constexpr short SUBSTATE_OP_CLOSE
Definition shutterConfig.hpp:54
constexpr short SUBSTATE_READY_CLOSE
Definition shutterConfig.hpp:52
constexpr auto SUBSTATE_READY_OPEN_STR
Definition shutterConfig.hpp:60
constexpr short SUBSTATE_OP_OPENING
Definition shutterConfig.hpp:57
constexpr short SUBSTATE_OP_CLOSING
Definition shutterConfig.hpp:55
constexpr auto SUBSTATE_OP_OPENING_STR
Definition shutterConfig.hpp:64
constexpr auto SUBSTATE_OP_CLOSING_STR
Definition shutterConfig.hpp:62
constexpr auto SUBSTATE_OP_OPEN_STR
Definition shutterConfig.hpp:63
constexpr auto SUBSTATE_READY_CLOSE_STR
Definition shutterConfig.hpp:59
constexpr short SUBSTATE_READY_OPEN
Definition shutterConfig.hpp:53
constexpr auto SUBSTATE_OP_CLOSE_STR
Definition shutterConfig.hpp:61
constexpr short SUBSTATE_OP_OPEN
Definition shutterConfig.hpp:56
ShutterPtp class header file.
Definition shutterptp.hpp:17
constexpr auto SUBSTATE_OP_ARMED_STR
Definition shutterptpConfig.hpp:39
constexpr auto CI_TIME_EXPO_LEFT
Definition shutterptpConfig.hpp:34
constexpr unsigned int STAT_TIME_EXPO_LEFT
Definition shutterptpConfig.hpp:44
constexpr auto CI_TIME_BEFORE_OPEN
Definition shutterptpConfig.hpp:33
constexpr short SUBSTATE_OP_ARMED
Definition shutterptpConfig.hpp:37
const std::unordered_map< short, std::string > SUBSTATE_MAP
Definition shutterptpConfig.hpp:47
constexpr auto LOGGER_NAME
Definition shutterptpConfig.hpp:26
constexpr auto RPC_OPEN_AT
Definition shutterptpConfig.hpp:29
constexpr auto CI_ACTUAL_EXPO_TIME
Definition shutterptpConfig.hpp:32
constexpr unsigned int STAT_ACTUAL_EXPO_TIME
Definition shutterptpConfig.hpp:42
constexpr unsigned int STAT_TIME_BEFORE_OPEN
Definition shutterptpConfig.hpp:43