explanation of cookie purpose added, device handler base indentation
This commit is contained in:
parent
743d8abeaf
commit
5e3b7c3625
@ -1,6 +1,9 @@
|
|||||||
#ifndef COOKIE_H_
|
#ifndef COOKIE_H_
|
||||||
#define COOKIE_H_
|
#define COOKIE_H_
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This datatype is used to identify different connection over a single interface (like RMAP or I2C)
|
||||||
|
*/
|
||||||
class Cookie{
|
class Cookie{
|
||||||
public:
|
public:
|
||||||
virtual ~Cookie(){}
|
virtual ~Cookie(){}
|
||||||
|
@ -21,20 +21,19 @@ DeviceHandlerBase::DeviceHandlerBase(uint32_t ioBoardAddress,
|
|||||||
uint8_t setDeviceSwitch, object_id_t deviceCommunication,
|
uint8_t setDeviceSwitch, object_id_t deviceCommunication,
|
||||||
uint32_t thermalStatePoolId, uint32_t thermalRequestPoolId,
|
uint32_t thermalStatePoolId, uint32_t thermalRequestPoolId,
|
||||||
FailureIsolationBase* fdirInstance, uint32_t cmdQueueSize) :
|
FailureIsolationBase* fdirInstance, uint32_t cmdQueueSize) :
|
||||||
SystemObject(setObjectId), rawPacket(0), rawPacketLen(0), mode(
|
SystemObject(setObjectId), rawPacket(0), rawPacketLen(0), mode(MODE_OFF),
|
||||||
MODE_OFF), submode(SUBMODE_NONE), pstStep(0), maxDeviceReplyLen(
|
submode(SUBMODE_NONE), pstStep(0), maxDeviceReplyLen(maxDeviceReplyLen),
|
||||||
maxDeviceReplyLen), wiretappingMode(OFF), defaultRawReceiver(0), storedRawData(
|
wiretappingMode(OFF), defaultRawReceiver(0), storedRawData(StorageManagerIF::INVALID_ADDRESS),
|
||||||
StorageManagerIF::INVALID_ADDRESS), requestedRawTraffic(0), powerSwitcher(
|
requestedRawTraffic(0), powerSwitcher(NULL), IPCStore(NULL),
|
||||||
NULL), IPCStore(NULL), deviceCommunicationId(deviceCommunication), communicationInterface(
|
deviceCommunicationId(deviceCommunication), communicationInterface(NULL),
|
||||||
NULL), cookie(
|
cookie(NULL), commandQueue(NULL), deviceThermalStatePoolId(thermalStatePoolId),
|
||||||
NULL), commandQueue(NULL), deviceThermalStatePoolId(thermalStatePoolId), deviceThermalRequestPoolId(
|
deviceThermalRequestPoolId(thermalRequestPoolId), healthHelper(this, setObjectId),
|
||||||
thermalRequestPoolId), healthHelper(this, setObjectId), modeHelper(
|
modeHelper(this), parameterHelper(this), childTransitionFailure(RETURN_OK),
|
||||||
this), parameterHelper(this), childTransitionFailure(RETURN_OK), ignoreMissedRepliesCount(
|
ignoreMissedRepliesCount(0), fdirInstance(fdirInstance), hkSwitcher(this),
|
||||||
0), fdirInstance(fdirInstance), hkSwitcher(this), defaultFDIRUsed(
|
defaultFDIRUsed(fdirInstance == NULL), switchOffWasReported(false),
|
||||||
fdirInstance == NULL), switchOffWasReported(false),executingTask(NULL), actionHelper(this, NULL), cookieInfo(), ioBoardAddress(
|
executingTask(NULL), actionHelper(this, NULL), cookieInfo(), ioBoardAddress(ioBoardAddress),
|
||||||
ioBoardAddress), timeoutStart(0), childTransitionDelay(5000), transitionSourceMode(
|
timeoutStart(0), childTransitionDelay(5000), transitionSourceMode(_MODE_POWER_DOWN),
|
||||||
_MODE_POWER_DOWN), transitionSourceSubMode(SUBMODE_NONE), deviceSwitch(
|
transitionSourceSubMode(SUBMODE_NONE), deviceSwitch(setDeviceSwitch) {
|
||||||
setDeviceSwitch) {
|
|
||||||
commandQueue = QueueFactory::instance()->createMessageQueue(cmdQueueSize,
|
commandQueue = QueueFactory::instance()->createMessageQueue(cmdQueueSize,
|
||||||
CommandMessage::MAX_MESSAGE_SIZE);
|
CommandMessage::MAX_MESSAGE_SIZE);
|
||||||
cookieInfo.state = COOKIE_UNUSED;
|
cookieInfo.state = COOKIE_UNUSED;
|
||||||
|
Loading…
Reference in New Issue
Block a user