AsyncTriggerEx_CSharp.Program.PollForTriggerReady C# (CSharp) Method

PollForTriggerReady() static private method

static private PollForTriggerReady ( ManagedCamera cam ) : bool
cam ManagedCamera
return bool
        static bool PollForTriggerReady(ManagedCamera cam)
        {
            const uint k_softwareTrigger = 0x62C;

            uint regVal = 0;

            do
            {
                regVal = cam.ReadRegister(k_softwareTrigger);
            }
            while ((regVal >> 31) != 0);

            return true;
        }