0 工具准备
1.SOEM-master-1.4.0源码
1 ecx_detect_slaves函数总览
/*** @brief 检测从站数量* * @param context 句柄* @return int 从站数量*/
int ecx_detect_slaves(ecx_contextt *context)
{uint8 b;uint16 w;int wkc;/* make special pre-init register writes to enable MAC[1] local administered bit ** setting for old netX100 slaves *//* 进行特殊的预初始化寄存器写操作,以为旧的ne