Пример #1
0
        static int n_Write_arrayBI(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1)
        {
            global::Com.Hoho.Android.Usbserial.Driver.FtdiSerialDriver __this = global::Java.Lang.Object.GetObject <global::Com.Hoho.Android.Usbserial.Driver.FtdiSerialDriver> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            byte[] p0    = (byte[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(byte));
            int    __ret = __this.Write(p0, p1);

            if (p0 != null)
            {
                JNIEnv.CopyArray(p0, native_p0);
            }
            return(__ret);
        }
Пример #2
0
 static int n_SetBaudRate_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Com.Hoho.Android.Usbserial.Driver.FtdiSerialDriver __this = global::Java.Lang.Object.GetObject <global::Com.Hoho.Android.Usbserial.Driver.FtdiSerialDriver> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.SetBaudRate(p0));
 }
Пример #3
0
 static void n_Reset(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Hoho.Android.Usbserial.Driver.FtdiSerialDriver __this = global::Java.Lang.Object.GetObject <global::Com.Hoho.Android.Usbserial.Driver.FtdiSerialDriver> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Reset();
 }