using System;
using System.Collections.Generic;
using Android.Runtime;
using Java.Interop;

namespace CN.Pda.Serialport {

	// Metadata.xml XPath class reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']"
	[global::Android.Runtime.Register ("cn/pda/serialport/SerialPort", DoNotGenerateAcw=true)]
	public partial class SerialPort : global::Java.Lang.Object {

		// Metadata.xml XPath field reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/field[@name='TNCOM_EVENPARITY']"
		[Register ("TNCOM_EVENPARITY")]
		public static int TncomEvenparity {
			get {
				const string __id = "TNCOM_EVENPARITY.I";

				var __v = _members.StaticFields.GetInt32Value (__id);
				return __v;
			}
			set {
				const string __id = "TNCOM_EVENPARITY.I";

				try {
					_members.StaticFields.SetValue (__id, value);
				} finally {
				}
			}
		}


		// Metadata.xml XPath field reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/field[@name='TNCOM_ODDPARITY']"
		[Register ("TNCOM_ODDPARITY")]
		public static int TncomOddparity {
			get {
				const string __id = "TNCOM_ODDPARITY.I";

				var __v = _members.StaticFields.GetInt32Value (__id);
				return __v;
			}
			set {
				const string __id = "TNCOM_ODDPARITY.I";

				try {
					_members.StaticFields.SetValue (__id, value);
				} finally {
				}
			}
		}

		static readonly JniPeerMembers _members = new XAPeerMembers ("cn/pda/serialport/SerialPort", typeof (SerialPort));

		internal static IntPtr class_ref {
			get { return _members.JniPeerType.PeerReference.Handle; }
		}

		[global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
		[global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
		public override global::Java.Interop.JniPeerMembers JniPeerMembers {
			get { return _members; }
		}

		[global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
		[global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
		protected override IntPtr ThresholdClass {
			get { return _members.JniPeerType.PeerReference.Handle; }
		}

		[global::System.Diagnostics.DebuggerBrowsable (global::System.Diagnostics.DebuggerBrowsableState.Never)]
		[global::System.ComponentModel.EditorBrowsable (global::System.ComponentModel.EditorBrowsableState.Never)]
		protected override global::System.Type ThresholdType {
			get { return _members.ManagedPeerType; }
		}

		protected SerialPort (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer)
		{
		}

		// Metadata.xml XPath constructor reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/constructor[@name='SerialPort' and count(parameter)=0]"
		[Register (".ctor", "()V", "")]
		public unsafe SerialPort () : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			const string __id = "()V";

			if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
				return;

			try {
				var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), null);
				SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef);
				_members.InstanceMethods.FinishCreateInstance (__id, this, null);
			} finally {
			}
		}

		// Metadata.xml XPath constructor reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/constructor[@name='SerialPort' and count(parameter)=3 and parameter[1][@type='int'] and parameter[2][@type='int'] and parameter[3][@type='int']]"
		[Register (".ctor", "(III)V", "")]
		public unsafe SerialPort (int port, int baudrate, int flags) : base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
		{
			const string __id = "(III)V";

			if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
				return;

			try {
				JniArgumentValue* __args = stackalloc JniArgumentValue [3];
				__args [0] = new JniArgumentValue (port);
				__args [1] = new JniArgumentValue (baudrate);
				__args [2] = new JniArgumentValue (flags);
				var __r = _members.InstanceMethods.StartCreateInstance (__id, ((object) this).GetType (), __args);
				SetHandle (__r.Handle, JniHandleOwnership.TransferLocalRef);
				_members.InstanceMethods.FinishCreateInstance (__id, this, __args);
			} finally {
			}
		}

		static Delegate cb_getInputStream;
#pragma warning disable 0169
		static Delegate GetGetInputStreamHandler ()
		{
			if (cb_getInputStream == null)
				cb_getInputStream = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_L) n_GetInputStream);
			return cb_getInputStream;
		}

		static IntPtr n_GetInputStream (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			return global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle (__this.InputStream);
		}
#pragma warning restore 0169

		public virtual unsafe global::System.IO.Stream InputStream {
			// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='getInputStream' and count(parameter)=0]"
			[Register ("getInputStream", "()Ljava/io/InputStream;", "GetGetInputStreamHandler")]
			get {
				const string __id = "getInputStream.()Ljava/io/InputStream;";
				try {
					var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod (__id, this, null);
					return global::Android.Runtime.InputStreamInvoker.FromJniHandle (__rm.Handle, JniHandleOwnership.TransferLocalRef);
				} finally {
				}
			}
		}

		static Delegate cb_getOutputStream;
