Definition at line 1849 of file drivectrl.cc.
References Error(), EventImp::Get(), and EventImp::GetSize().
Referenced by StateMachineDrive< T, S >::StateMachineDrive().
1852 return T::kSM_FatalError;
1854 const uint16_t
node = evt.
Get<uint16_t>();
1855 const uint16_t index = evt.
Get<uint16_t>(2);
1856 const uint16_t subidx = evt.
Get<uint16_t>(4);
1857 const uint64_t value = evt.
Get<uint64_t>(6);
1859 if (node!=1 && node!=3)
1861 T::Error(
"Node id must be 1 (az) or 3 (zd).");
1862 return T::GetCurrentState();
1867 T::Error(
"Subindex must not be larger than 255.");
1868 return T::GetCurrentState();
1871 fDrive.SendSdo(node, index, subidx, value);
1873 return T::GetCurrentState();
T Get(size_t offset=0) const
bool CheckEventSize(size_t has, const char *name, size_t size)
virtual size_t GetSize() const