ack fields improved
This commit is contained in:
parent
546db47db4
commit
cb71a18277
@ -46,18 +46,21 @@ public:
|
|||||||
sizeof(PUSTcDataFieldHeader) + 2);
|
sizeof(PUSTcDataFieldHeader) + 2);
|
||||||
|
|
||||||
enum AckField {
|
enum AckField {
|
||||||
//! Acknowledgements on all levels are expected.
|
//! No acknowledgements are expected.
|
||||||
ACK_ALL = 0b1111,
|
ACK_NONE = 0b0000,
|
||||||
//! Acknowledgements on acceptance are expected.
|
//! Acknowledgements on acceptance are expected.
|
||||||
ACK_ACCEPTANCE = 0b0001,
|
ACK_ACCEPTANCE = 0b0001,
|
||||||
//! Acknowledgements on start are expected.
|
//! Acknowledgements on start are expected.
|
||||||
ACK_START = 0b0010,
|
ACK_START = 0b0010,
|
||||||
//! Acknowledgements on step are expected.
|
//! Acknowledgements on step are expected.
|
||||||
ACK_STEP = 0b0100,
|
ACK_STEP = 0b0100,
|
||||||
//! No acknowledgements are expected.
|
//! Acknowledfgement on completion are expected.
|
||||||
ACK_NONE = 0b0000
|
ACK_COMPLETION = 0b1000
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static constexpr uint8_t ACK_ALL = ACK_ACCEPTANCE | ACK_START | ACK_STEP |
|
||||||
|
ACK_COMPLETION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the default constructor.
|
* This is the default constructor.
|
||||||
* It sets its internal data pointer to the address passed and also
|
* It sets its internal data pointer to the address passed and also
|
||||||
|
@ -46,7 +46,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
TcPacketStored(uint16_t apid, uint8_t service, uint8_t subservice,
|
TcPacketStored(uint16_t apid, uint8_t service, uint8_t subservice,
|
||||||
uint8_t sequence_count = 0, const uint8_t* data = nullptr,
|
uint8_t sequence_count = 0, const uint8_t* data = nullptr,
|
||||||
size_t size = 0, uint8_t ack = TcPacketBase::AckField::ACK_ALL);
|
size_t size = 0, uint8_t ack = TcPacketBase::ACK_ALL);
|
||||||
/**
|
/**
|
||||||
* Another constructor to create a TcPacket from a raw packet stream.
|
* Another constructor to create a TcPacket from a raw packet stream.
|
||||||
* Takes the data and adds it unchecked to the TcStore.
|
* Takes the data and adds it unchecked to the TcStore.
|
||||||
|
Loading…
Reference in New Issue
Block a user