public static int SetGen(bool b)
 {
     return(Flex1500.WriteOp(Opcode.USB_OP_SET_GEN, Convert.ToUInt32(b), 0));
 }
 public static int Initialize()
 {
     return(Flex1500.WriteOp(Opcode.USB_OP_INITIALIZE, 0, 0));
 }
 public static int WriteSPI(byte num_bytes, byte data)
 {
     return(Flex1500.WriteOp(Opcode.USB_OP_WRITE_SPI, (uint)num_bytes, (uint)data));
 }
 public static int WriteGPIO(byte data)
 {
     return(Flex1500.WriteOp(Opcode.USB_OP_WRITE_GPIO, (uint)data, 0));
 }
 public static int WriteI2C2Value(byte addr, byte data1, byte data2)
 {
     return(Flex1500.WriteOp(Opcode.USB_OP_I2C_WRITE_2_VALUE, (uint)addr, (uint)((data1 << 8) + data2)));
 }
 public static int WriteI2CValue(byte addr, byte data)
 {
     return(Flex1500.WriteOp(Opcode.USB_OP_I2C_WRITE_VALUE, (uint)addr, (uint)data));
 }