#include <vetprot.h>
Inheritance diagram for cornelluniversity::vetserial::control_request:
Public Member Functions | ||||||||||
control_request (void) | ||||||||||
control_request (const uint8_ *in_pkt, uint32_ nbytes) | ||||||||||
virtual | ~control_request (void) | |||||||||
void | ack_request (void) | |||||||||
very thin wrapper of a common use-case; configures the header for an ACK request | ||||||||||
void | ack_response (void) | |||||||||
very thin wrapper of a common use-case; configures the header to respond to an ACK request | ||||||||||
void | nak_request (void) | |||||||||
very thin wrapper of a common use-case; configures the header for a NAK request | ||||||||||
void | nak_response (void) | |||||||||
very thin wrapper of a common use-case; configures the header to respond to a NAK request | ||||||||||
void | set_responsive (void) | |||||||||
very thin wrapper of a common use-case; configures the header to request the target to ACK or NAK | ||||||||||
virtual void | serialize (void) | |||||||||
Simply generates the header, utilizing the currently values of the private members, and leaves it in the internal buffers waiting for you to grab it. | ||||||||||
virtual void | deserialize (void) | |||||||||
parses apart a received packet into the appropriate private members for use via the typical accessor process.
|
cornelluniversity::vetserial::control_request::control_request | ( | void | ) | [inline] |
cornelluniversity::vetserial::control_request::control_request | ( | const uint8_ * | in_pkt, | |
uint32_ | nbytes | |||
) | [inline] |
virtual cornelluniversity::vetserial::control_request::~control_request | ( | void | ) | [inline, virtual] |
void cornelluniversity::vetserial::control_request::ack_request | ( | void | ) | [inline] |
very thin wrapper of a common use-case; configures the header for an ACK request
void cornelluniversity::vetserial::control_request::ack_response | ( | void | ) | [inline] |
very thin wrapper of a common use-case; configures the header to respond to an ACK request
virtual void cornelluniversity::vetserial::control_request::deserialize | ( | void | ) | [virtual] |
parses apart a received packet into the appropriate private members for use via the typical accessor process.
cornelluniversity::vetsim_badchksum | if the crc validation fails | |
cornelluniversity::vetsim_exception | if the header size is deemed irregular | |
cornelluniversity::vetsim_exception | if packet_ buffer is empty (null pointer) |
Implements cornelluniversity::vetserial::base_command.
void cornelluniversity::vetserial::control_request::nak_request | ( | void | ) | [inline] |
very thin wrapper of a common use-case; configures the header for a NAK request
void cornelluniversity::vetserial::control_request::nak_response | ( | void | ) | [inline] |
very thin wrapper of a common use-case; configures the header to respond to a NAK request
virtual void cornelluniversity::vetserial::control_request::serialize | ( | void | ) | [inline, virtual] |
Simply generates the header, utilizing the currently values of the private members, and leaves it in the internal buffers waiting for you to grab it.
Implements cornelluniversity::vetserial::base_command.
void cornelluniversity::vetserial::control_request::set_responsive | ( | void | ) | [inline] |
very thin wrapper of a common use-case; configures the header to request the target to ACK or NAK