Response object for an action call.  
 More...
#include <modm/communication/sab/slave.hpp>
 | 
| void  | error (uint8_t errorCode=ERROR_GENERAL_ERROR) | 
|   | Signal an error condition.  More...
  | 
|   | 
| 
void  | send () | 
|   | Send a response without any data. 
  | 
|   | 
| void  | send (const void *payload, std::size_t length) | 
|   | Send a response with an attached payload.  More...
  | 
|   | 
| 
template<typename T >  | 
| void  | send (const T &payload) | 
|   | Send a response with an attached payload. 
  | 
|   | 
 | 
| 
  | Response (Transmitter *parent) | 
|   | 
| 
  | Response (const Response &) | 
|   | 
| 
Response &  | operator= (const Response &) | 
|   | 
 | 
| 
template<typename I >  | 
| class  | Slave | 
|   | 
Response object for an action call. 
 
      
        
          | void modm::sab::Response::error  | 
          ( | 
          uint8_t  | 
          errorCode = ERROR_GENERAL_ERROR | ) | 
           | 
        
      
 
Signal an error condition. 
- Parameters
 - 
  
    | errorCode | Error code. Values below 0x20 are reserved for the system, feel free to use any other value for specific error conditions. | 
  
   
- See also
 - modm::sab::Error 
 
 
 
      
        
          | void modm::sab::Response::send  | 
          ( | 
          const void *  | 
          payload,  | 
        
        
           | 
           | 
          std::size_t  | 
          length  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Send a response with an attached payload. 
- Parameters
 - 
  
    | payload | Pointer to the payload  | 
    | length | Number of bytes  | 
  
   
 
 
The documentation for this class was generated from the following files: