Exemple #1
0
        public static void Main(string[] args)
        {
            InitParams initParams = new InitParams();
            Library    lib        = new Library();

            lib.Initialise(ref initParams);
            lib.StartCp();
            new Runner();
            lib.Close();
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            InitParams initParams = new InitParams();

            initParams.SetMsearchTime(1);
            Library lib = new Library();

            lib.Initialise(ref initParams);
            lib.StartCombined();
            new Runner();
            lib.Close();
        }
Exemple #3
0
        public static void Main(string[] args)
        {
            // !!!! add OptionParser class rather than relying on the user guessing that the first arg
            // is an int 1..3 and the second is the path of a folder that'll serve a test UI
            InitParams initParams = new InitParams();
            Library    lib        = new Library();

            lib.Initialise(ref initParams);
            lib.StartDv();
            Console.Write("TestDvLights - starting\n");
            DeviceLights device  = new DeviceLights(Convert.ToInt32(args[0]), args[1]);
            Semaphore    blocker = new Semaphore(0, 1);

            blocker.WaitOne(60 * 60 * 1000); // make the device available for 1 hour then assume we've been forgotten about and exit
            device.Dispose();
            Console.Write("TestDvLights - exiting\n");
            lib.Close();
        }
Exemple #4
0
 public void Initialise(ref InitParams aParams)
 {
     iCallbackFreeMemory = new CallbackFreeMemory(FreeMemory);
     ZappInitParamsSetFreeExternalCallback(aParams.Handle, iCallbackFreeMemory);
     ZappLibraryInitialise(aParams.Handle);
 }