Motorcortex Core  version: 2.7.6
ecat_coe.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_COE_H
7 #define MOTORCORTEX_CORE_ECAT_COE_H
8 
9 #include "ecat_sdobase.h"
10 #include "ecat_xmltypes.h"
11 #include <ecrt.h>
12 
13 namespace mcx::ecat {
14 
15 class Coe : public SdoBase {
16 public:
17 
18  SdoState request(EcatDirection dir) override;
19 
20  void* create(const EcatSdoConfig& sdo_config, ec_slave_config_t* slave_config) override;
21 
22 private:
23  EcatSdoConfig sdo_{};
24  ec_request_state_t state_{ec_request_state_t::EC_REQUEST_UNUSED};
25  ec_sdo_request_t* request_{};
26  size_t size_{};
27 };
28 
29 } // namespace mcx::ecat
30 
31 #endif //MOTORCORTEX_CORE_ECAT_COE_H
mcx::ecat::SdoBase
Definition: ecat_sdobase.h:19
mcx::ecat::Coe
Definition: ecat_coe.h:15
mcx::ecat::EcatSdoConfig
Definition: ecat_xmltypes.h:197