#pragma warning disable 0169
		static Delegate GetGetOutputStreamHandler ()
		{
			if (cb_getOutputStream == null)
				cb_getOutputStream = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_L) n_GetOutputStream);
			return cb_getOutputStream;
		}

		static IntPtr n_GetOutputStream (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			return global::Android.Runtime.OutputStreamAdapter.ToLocalJniHandle (__this.OutputStream);
		}
#pragma warning restore 0169

		public virtual unsafe global::System.IO.Stream OutputStream {
			// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='getOutputStream' and count(parameter)=0]"
			[Register ("getOutputStream", "()Ljava/io/OutputStream;", "GetGetOutputStreamHandler")]
			get {
				const string __id = "getOutputStream.()Ljava/io/OutputStream;";
				try {
					var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod (__id, this, null);
					return global::Android.Runtime.OutputStreamInvoker.FromJniHandle (__rm.Handle, JniHandleOwnership.TransferLocalRef);
				} finally {
				}
			}
		}

		static Delegate cb_close_I;
#pragma warning disable 0169
		static Delegate GetClose_IHandler ()
		{
			if (cb_close_I == null)
				cb_close_I = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPI_V) n_Close_I);
			return cb_close_I;
		}

		static void n_Close_I (IntPtr jnienv, IntPtr native__this, int p0)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Close (p0);
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='close' and count(parameter)=1 and parameter[1][@type='int']]"
		[Register ("close", "(I)V", "GetClose_IHandler")]
		public virtual unsafe void Close (int p0)
		{
			const string __id = "close.(I)V";
			try {
				JniArgumentValue* __args = stackalloc JniArgumentValue [1];
				__args [0] = new JniArgumentValue (p0);
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
			} finally {
			}
		}

		static Delegate cb_irdapoweroff;
