Prusa3d Marlin fork
Public Member Functions | Public Attributes | List of all members
modules::protocol::ResponseMsg Struct Reference

A response message - responses are being sent from the MMU into the printer as a response to a request message.

#include <mmu2_protocol.h>

Collaboration diagram for modules::protocol::ResponseMsg:
Collaboration graph
[legend]

Public Member Functions

constexpr uint8_t ComputeCRC8 () const
 
constexpr ResponseMsg (RequestMsg request, ResponseMsgParamCodes paramCode, uint16_t paramValue)
 
constexpr uint8_t CRC () const
 

Public Attributes

RequestMsg request
 response is always preceeded by the request message
 
ResponseMsgParamCodes paramCode
 code of the parameter
 
uint16_t paramValue
 value of the parameter
 

Constructor & Destructor Documentation

◆ ResponseMsg()

constexpr modules::protocol::ResponseMsg::ResponseMsg ( RequestMsg  request,
ResponseMsgParamCodes  paramCode,
uint16_t  paramValue 
)
inlineconstexpr
Parameters
requestthe source request message this response is a reply to
paramCodecode of the parameter
paramValuevalue of the parameter

The documentation for this struct was generated from the following file: