Prusa MINI Firmware overview
BinaryStream::Packet Struct Reference

#include <binary_protocol.h>

Collaboration diagram for BinaryStream::Packet:

Classes

union  Footer
 
union  Header
 

Public Member Functions

void reset ()
 

Public Attributes

Header header
 
Footer footer
 
uint32_t bytes_received
 
uint16_t checksum
 
uint16_t header_checksum
 
millis_t timeout
 
char * buffer
 

Member Function Documentation

◆ reset()

void BinaryStream::Packet::reset ( )
263  {
264  header.reset();
265  footer.reset();
266  bytes_received = 0;
267  checksum = 0;
268  header_checksum = 0;
270  buffer = nullptr;
271  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ header

Header BinaryStream::Packet::header

◆ footer

Footer BinaryStream::Packet::footer

◆ bytes_received

uint32_t BinaryStream::Packet::bytes_received

◆ checksum

uint16_t BinaryStream::Packet::checksum

◆ header_checksum

uint16_t BinaryStream::Packet::header_checksum

◆ timeout

millis_t BinaryStream::Packet::timeout

◆ buffer

char* BinaryStream::Packet::buffer
BinaryStream::Packet::header
Header header
Definition: binary_protocol.h:256
BinaryStream::Packet::header_checksum
uint16_t header_checksum
Definition: binary_protocol.h:259
BinaryStream::PACKET_MAX_WAIT
static const uint16_t PACKET_MAX_WAIT
Definition: binary_protocol.h:473
millis
uint32_t millis(void)
Definition: wiring_time.c:29
BinaryStream::Packet::bytes_received
uint32_t bytes_received
Definition: binary_protocol.h:258
BinaryStream::Packet::footer
Footer footer
Definition: binary_protocol.h:257
BinaryStream::Packet::checksum
uint16_t checksum
Definition: binary_protocol.h:259
BinaryStream::Packet::timeout
millis_t timeout
Definition: binary_protocol.h:260
BinaryStream::Packet::buffer
char * buffer
Definition: binary_protocol.h:261
BinaryStream::Packet::Header::reset
void reset()
Definition: binary_protocol.h:244