#pragma warning disable 0169
		static Delegate GetIrdapoweroffHandler ()
		{
			if (cb_irdapoweroff == null)
				cb_irdapoweroff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Irdapoweroff);
			return cb_irdapoweroff;
		}

		static void n_Irdapoweroff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Irdapoweroff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='irdapoweroff' and count(parameter)=0]"
		[Register ("irdapoweroff", "()V", "GetIrdapoweroffHandler")]
		public virtual unsafe void Irdapoweroff ()
		{
			const string __id = "irdapoweroff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_irdapoweron;
#pragma warning disable 0169
		static Delegate GetIrdapoweronHandler ()
		{
			if (cb_irdapoweron == null)
				cb_irdapoweron = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Irdapoweron);
			return cb_irdapoweron;
		}

		static void n_Irdapoweron (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Irdapoweron ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='irdapoweron' and count(parameter)=0]"
		[Register ("irdapoweron", "()V", "GetIrdapoweronHandler")]
		public virtual unsafe void Irdapoweron ()
		{
			const string __id = "irdapoweron.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_power3v3off;
#pragma warning disable 0169
		static Delegate GetPower3v3offHandler ()
		{
			if (cb_power3v3off == null)
				cb_power3v3off = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Power3v3off);
			return cb_power3v3off;
		}

		static void n_Power3v3off (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Power3v3off ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='power3v3off' and count(parameter)=0]"
		[Register ("power3v3off", "()V", "GetPower3v3offHandler")]
		public virtual unsafe void Power3v3off ()
		{
			const string __id = "power3v3off.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_power3v3on;
#pragma warning disable 0169
		static Delegate GetPower3v3onHandler ()
		{
			if (cb_power3v3on == null)
				cb_power3v3on = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Power3v3on);
			return cb_power3v3on;
		}

		static void n_Power3v3on (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Power3v3on ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='power3v3on' and count(parameter)=0]"
		[Register ("power3v3on", "()V", "GetPower3v3onHandler")]
		public virtual unsafe void Power3v3on ()
		{
			const string __id = "power3v3on.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_power_3v3off;
#pragma warning disable 0169
		static Delegate GetPower_3v3offHandler ()
		{
			if (cb_power_3v3off == null)
				cb_power_3v3off = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Power_3v3off);
			return cb_power_3v3off;
		}

		static void n_Power_3v3off (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Power_3v3off ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='power_3v3off' and count(parameter)=0]"
		[Register ("power_3v3off", "()V", "GetPower_3v3offHandler")]
		public virtual unsafe void Power_3v3off ()
		{
			const string __id = "power_3v3off.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_power_3v3on;
#pragma warning disable 0169
		static Delegate GetPower_3v3onHandler ()
		{
			if (cb_power_3v3on == null)
				cb_power_3v3on = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Power_3v3on);
			return cb_power_3v3on;
		}

		static void n_Power_3v3on (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Power_3v3on ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='power_3v3on' and count(parameter)=0]"
		[Register ("power_3v3on", "()V", "GetPower_3v3onHandler")]
		public virtual unsafe void Power_3v3on ()
		{
			const string __id = "power_3v3on.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_power_5Voff;
#pragma warning disable 0169
		static Delegate GetPower_5VoffHandler ()
		{
			if (cb_power_5Voff == null)
				cb_power_5Voff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Power_5Voff);
			return cb_power_5Voff;
		}

		static void n_Power_5Voff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Power_5Voff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='power_5Voff' and count(parameter)=0]"
		[Register ("power_5Voff", "()V", "GetPower_5VoffHandler")]
		public virtual unsafe void Power_5Voff ()
		{
			const string __id = "power_5Voff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_power_5Von;
#pragma warning disable 0169
		static Delegate GetPower_5VonHandler ()
		{
			if (cb_power_5Von == null)
				cb_power_5Von = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Power_5Von);
			return cb_power_5Von;
		}

		static void n_Power_5Von (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Power_5Von ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='power_5Von' and count(parameter)=0]"
		[Register ("power_5Von", "()V", "GetPower_5VonHandler")]
		public virtual unsafe void Power_5Von ()
		{
			const string __id = "power_5Von.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_psam_poweroff;
#pragma warning disable 0169
		static Delegate GetPsam_poweroffHandler ()
		{
			if (cb_psam_poweroff == null)
				cb_psam_poweroff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Psam_poweroff);
			return cb_psam_poweroff;
		}

		static void n_Psam_poweroff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Psam_poweroff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='psam_poweroff' and count(parameter)=0]"
		[Register ("psam_poweroff", "()V", "GetPsam_poweroffHandler")]
		public virtual unsafe void Psam_poweroff ()
		{
			const string __id = "psam_poweroff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_psam_poweron;
#pragma warning disable 0169
		static Delegate GetPsam_poweronHandler ()
		{
			if (cb_psam_poweron == null)
				cb_psam_poweron = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Psam_poweron);
			return cb_psam_poweron;
		}

		static void n_Psam_poweron (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Psam_poweron ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='psam_poweron' and count(parameter)=0]"
		[Register ("psam_poweron", "()V", "GetPsam_poweronHandler")]
		public virtual unsafe void Psam_poweron ()
		{
			const string __id = "psam_poweron.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_psampoweroff;
#pragma warning disable 0169
		static Delegate GetPsampoweroffHandler ()
		{
			if (cb_psampoweroff == null)
				cb_psampoweroff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Psampoweroff);
			return cb_psampoweroff;
		}

		static void n_Psampoweroff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Psampoweroff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='psampoweroff' and count(parameter)=0]"
		[Register ("psampoweroff", "()V", "GetPsampoweroffHandler")]
		public virtual unsafe void Psampoweroff ()
		{
			const string __id = "psampoweroff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_psampoweron;
#pragma warning disable 0169
		static Delegate GetPsampoweronHandler ()
		{
			if (cb_psampoweron == null)
				cb_psampoweron = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Psampoweron);
			return cb_psampoweron;
		}

		static void n_Psampoweron (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Psampoweron ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='psampoweron' and count(parameter)=0]"
		[Register ("psampoweron", "()V", "GetPsampoweronHandler")]
		public virtual unsafe void Psampoweron ()
		{
			const string __id = "psampoweron.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_rfidPoweroff;
#pragma warning disable 0169
		static Delegate GetRfidPoweroffHandler ()
		{
			if (cb_rfidPoweroff == null)
				cb_rfidPoweroff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_RfidPoweroff);
			return cb_rfidPoweroff;
		}

		static void n_RfidPoweroff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.RfidPoweroff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='rfidPoweroff' and count(parameter)=0]"
		[Register ("rfidPoweroff", "()V", "GetRfidPoweroffHandler")]
		public virtual unsafe void RfidPoweroff ()
		{
			const string __id = "rfidPoweroff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_rfidPoweron;
#pragma warning disable 0169
		static Delegate GetRfidPoweronHandler ()
		{
			if (cb_rfidPoweron == null)
				cb_rfidPoweron = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_RfidPoweron);
			return cb_rfidPoweron;
		}

		static void n_RfidPoweron (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.RfidPoweron ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='rfidPoweron' and count(parameter)=0]"
		[Register ("rfidPoweron", "()V", "GetRfidPoweronHandler")]
		public virtual unsafe void RfidPoweron ()
		{
			const string __id = "rfidPoweron.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_rfid_poweroff;
#pragma warning disable 0169
		static Delegate GetRfid_poweroffHandler ()
		{
			if (cb_rfid_poweroff == null)
				cb_rfid_poweroff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Rfid_poweroff);
			return cb_rfid_poweroff;
		}

		static void n_Rfid_poweroff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Rfid_poweroff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='rfid_poweroff' and count(parameter)=0]"
		[Register ("rfid_poweroff", "()V", "GetRfid_poweroffHandler")]
		public virtual unsafe void Rfid_poweroff ()
		{
			const string __id = "rfid_poweroff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_rfid_poweron;
#pragma warning disable 0169
		static Delegate GetRfid_poweronHandler ()
		{
			if (cb_rfid_poweron == null)
				cb_rfid_poweron = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Rfid_poweron);
			return cb_rfid_poweron;
		}

		static void n_Rfid_poweron (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Rfid_poweron ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='rfid_poweron' and count(parameter)=0]"
		[Register ("rfid_poweron", "()V", "GetRfid_poweronHandler")]
		public virtual unsafe void Rfid_poweron ()
		{
			const string __id = "rfid_poweron.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_scaner_poweroff;
#pragma warning disable 0169
		static Delegate GetScaner_poweroffHandler ()
		{
			if (cb_scaner_poweroff == null)
				cb_scaner_poweroff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Scaner_poweroff);
			return cb_scaner_poweroff;
		}

		static void n_Scaner_poweroff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Scaner_poweroff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='scaner_poweroff' and count(parameter)=0]"
		[Register ("scaner_poweroff", "()V", "GetScaner_poweroffHandler")]
		public virtual unsafe void Scaner_poweroff ()
		{
			const string __id = "scaner_poweroff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_scaner_poweron;
#pragma warning disable 0169
		static Delegate GetScaner_poweronHandler ()
		{
			if (cb_scaner_poweron == null)
				cb_scaner_poweron = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Scaner_poweron);
			return cb_scaner_poweron;
		}

		static void n_Scaner_poweron (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Scaner_poweron ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='scaner_poweron' and count(parameter)=0]"
		[Register ("scaner_poweron", "()V", "GetScaner_poweronHandler")]
		public virtual unsafe void Scaner_poweron ()
		{
			const string __id = "scaner_poweron.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_scaner_trig_stat;
#pragma warning disable 0169
		static Delegate GetScaner_trig_statHandler ()
		{
			if (cb_scaner_trig_stat == null)
				cb_scaner_trig_stat = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_Z) n_Scaner_trig_stat);
			return cb_scaner_trig_stat;
		}

		static bool n_Scaner_trig_stat (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			return __this.Scaner_trig_stat ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='scaner_trig_stat' and count(parameter)=0]"
		[Register ("scaner_trig_stat", "()Z", "GetScaner_trig_statHandler")]
		public virtual unsafe bool Scaner_trig_stat ()
		{
			const string __id = "scaner_trig_stat.()Z";
			try {
				var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod (__id, this, null);
				return __rm;
			} finally {
			}
		}

		static Delegate cb_scaner_trigoff;
