public static void sendWord(byte subAd, string word, int usbDevId) { Int32 wrByte; byte[] tempTx = new byte[1]; tempTx[0] = Convert.ToByte(Convert.ToUInt32(word, 2)); wrByte = USB.UsbWrt(usbDevId, subAd, tempTx, 1); }
public static void sendWord(byte subAd, byte[] stream, int nbSend, int usbDevId) { USB.UsbWrt(usbDevId, subAd, stream, nbSend); }