Motorcortex Core  version: 2.7.6
ecat_sdobase.h
1 /*
2  * Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3  * All rights reserved. Copyright (c) 2015 - 2020 VECTIONEER.
4  */
5 
6 #ifndef MOTORCORTEX_CORE_ECAT_SDOBASE_H
7 #define MOTORCORTEX_CORE_ECAT_SDOBASE_H
8 
9 #include "ecat_state.h"
10 #include "ecat_xmltypes.h"
11 
12 struct ec_slave_config;
13 typedef struct ec_slave_config ec_slave_config_t;
14 
15 namespace mcx::ecat {
16 
17 struct EcatSdoConfig;
18 
19 class SdoBase {
20 public:
21  virtual SdoState request(EcatDirection dir) = 0;
22 
23  virtual void* create(const EcatSdoConfig& sdo_config, ec_slave_config_t* slave_config) = 0;
24 
25  virtual ~SdoBase() = default;
26 
27  void* getDataPtr() { return data_ptr_; }
28 
29 protected:
30  uint8_t* data_ptr_{};
31 };
32 
33 } // namespace mcx::ecat
34 
35 #endif // MOTORCORTEX_CORE_ECAT_SDOBASE_H
mcx::ecat::SdoBase
Definition: ecat_sdobase.h:19
mcx::ecat::EcatSdoConfig
Definition: ecat_xmltypes.h:197