#pragma warning disable 0169
		static Delegate GetScaner_trigoffHandler ()
		{
			if (cb_scaner_trigoff == null)
				cb_scaner_trigoff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Scaner_trigoff);
			return cb_scaner_trigoff;
		}

		static void n_Scaner_trigoff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Scaner_trigoff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='scaner_trigoff' and count(parameter)=0]"
		[Register ("scaner_trigoff", "()V", "GetScaner_trigoffHandler")]
		public virtual unsafe void Scaner_trigoff ()
		{
			const string __id = "scaner_trigoff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_scaner_trigon;
#pragma warning disable 0169
		static Delegate GetScaner_trigonHandler ()
		{
			if (cb_scaner_trigon == null)
				cb_scaner_trigon = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Scaner_trigon);
			return cb_scaner_trigon;
		}

		static void n_Scaner_trigon (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Scaner_trigon ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='scaner_trigon' and count(parameter)=0]"
		[Register ("scaner_trigon", "()V", "GetScaner_trigonHandler")]
		public virtual unsafe void Scaner_trigon ()
		{
			const string __id = "scaner_trigon.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_scanerpoweroff;
#pragma warning disable 0169
		static Delegate GetScanerpoweroffHandler ()
		{
			if (cb_scanerpoweroff == null)
				cb_scanerpoweroff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Scanerpoweroff);
			return cb_scanerpoweroff;
		}

		static void n_Scanerpoweroff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Scanerpoweroff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='scanerpoweroff' and count(parameter)=0]"
		[Register ("scanerpoweroff", "()V", "GetScanerpoweroffHandler")]
		public virtual unsafe void Scanerpoweroff ()
		{
			const string __id = "scanerpoweroff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_scanerpoweron;
#pragma warning disable 0169
		static Delegate GetScanerpoweronHandler ()
		{
			if (cb_scanerpoweron == null)
				cb_scanerpoweron = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Scanerpoweron);
			return cb_scanerpoweron;
		}

		static void n_Scanerpoweron (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Scanerpoweron ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='scanerpoweron' and count(parameter)=0]"
		[Register ("scanerpoweron", "()V", "GetScanerpoweronHandler")]
		public virtual unsafe void Scanerpoweron ()
		{
			const string __id = "scanerpoweron.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_scanertrigeroff;
#pragma warning disable 0169
		static Delegate GetScanertrigeroffHandler ()
		{
			if (cb_scanertrigeroff == null)
				cb_scanertrigeroff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Scanertrigeroff);
			return cb_scanertrigeroff;
		}

		static void n_Scanertrigeroff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Scanertrigeroff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='scanertrigeroff' and count(parameter)=0]"
		[Register ("scanertrigeroff", "()V", "GetScanertrigeroffHandler")]
		public virtual unsafe void Scanertrigeroff ()
		{
			const string __id = "scanertrigeroff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_scanertrigeron;
#pragma warning disable 0169
		static Delegate GetScanertrigeronHandler ()
		{
			if (cb_scanertrigeron == null)
				cb_scanertrigeron = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Scanertrigeron);
			return cb_scanertrigeron;
		}

		static void n_Scanertrigeron (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Scanertrigeron ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='scanertrigeron' and count(parameter)=0]"
		[Register ("scanertrigeron", "()V", "GetScanertrigeronHandler")]
		public virtual unsafe void Scanertrigeron ()
		{
			const string __id = "scanertrigeron.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_setGPIOhigh_I;
#pragma warning disable 0169
		static Delegate GetSetGPIOhigh_IHandler ()
		{
			if (cb_setGPIOhigh_I == null)
				cb_setGPIOhigh_I = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPI_V) n_SetGPIOhigh_I);
			return cb_setGPIOhigh_I;
		}

		static void n_SetGPIOhigh_I (IntPtr jnienv, IntPtr native__this, int p0)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.SetGPIOhigh (p0);
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='setGPIOhigh' and count(parameter)=1 and parameter[1][@type='int']]"
		[Register ("setGPIOhigh", "(I)V", "GetSetGPIOhigh_IHandler")]
		public virtual unsafe void SetGPIOhigh (int p0)
		{
			const string __id = "setGPIOhigh.(I)V";
			try {
				JniArgumentValue* __args = stackalloc JniArgumentValue [1];
				__args [0] = new JniArgumentValue (p0);
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
			} finally {
			}
		}

		static Delegate cb_setGPIOlow_I;
#pragma warning disable 0169
		static Delegate GetSetGPIOlow_IHandler ()
		{
			if (cb_setGPIOlow_I == null)
				cb_setGPIOlow_I = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPI_V) n_SetGPIOlow_I);
			return cb_setGPIOlow_I;
		}

		static void n_SetGPIOlow_I (IntPtr jnienv, IntPtr native__this, int p0)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.SetGPIOlow (p0);
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='setGPIOlow' and count(parameter)=1 and parameter[1][@type='int']]"
		[Register ("setGPIOlow", "(I)V", "GetSetGPIOlow_IHandler")]
		public virtual unsafe void SetGPIOlow (int p0)
		{
			const string __id = "setGPIOlow.(I)V";
			try {
				JniArgumentValue* __args = stackalloc JniArgumentValue [1];
				__args [0] = new JniArgumentValue (p0);
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
			} finally {
			}
		}

		static Delegate cb_test_arrayB;
#pragma warning disable 0169
		static Delegate GetTest_arrayBHandler ()
		{
			if (cb_test_arrayB == null)
				cb_test_arrayB = JNINativeWrapper.CreateDelegate ((_JniMarshal_PPL_V) n_Test_arrayB);
			return cb_test_arrayB;
		}

		static void n_Test_arrayB (IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			var p0 = (byte[]) JNIEnv.GetArray (native_p0, JniHandleOwnership.DoNotTransfer, typeof (byte));
			__this.Test (p0);
			if (p0 != null)
				JNIEnv.CopyArray (p0, native_p0);
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='test' and count(parameter)=1 and parameter[1][@type='byte[]']]"
		[Register ("test", "([B)V", "GetTest_arrayBHandler")]
		public virtual unsafe void Test (byte[] p0)
		{
			const string __id = "test.([B)V";
			IntPtr native_p0 = JNIEnv.NewArray (p0);
			try {
				JniArgumentValue* __args = stackalloc JniArgumentValue [1];
				__args [0] = new JniArgumentValue (native_p0);
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, __args);
			} finally {
				if (p0 != null) {
					JNIEnv.CopyArray (native_p0, p0);
					JNIEnv.DeleteLocalRef (native_p0);
				}
				global::System.GC.KeepAlive (p0);
			}
		}

		static Delegate cb_usbOTGpowerOff;
