我有一个结构
struct PTC_ConfigurationH20
{
float period ;
PTC_ConfigurationH20Probe probe[2] ;
uint32_t padding ;
}PTC_PACK;
struct PTC_ConfigurationH20Probe
{
uint32_t probeSerialNumber;
uint8_t probeType;
uint8_t range;
uint8_t mode;
uint8_t padding1;
PTC_H20PIDParameters pid;
uint32_t padding;
};
我将上述 PTC_ConfigurationH20 结构数据读取为
H20::PTC_ConfigurationH20* tempConfiguration
= reinterpret_cast<H20::PTC_ConfigurationH20*>(message->GetData());
我需要将探针 [0] 的对象 pid 的指针传递给函数
bool SetPIDConfiguration(uint8_t probenumber, const H20::PTC_H20PIDParameters& calib,
PTC_Return* ret);
请帮忙