Beispiel #1
0
        public string Send()
        {
            XLDefine.XL_Status status;
            status = driver.XL_LinSendRequest(portHandle, currentAccessMask, linSlaveId, 0);
            string message = "linSlaveId: " + linSlaveId + ", accessMask: " + currentAccessMask + " data " + "porthHandle " + portHandle;

            foreach (byte b in linData)
            {
                message += b.ToString().PadLeft(4) + "   ";
            }
            message += ": " + status.ToString();
            DriverAction(message, status, false);
            return(message);
        }