mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
* Removes features in `A2BMessage` class to support API for reading 16, 24, and 32 bit samples from A2B channels * Re-organizes WAV receiving and transmitting code and API * Creates API for mapping message channels to WAV channels and vice versa for transmitting and receiving * Fixes `icsneo::Network::NetID::ExtendedData` VnetID bug for `icsneo::ExtendedDataMessage` decoding * Creates RAD-A2B sequence chart example * Fixes coremini uploading for certain devices in EEPROM by introducing `icsneo::Device::supportsEraseMemory`
34 lines
625 B
C++
34 lines
625 B
C++
#ifndef __EXTENDEDDATAMESSAGE_H_
|
|
#define __EXTENDEDDATAMESSAGE_H_
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include "icsneo/communication/message/message.h"
|
|
#include "icsneo/communication/command.h"
|
|
|
|
|
|
namespace icsneo {
|
|
|
|
class ExtendedDataMessage : public Frame {
|
|
public:
|
|
#pragma pack(push, 2)
|
|
struct ExtendedDataHeader {
|
|
ExtendedDataSubCommand subCommand;
|
|
uint32_t userValue;
|
|
uint32_t offset;
|
|
uint32_t length;
|
|
};
|
|
#pragma pack(pop)
|
|
|
|
static constexpr size_t MaxExtendedDataBufferSize = 2048;
|
|
const ExtendedDataHeader header;
|
|
|
|
ExtendedDataMessage(ExtendedDataHeader params) : header{params} {}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __cplusplus
|
|
|
|
#endif |