43 Spp(uint16_t apid=0,
bool telecommand=static_cast<bool>(
PacketType::Telemetry),
bool secondary_header=
false, uint8_t version=0);
75 unsigned apid_msb : 3;
76 unsigned secondary_header_flag : 1;
79 unsigned apid_lsb : 8;
80 unsigned sequence_count_msb : 6;
81 unsigned sequence_flags : 2;
82 unsigned sequence_count_lsb : 8;
83 unsigned data_length_msb : 8;
84 unsigned data_length_lsb : 8;
91 uint8_t primary_header_bytes[6];
120 int32_t
addByte(uint8_t dbyte);
Definition: agentclass.cpp:54
uint16_t getApid()
Definition: spp.cpp:177
uint8_t getVersion()
Definition: spp.cpp:172
Spp(uint16_t apid=0, bool telecommand=static_cast< bool >(PacketType::Telemetry), bool secondary_header=false, uint8_t version=0)
Definition: spp.cpp:37
COSMOS SLIP support include file.
int32_t setApidIdle()
Definition: spp.cpp:97
int count
Definition: rw_test.cpp:36
int32_t error
Definition: spp.h:127
int32_t addByte(uint8_t dbyte)
Definition: spp.cpp:225
uint16_t getSequenceCount()
Definition: spp.cpp:197
int32_t setType(PacketType type)
Definition: spp.cpp:104
int32_t getDataBytes(vector< uint8_t > &dbytes)
Definition: spp.cpp:269
int32_t clearPacket()
Definition: spp.cpp:212
bool getSecondaryHeaderFlag()
Definition: spp.cpp:187
int32_t getHeaderBytes(uint8_t *&header)
Definition: spp.cpp:288
int32_t setApid(uint16_t apid)
Definition: spp.cpp:83
int32_t setSequenceFlags(SequenceFlags flag)
Definition: spp.cpp:144
int32_t clearHeaderBytes()
packet frame
Definition: spp.h:126
int32_t setSecondaryHeaderFlag(bool present)
Definition: spp.cpp:117
Headers and definitions common to all COSMOS.
PacketType getType()
Definition: spp.cpp:182
vector< uint8_t > data_bytes
Definition: spp.h:94
int32_t addDataByte(uint8_t dbyte)
Definition: spp.cpp:256
uint32_t getDataLength()
Definition: spp.cpp:202
PacketStage stage
Definition: spp.h:128
int32_t setDataLength(uint32_t length)
Definition: spp.cpp:157
int32_t setSequenceCount(uint16_t count)
Definition: spp.cpp:130
int32_t clearDataBytes()
Definition: spp.cpp:219
PacketStage
Definition: spp.h:61
png_uint_32 length
Definition: png.c:2173
SequenceFlags
Definition: spp.h:53
int32_t setHeaderByte(uint8_t number, uint8_t value)
Definition: spp.cpp:60
SequenceFlags getSequenceFlags()
Definition: spp.cpp:192
packet getFrame()
Definition: spp.cpp:207
int32_t setDataBytes(vector< uint8_t > &dbytes)
Definition: spp.cpp:282
PacketType
Definition: spp.h:47
primary_header primary_header_fields
Definition: spp.h:92
int32_t setVersion(uint8_t version)
Definition: spp.cpp:70