1
0
forked from fsfw/fsfw

added initializeInterface for comIF/cookie

This commit is contained in:
2020-03-24 15:33:18 +01:00
parent ea49d88c4b
commit b2b6b8ee23
3 changed files with 17 additions and 6 deletions

View File

@ -46,6 +46,18 @@ public:
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().
* This function is used to send data to the physical device