Protective Stop
Loading...
Searching...
No Matches
pstop_msg_t Struct Reference

A PSTOP message object. More...

#include <pstop_msg.h>

Collaboration diagram for pstop_msg_t:
[legend]

Public Attributes

uint8_t version
 Version of this message.
message_type_t message
 Type of message.
uint64_t stamp
 The timestamp (in milliseconds) of this message.
uint64_t received_stamp
 The last timestamp that we received from the client.
device_id_t id
 The UUID of this device.
device_id_t receiver_id
 Unique ID of the device we are sending this message to.
uint32_t heartbeat_timeout
 A timeout in milliseconds that we expect to receive heartbeats from this machine.
uint32_t counter
 An incrementing counter.
uint32_t received_counter
 The last counter we received from the client.
uint32_t padding1
 extra padding bytes
uint32_t padding2
 Reserved.
uint16_t checksum
 a CRC-16 checksum of the above values.
uint16_t calculated_checksum
 The checksum that is calculated when a PSTOP message is decoded from an array of bytes.

Detailed Description

A PSTOP message object.

With enough information to provide basic black channel support.

Member Data Documentation

◆ heartbeat_timeout

uint32_t pstop_msg_t::heartbeat_timeout

A timeout in milliseconds that we expect to receive heartbeats from this machine.

Only valid when sent from machine to operator.

◆ received_counter

uint32_t pstop_msg_t::received_counter

The last counter we received from the client.

Or 0 if we are establishing a new bonding.

◆ received_stamp

uint64_t pstop_msg_t::received_stamp

The last timestamp that we received from the client.

Or 0 if we are estabilishing a new bonding.

◆ version

uint8_t pstop_msg_t::version

Version of this message.

Currently just 0x0


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