#pragma warning disable 0169
		static Delegate GetUsbOTGpowerOffHandler ()
		{
			if (cb_usbOTGpowerOff == null)
				cb_usbOTGpowerOff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_UsbOTGpowerOff);
			return cb_usbOTGpowerOff;
		}

		static void n_UsbOTGpowerOff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.UsbOTGpowerOff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='usbOTGpowerOff' and count(parameter)=0]"
		[Register ("usbOTGpowerOff", "()V", "GetUsbOTGpowerOffHandler")]
		public virtual unsafe void UsbOTGpowerOff ()
		{
			const string __id = "usbOTGpowerOff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_usbOTGpowerOn;
#pragma warning disable 0169
		static Delegate GetUsbOTGpowerOnHandler ()
		{
			if (cb_usbOTGpowerOn == null)
				cb_usbOTGpowerOn = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_UsbOTGpowerOn);
			return cb_usbOTGpowerOn;
		}

		static void n_UsbOTGpowerOn (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.UsbOTGpowerOn ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='usbOTGpowerOn' and count(parameter)=0]"
		[Register ("usbOTGpowerOn", "()V", "GetUsbOTGpowerOnHandler")]
		public virtual unsafe void UsbOTGpowerOn ()
		{
			const string __id = "usbOTGpowerOn.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_zigbeepoweroff;
#pragma warning disable 0169
		static Delegate GetZigbeepoweroffHandler ()
		{
			if (cb_zigbeepoweroff == null)
				cb_zigbeepoweroff = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Zigbeepoweroff);
			return cb_zigbeepoweroff;
		}

		static void n_Zigbeepoweroff (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Zigbeepoweroff ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='zigbeepoweroff' and count(parameter)=0]"
		[Register ("zigbeepoweroff", "()V", "GetZigbeepoweroffHandler")]
		public virtual unsafe void Zigbeepoweroff ()
		{
			const string __id = "zigbeepoweroff.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

		static Delegate cb_zigbeepoweron;
#pragma warning disable 0169
		static Delegate GetZigbeepoweronHandler ()
		{
			if (cb_zigbeepoweron == null)
				cb_zigbeepoweron = JNINativeWrapper.CreateDelegate ((_JniMarshal_PP_V) n_Zigbeepoweron);
			return cb_zigbeepoweron;
		}

		static void n_Zigbeepoweron (IntPtr jnienv, IntPtr native__this)
		{
			var __this = global::Java.Lang.Object.GetObject<global::CN.Pda.Serialport.SerialPort> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
			__this.Zigbeepoweron ();
		}
#pragma warning restore 0169

		// Metadata.xml XPath method reference: path="/api/package[@name='cn.pda.serialport']/class[@name='SerialPort']/method[@name='zigbeepoweron' and count(parameter)=0]"
		[Register ("zigbeepoweron", "()V", "GetZigbeepoweronHandler")]
		public virtual unsafe void Zigbeepoweron ()
		{
			const string __id = "zigbeepoweron.()V";
			try {
				_members.InstanceMethods.InvokeVirtualVoidMethod (__id, this, null);
			} finally {
			}
		}

	}
}
