public GpioPinModeOptions(GpioPinModeOptions other) : this(msclPINVOKE.new_GpioPinModeOptions__SWIG_1(GpioPinModeOptions.getCPtr(other)), true)
 {
     if (msclPINVOKE.SWIGPendingException.Pending)
     {
         throw msclPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public GpioPinModeOptionsEnumerator(GpioPinModeOptions collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public void SetRange(int index, GpioPinModeOptions values)
 {
     msclPINVOKE.GpioPinModeOptions_SetRange(swigCPtr, index, GpioPinModeOptions.getCPtr(values));
     if (msclPINVOKE.SWIGPendingException.Pending)
     {
         throw msclPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
        public GpioPinModeOptions supportedGpioPinModes(GpioConfiguration.Feature feature, byte behavior)
        {
            GpioPinModeOptions ret = new GpioPinModeOptions(msclPINVOKE.MipNodeFeatures_supportedGpioPinModes(swigCPtr, (int)feature, behavior), true);

            if (msclPINVOKE.SWIGPendingException.Pending)
            {
                throw msclPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public static GpioPinModeOptions Repeat(GpioConfiguration.PinModes value, int count)
        {
            global::System.IntPtr cPtr = msclPINVOKE.GpioPinModeOptions_Repeat((int)value, count);
            GpioPinModeOptions    ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GpioPinModeOptions(cPtr, true);

            if (msclPINVOKE.SWIGPendingException.Pending)
            {
                throw msclPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public GpioPinModeOptions GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = msclPINVOKE.GpioPinModeOptions_GetRange(swigCPtr, index, count);
            GpioPinModeOptions    ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GpioPinModeOptions(cPtr, true);

            if (msclPINVOKE.SWIGPendingException.Pending)
            {
                throw msclPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GpioPinModeOptions obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }