//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 4.0.2
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace  Nlc {

public class SamplerConfiguration : global::System.IDisposable {
  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
  protected bool swigCMemOwn;

  internal SamplerConfiguration(global::System.IntPtr cPtr, bool cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
  }

  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SamplerConfiguration obj) {
    return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
  }

  ~SamplerConfiguration() {
    Dispose(false);
  }

  public void Dispose() {
    Dispose(true);
    global::System.GC.SuppressFinalize(this);
  }

  protected virtual void Dispose(bool disposing) {
    lock(this) {
      if (swigCPtr.Handle != global::System.IntPtr.Zero) {
        if (swigCMemOwn) {
          swigCMemOwn = false;
          NanolibPINVOKE.delete_SamplerConfiguration(swigCPtr);
        }
        swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
      }
    }
  }

  public OdIndexVector trackedAddresses {
    set {
      NanolibPINVOKE.SamplerConfiguration_trackedAddresses_set(swigCPtr, OdIndexVector.getCPtr(value));
    } 
    get {
      global::System.IntPtr cPtr = NanolibPINVOKE.SamplerConfiguration_trackedAddresses_get(swigCPtr);
      OdIndexVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdIndexVector(cPtr, false);
      return ret;
    } 
  }

  public Nlc.OdIndex triggerAddress {
    set {
      NanolibPINVOKE.SamplerConfiguration_triggerAddress_set(swigCPtr,  ref value );
    } 
		get { 
			global::System.IntPtr ptr = NanolibPINVOKE.SamplerConfiguration_triggerAddress_get(swigCPtr);
			Nlc.OdIndex ret = (Nlc.OdIndex)global::System.Runtime.InteropServices.Marshal.PtrToStructure(ptr, typeof(Nlc.OdIndex));
			return ret;
		}
	
  }

  public SamplerTriggerCondition triggerCondition {
    set {
      NanolibPINVOKE.SamplerConfiguration_triggerCondition_set(swigCPtr, (int)value);
    } 
    get {
      SamplerTriggerCondition ret = (SamplerTriggerCondition)NanolibPINVOKE.SamplerConfiguration_triggerCondition_get(swigCPtr);
      return ret;
    } 
  }

  public uint triggerValue {
    set {
      NanolibPINVOKE.SamplerConfiguration_triggerValue_set(swigCPtr, value);
    } 
    get {
      uint ret = NanolibPINVOKE.SamplerConfiguration_triggerValue_get(swigCPtr);
      return ret;
    } 
  }

  public ushort periodMilliseconds {
    set {
      NanolibPINVOKE.SamplerConfiguration_periodMilliseconds_set(swigCPtr, value);
    } 
    get {
      ushort ret = NanolibPINVOKE.SamplerConfiguration_periodMilliseconds_get(swigCPtr);
      return ret;
    } 
  }

  public ushort numberOfSamples {
    set {
      NanolibPINVOKE.SamplerConfiguration_numberOfSamples_set(swigCPtr, value);
    } 
    get {
      ushort ret = NanolibPINVOKE.SamplerConfiguration_numberOfSamples_get(swigCPtr);
      return ret;
    } 
  }

  public ushort preTriggerNumberOfSamples {
    set {
      NanolibPINVOKE.SamplerConfiguration_preTriggerNumberOfSamples_set(swigCPtr, value);
    } 
    get {
      ushort ret = NanolibPINVOKE.SamplerConfiguration_preTriggerNumberOfSamples_get(swigCPtr);
      return ret;
    } 
  }

  public SamplerMode mode {
    set {
      NanolibPINVOKE.SamplerConfiguration_mode_set(swigCPtr, (int)value);
    } 
    get {
      SamplerMode ret = (SamplerMode)NanolibPINVOKE.SamplerConfiguration_mode_get(swigCPtr);
      return ret;
    } 
  }

  public bool forceSoftwareImplementation {
    set {
      NanolibPINVOKE.SamplerConfiguration_forceSoftwareImplementation_set(swigCPtr, value);
    } 
    get {
      bool ret = NanolibPINVOKE.SamplerConfiguration_forceSoftwareImplementation_get(swigCPtr);
      return ret;
    } 
  }

  public SamplerConfiguration() : this(NanolibPINVOKE.new_SamplerConfiguration(), true) {
  }

  public static readonly uint MAX_TRACKED_ADDRESSES = NanolibPINVOKE.SamplerConfiguration_MAX_TRACKED_ADDRESSES_get();
}

}
