|
Critical Link MityCam SoC Firmware
1.0
Critical Link MityCam SoC Firmware
|
Go to the documentation of this file. 1 #ifndef BADPIXELHANDLER_H
2 #define BADPIXELHANDLER_H
8 template <
typename BprCoreProv
ider>
13 tcAbstractHandler *apNextHandler = NULL, std::map<std::string, tcAbstractHandler*> *apMap = NULL)
18 (*apMap)[
"SBPR"] =
this;
19 (*apMap)[
"GBPR"] =
this;
20 (*apMap)[
"SBPRM"] =
this;
21 (*apMap)[
"GBPRM"] =
this;
38 virtual std::string
execute(std::string& arCommandString,
39 std::string& arParameters) {
45 if (arCommandString ==
"SBPR") {
47 }
else if (arCommandString ==
"GBPR") {
49 }
else if (arCommandString ==
"SBPRM") {
51 }
else if (arCommandString ==
"GBPRM") {
102 arValue = mpBpr->mapState();
105 mpBpr->setMapState(arValue);
108 arValue = mpBpr->onState();
114 mpBpr->setData(mpBpr->defaultData());
135 mpBpr->setMapState(pu32msg->m_newval);
138 if(!pu32msg->m_newval) {
141 mpBpr->setData(mpBpr->defaultData());
153 pu32msg->m_fixval = pu32msg->m_oldval;
158 pu32msg->m_fixval = pu32msg->m_oldval;
163 pu32msg->m_fixval = pu32msg->m_oldval;
168 pu32msg->m_fixval = pu32msg->m_oldval;
176 BprCoreProvider* mpBpr;
182 #endif // BADPIXELHANDLER_H
@ eeGetM
Definition: BadPixelHandler.h:26
int32_t int32
Definition: Types.h:8
teRegType m_regtype
Definition: RegisterFile.h:364
void update(tsUpdate asMessage)
Definition: BadPixelHandler.h:122
@ eeSet
Definition: BadPixelHandler.h:29
const uint32_t BAD_PIXEL_CTRL_ADDR
Definition: RegisterFile.h:648
static std::string carrotNumber(float anNum)
Definition: AbstractHandler.cpp:79
const GEV_STATUS GEV_STATUS_BUSY
A required resource to service the request isn't currently available. The request may be retried.
Definition: GigE.h:32
bool m_handled
Definition: RegisterFile.h:366
uint32_t m_address
Definition: RegisterFile.h:365
virtual std::string execute(std::string &arCommandString, std::string &arParameters)
Definition: BadPixelHandler.h:38
const GEV_STATUS GEV_STATUS_INVALID_PARAMETER
At least one parameter provided in the command is invalid (or out of range) for the device.
Definition: GigE.h:27
void * mpMessage
Definition: Observer.h:9
@ eeArgumentOutOfRange
!< Command arguments missing
Definition: CameraTypes.h:67
Definition: BadPixelHandler.h:9
Definition: AbstractHandler.h:24
teOperation
Definition: BadPixelHandler.h:25
bool hasNext()
Definition: StringTokenizer.cpp:13
teNackCode
Definition: CameraTypes.h:62
@ eeCaptureInProgress
!< Internal configuration error... typically an incorrect sensor/handler combination
Definition: CameraTypes.h:69
Definition: RegisterFile.h:372
Definition: StringTokenizer.h:14
@ eeRegUint32
Generic 32-bit unsigned integer interface (for endian management)
Definition: RegisterFile.h:112
const GEV_STATUS GEV_STATUS_ERROR
Generic error. Try to avoid and use a more descriptive status code from list above.
Definition: GigE.h:37
@ eeOperationNotSupported
!< Indicates a communication error (typically with the sensor)
Definition: CameraTypes.h:71
tcBadPixelHandler(BprCoreProvider *apSensor, tcAbstractHandler *apNextHandler=NULL, std::map< std::string, tcAbstractHandler * > *apMap=NULL)
Definition: BadPixelHandler.h:12
Definition: CameraTypes.h:7
const uint32_t BAD_PIXEL_CTRL_MAP_ADDR
Set whether to display bad pixel map (as 1s/0s) for debugging.
Definition: RegisterFile.h:649
virtual teNackCode execute(teOperation aeOp, int32 &arValue)
Definition: BadPixelHandler.h:99
bool nextInt(int32 *apRet)
Definition: StringTokenizer.cpp:60
@ eeNoError
Definition: CameraTypes.h:64
@ eeSetM
Definition: BadPixelHandler.h:27
static std::string ack(std::string *apValue=NULL)
Definition: AbstractHandler.cpp:68
@ eeArgumentMissing
!< No command handler exists for command
Definition: CameraTypes.h:66
const GEV_STATUS GEV_STATUS_NOT_IMPLEMENTED
The request isn't supported by the device.
Definition: GigE.h:26
virtual std::string execute(std::string &arCommandString, std::string &arParameters)
Definition: AbstractHandler.cpp:35
@ eeGet
Definition: BadPixelHandler.h:28
Definition: RegisterFile.h:351
static std::string nack(int32 anNack)
Definition: AbstractHandler.cpp:50