Callback type, which has to be passed to communication during actioncall in order to be able to receive a response.
More...
#include <modm/communication/xpcc/response_callback.hpp>
|
typedef void (Communicatable::* | Function) (const Header &header, const uint8_t *type) |
|
Callback type, which has to be passed to communication during actioncall in order to be able to receive a response.
Is a Functor.
template<typename C , typename P >
xpcc::ResponseCallback::ResponseCallback |
( |
C * |
componentObject, |
|
|
void (C::*)(const Header &header, const P *packet) |
memberFunction |
|
) |
| |
|
inline |
Set the method that will be called when a response is received.
- Parameters
-
componentObject | Pointer to a component object |
memberFunction | Pointer to a function of the component object |
template<typename C >
xpcc::ResponseCallback::ResponseCallback |
( |
C * |
componentObject, |
|
|
void (C::*)(const Header &header) |
memberFunction |
|
) |
| |
|
inline |
Set the method that will be called when a response is received.
This specialization is to be used in case of no payload. The second parameter of the method has to be a void*.
- Parameters
-
componentObject | Pointer to a component object |
memberFunction | Pointer to a function of the component object |
The documentation for this class was generated from the following file: