[Ethercat Master]
Description
Unregister Event Callback Function.
Syntax
void detachEventCallback();
Parameters
None.
Return Value
None.
Comment
This function must be called before EthercatMaster::begin()
or after EthercatMaster::end()
.
Example
#include "Ethercat.h" EthercatMaster master; EthercatDevice_Generic slave; void EventCallback(uint32_t eventcode){ } void setup() { master.attachEventCallback(EventCallback); master.begin(); slave.attach(0, master); master.start(); delay(5000); master.stop(); master.detachEventCallback(); master.end(); } void loop() { }
Please see the EtherCAT Library User Manual for more QEC EtherCAT instructions and API usage.