Full Optimized – High Speed #4818

This commit is contained in:
rusefillc 2022-11-24 10:01:45 -05:00
parent e9a4f71b8c
commit c057834575
2 changed files with 8 additions and 0 deletions

View File

@ -212,6 +212,10 @@ void TunerStudio::handleCrc32Check(TsChannelBase *tsChannel, ts_response_format_
tsChannel->sendResponse(mode, (const uint8_t *) &crc, 4);
}
void TunerStudio::handleScatteredReadCommand(TsChannelBase* tsChannel) {
}
/**
* 'Write' command receives a single value at a given offset
* @note Writing values one by one is pretty slow
@ -658,6 +662,9 @@ int TunerStudio::handleCrcCommand(TsChannelBase* tsChannel, char *data, int inco
handleWriteValueCommand(tsChannel, TS_CRC, offset, value);
}
break;
case TS_GET_SCATTERED_GET_COMMAND:
handleScatteredReadCommand(tsChannel);
break;
case TS_CRC_CHECK_COMMAND:
handleCrc32Check(tsChannel, TS_CRC, offset, count);
break;

View File

@ -38,6 +38,7 @@ public:
void handleCrc32Check(TsChannelBase *tsChannel, ts_response_format_e mode, uint16_t offset, uint16_t count);
void handleWriteValueCommand(TsChannelBase* tsChannel, ts_response_format_e mode, uint16_t offset, uint8_t value);
void handlePageReadCommand(TsChannelBase* tsChannel, ts_response_format_e mode, uint16_t offset, uint16_t count);
void handleScatteredReadCommand(TsChannelBase* tsChannel);
private:
void sendErrorCode(TsChannelBase* tsChannel, uint8_t code);