[Ethercat Master]
Description
Stop the EtherCAT master, and switch the EtherCAT state machine to the Pre-Operational state.
Syntax
int stop();
Parameters
None.
Return Value
Return an error code. If the returned value is zero, it indicates a successful execution of this function.
Comment
This function must be called after a successful execution of EthercatMaster::start(). This function is blocking and cannot be called within the callback functions.
Example
#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.