WIP: somethings wrong.. #19
@ -46,6 +46,18 @@ public:
|
|||||||
|
|
||||||
virtual ~DeviceCommunicationIF() {}
|
virtual ~DeviceCommunicationIF() {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Device specific initialization, using the cookie.
|
||||||
|
* @details
|
||||||
|
* The cookie is already prepared in the factory. If the communication
|
||||||
|
* interface needs to be set up in some way and requires cookie information,
|
||||||
|
* this can be performed in this function, which is called on device handler
|
||||||
|
* initialization.
|
||||||
|
* @param cookie
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
virtual ReturnValue_t initializeInterface(CookieIF * cookie) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called by DHB in the SEND_WRITE doSendWrite().
|
* Called by DHB in the SEND_WRITE doSendWrite().
|
||||||
* This function is used to send data to the physical device
|
* This function is used to send data to the physical device
|
||||||
|
@ -102,11 +102,10 @@ ReturnValue_t DeviceHandlerBase::initialize() {
|
|||||||
return RETURN_FAILED;
|
return RETURN_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
// result = communicationInterface->open(&cookie, logicalAddress,
|
result = communicationInterface->initializeInterface(comCookie);
|
||||||
// maxDeviceReplyLen, comParameter1, comParameter2);
|
if (result != RETURN_OK) {
|
||||||
// if (result != RETURN_OK) {
|
return result;
|
||||||
// return result;
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
IPCStore = objectManager->get<StorageManagerIF>(objects::IPC_STORE);
|
IPCStore = objectManager->get<StorageManagerIF>(objects::IPC_STORE);
|
||||||
if (IPCStore == NULL) {
|
if (IPCStore == NULL) {
|
||||||
|
@ -464,7 +464,7 @@ protected:
|
|||||||
* indicates either that all raw messages to and from the device should be sent to #theOneWhoWantsToReadRawTraffic
|
* indicates either that all raw messages to and from the device should be sent to #theOneWhoWantsToReadRawTraffic
|
||||||
* or that all device TM should be downlinked to #theOneWhoWantsToReadRawTraffic
|
* or that all device TM should be downlinked to #theOneWhoWantsToReadRawTraffic
|
||||||
*/
|
*/
|
||||||
enum WiretappingMode {
|
enum WiretappingMode: uint8_t {
|
||||||
OFF = 0, RAW = 1, TM = 2
|
OFF = 0, RAW = 1, TM = 2
|
||||||
} wiretappingMode;
|
} wiretappingMode;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user