Beispiel #1
0
 protected void RegisterTimer(GpioTimeBase timer)
 {
     if (!Timers.Contains(timer.Timer))
     {
         Timers.Add(timer);
     }
 }
        public void SerializeDutyCycle(BasicTypeSerializerContext context, GpioTimeBase timer)
        {
            UInt32 pulseLength = (UInt32)(dutyCycle * (float)(timer.TimerPeriod - 1));

            BasicTypeSerializer.Put(context, (byte)Identifier);
            BasicTypeSerializer.Put(context, pulseLength);
        }