paqueteCnC
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PacketExtendedHousekeeping2 Class Reference

Public Member Functions

 PacketExtendedHousekeeping2 (const Packet &packet, uint16_t structureId, uint8_t collectionInterval, uint8_t amountOfSamples, const std::vector< uint8_t > &samples, uint8_t amountOfArrays, const std::vector< std::vector< uint8_t > > &arrays)
 
PacketgetPacket ()
 Calls the packet extended basic implementation of this method.
 
PacketExtendedHousekeeping2 swapApplicationIdFields ()
 Calls the packet extended basic implementation of this method.
 
uint16_t getStructureIdentifier ()
 Calls the packet extended housekeeping implementation of this method.
 
uint8_t getCollectionInterval ()
 
void setCollectionInterval (const uint8_t newCollectionInterval)
 
uint8_t getAmountOfSamples ()
 
void setAmountOfSamples (const uint8_t newAmountOfSamples)
 Set new amount of samples. When changing this make sure that samples.size() == newAmountOfSamples or the packet wrapper will be in an incorrect state and errors will follow.
 
const std::vector< uint8_t > & getSamples ()
 
void setSamples (const std::vector< uint8_t > &newSamples)
 
void setSamples (std::vector< uint8_t > &&newSamples)
 
uint8_t getAmountOfArrays ()
 
void setAmountOfArrays (const uint8_t newAmountOfArrays)
 Set new amount of arrays. When changing this make sure that arrays.size() == newAmountOfArrays or the packet wrapper will be in an incorrect state and errors will follow.
 
const std::vector< uint8_t > & getArrays ()
 
void setArrays (const std::vector< uint8_t > &newArrays)
 
void setArrays (std::vector< uint8_t > &&newArrays)
 

Member Function Documentation

◆ getPacket()

Packet & PacketExtendedHousekeeping2::getPacket ( )

Calls the packet extended basic implementation of this method.

Returns
const Packet&

◆ setAmountOfArrays()

void PacketExtendedHousekeeping2::setAmountOfArrays ( const uint8_t  newAmountOfArrays)

Set new amount of arrays. When changing this make sure that arrays.size() == newAmountOfArrays or the packet wrapper will be in an incorrect state and errors will follow.

Parameters
newAmountOfArrays

◆ setAmountOfSamples()

void PacketExtendedHousekeeping2::setAmountOfSamples ( const uint8_t  newAmountOfSamples)

Set new amount of samples. When changing this make sure that samples.size() == newAmountOfSamples or the packet wrapper will be in an incorrect state and errors will follow.

Parameters
newAmountOfSamples

◆ setArrays()

void PacketExtendedHousekeeping2::setArrays ( const std::vector< uint8_t > &  newArrays)
Precondition
arrays.size() == newAmountOfArrays or the packet wrapper will be in an incorrect state and errors will follow.

◆ setSamples()

void PacketExtendedHousekeeping2::setSamples ( const std::vector< uint8_t > &  newSamples)
Precondition
newSamples.size() == amountOfSamples
Parameters
newSamples

◆ swapApplicationIdFields()

PacketExtendedHousekeeping2 PacketExtendedHousekeeping2::swapApplicationIdFields ( )

Calls the packet extended basic implementation of this method.

Returns
PacketExtendedHousekeeping2

The documentation for this class was generated from the following files: