ReadEeprom
ReadEeprom

Contains logic for the ReadEeprom Node command

Functions
buildCommand
static ByteStream buildCommand(
NodeAddress nodeAddress,
uint16 eepromAddress
)

Builds the ReadEeprom command packet

Parameters
nodeAddress

the address of the Node to build the command for

eepromAddress
uint16

the Eeprom address to read from

Returns

A ByteStream containing the command packet

Response
public
ResponsePattern
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
Response

Handles the response to the ReadEeprom Node command

Functions
Response
Response(
NodeAddress nodeAddress,
std::weak_ptr<ResponseCollectorcollector
)

Creates a EepromRead Response object

Parameters
nodeAddress

the node address to check for

collector
std::weak_ptr<ResponseCollector>

The ResponseCollector used to register and unregister the response

Variables
m_nodeAddress
NodeAddress m_nodeAddress

The node address to look for in the ReadEeprom response

eepromValue
uint16 m_eepromValue

The result eeprom value from the command.

Functions
match
virtual bool match(
const WirelessPacket &packet
) override

Checks if the WirelessPacket passed in matches the expected response pattern's bytes

Parameters
packet

The WirelessPacket in which to try to find the pattern

Returns

true if the packet matches a response pattern, false otherwise

eepromValue
uint16 eepromValue() const

Gets the result eeprom value that was read from the Node.

Returns

The eeprom value read from the Node.