一、qt Modbus crc quint16 MasterModbus::getCrc(QByteArray arr) { quint16 res = 0xffff; int index=0; while(index