update ploc supv helper
This commit is contained in:
@ -160,6 +160,15 @@ static const size_t MAX_PACKET_SIZE = 1024;
|
||||
|
||||
static const uint8_t SPACE_PACKET_HEADER_LENGTH = 6;
|
||||
|
||||
struct UpdateParams {
|
||||
std::string file;
|
||||
uint8_t memId;
|
||||
uint32_t startAddr;
|
||||
uint32_t bytesWritten;
|
||||
uint16_t seqCount;
|
||||
bool deleteMemory;
|
||||
};
|
||||
|
||||
enum PoolIds : lp_id_t {
|
||||
NUM_TMS,
|
||||
TEMP_PS,
|
||||
@ -1247,11 +1256,14 @@ class DisableAutoTm : public ploc::SpTcBase {
|
||||
*/
|
||||
class RequestLoggingData : public ploc::SpTcBase {
|
||||
public:
|
||||
/**
|
||||
* Subapid
|
||||
*/
|
||||
enum class Sa : uint8_t {
|
||||
REQUEST_COUNTERS = 1,
|
||||
REQUEST_EVENT_BUFFERS = 2,
|
||||
CLEAR_COUNTERS = 3,
|
||||
SET_LOGGING_TOPIC = 4
|
||||
REQUEST_COUNTERS = 1, /**< REQUEST_COUNTERS */
|
||||
REQUEST_EVENT_BUFFERS = 2, /**< REQUEST_EVENT_BUFFERS */
|
||||
CLEAR_COUNTERS = 3, /**< CLEAR_COUNTERS */
|
||||
SET_LOGGING_TOPIC = 4 /**< SET_LOGGING_TOPIC */
|
||||
};
|
||||
|
||||
RequestLoggingData(ploc::SpTcParams params) : ploc::SpTcBase(params) {
|
||||
@ -1260,6 +1272,11 @@ class RequestLoggingData : public ploc::SpTcBase {
|
||||
spParams.creator.setSeqCount(DEFAULT_SEQUENCE_COUNT);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sa
|
||||
* @param tpc Topic
|
||||
* @return
|
||||
*/
|
||||
ReturnValue_t buildPacket(Sa sa, uint8_t tpc = 0) {
|
||||
auto res = checkSizeAndSerializeHeader();
|
||||
if (res != result::OK) {
|
||||
@ -1659,7 +1676,8 @@ class ExecutionReport : public VerificationReport {
|
||||
}
|
||||
default:
|
||||
sif::warning << "ExecutionReport::printStatusInformation: Invalid status code: 0x"
|
||||
<< std::hex << static_cast<uint16_t>(statusCode) << std::endl;
|
||||
<< std::hex << std::setfill('0') << std::setw(4)
|
||||
<< static_cast<uint16_t>(statusCode) << std::dec << std::endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user