GetDeviceDescriptorSets
GetDeviceDescriptorSets

Contains the logic for the Inertial "Get Device Descriptor Sets" command

Constants
Packet Bytes
CMD_ID  = CMD_GET_DESCRIPTOR_SETS

The InertialTypes::Command for this command

FIELD_DATA_BYTE  = 0x82

The Data Field Descriptor byte

Functions
buildCommand
static ByteStream buildCommand()

Builds the command packet

Returns

A ByteStream containing the Inertial GetDeviceDescriptorSets command packet

Response
public
GenericInertialCommand.​Response
ResponsePattern
Response

Handles the response to the GetDeviceDescriptorSets command

Functions
Response
Response(
std::weak_ptr<ResponseCollectorcollector
)

Creates a Response object

Parameters
collector
std::weak_ptr<ResponseCollector>

The ResponseCollector used to register and unregister the response

match_data
virtual bool match_data(
const InertialDataField &field
) override

Attempts to match an InertialDataField to the expected data field response.

Returns

true if the field matches the expected data, false if it does not.

parseResponse
std::vector<uint16> parseResponse(
const GenericInertialCommandResponse &response
) const

Parses a successfully matched response for the GetDeviceDescriptorSets command.

Parameters
response

The GenericInertialCommandResponse that matches the data field for this response.

Returns

The descriptor sets parsed from the response.