V1/Toolbox.NETMF.Hardware.InfraredTX/InfraredCodecSonySIRC.cs
/// <summary>
/// Provide the modulation for the logic bit
/// </summary>
/// <param name="value">The logic value to be modulated</param>
Provide the modulation for the logic bit
Provide the modulation for the logic bit
private void Modulate(bool value)
        {
            if (value)
            {
                this.TotalPulseCount = 72;
                this.InitialPulseCount = 48;
                this.FinalPulseCount = 0;
            }
            else
            {
                this.TotalPulseCount = 48;
                this.InitialPulseCount = 24;
                this.FinalPulseCount = 0;
            }
            this.Transmitter
                .Append(this);
        }
private void Modulate ( bool value ) { if ( value ) { this . TotalPulseCount = 72 ; this . InitialPulseCount = 48 ; this . FinalPulseCount = 0 ; } else { this . TotalPulseCount = 48 ; this . InitialPulseCount = 24 ; this . FinalPulseCount = 0 ; } this . Transmitter . Append ( this ) ; }
Provide the modulation for the logic bit
Provide the modulation for the logic bit
//each pulse is 25us (=1/40kHz), thus a period of 600us is 24 pulses //logic "ONE": 48 pulses + 24 blanks = 72 as total //logic "ZERO": 24 pulses + 24 blanks = 48 as total //append the defined pattern to the stream
value
bool
The logic value to be modulated
The logic value to be modulated