我想找...

搜尋

函式庫參考

目錄

EthercatMaster.stop()

[Ethercat Master]

描述

Stop the EtherCAT master, and switch the EtherCAT state machine to the Pre-Operational state.

語法

int stop();

參數

無

回傳值

回傳錯誤碼。若回傳值為零,表示此函式執行成功。

備註

This function must be called after a successful execution of EthercatMaster::start(). This function is blocking and cannot be called within the callback functions.

範例

#include "Ethercat.h"

EthercatMaster master;

void setup() {
    master.begin();
    master.start();
  
    master.stop();
    master.end();
}

void loop() {
    // ...
}   

Please see the EtherCAT Library User Manual for more QEC EtherCAT instructions and API usage.

返回頂端