[Ethercat Master]
説明
イベント・コールバック関数の登録を解除します。
構文
void detachEventCallback();
媒介変数
なし
戻り値
なし
備考
この関数は、 EthercatMaster::begin()
の前に、または、 EthercatMaster::end()
.
例
#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() { }
詳細は EtherCAT Library User Manual QEC EtherCAT命令とAPI使用法参照