V1/Toolbox.NETMF.Hardware.InfraredTX/InfraredTransmitter.cs
/// <summary>
/// Send the overall output buffer composed so far
/// </summary>
/// <param name="codec">The codec used for the buffer composition</param>
Send the overall output buffer composed so far
Send the overall output buffer composed so far
internal void Send(InfraredCodecBase codec)
        {
            using (var spi = new SPI(codec.Config))
            {
                this._enable.Write(true);
                spi.WriteRead(
                    this._outputBuffer,
                    0,
                    this._outputCount,
                    null,
                    0,
                    0,
                    0);
                this._enable.Write(false);
            }
            this._lastCodec = null;
        }
internal void Send ( InfraredCodecBase codec ) { using ( var spi = new SPI ( codec . Config ) ) { this . _enable . Write ( true ) ; spi . WriteRead ( this . _outputBuffer , 0 , this . _outputCount , null , 0 , 0 , 0 ) ; this . _enable . Write ( false ) ; } this . _lastCodec = null ; }
Send the overall output buffer composed so far
Send the overall output buffer composed so far
//open the SPI using the specified configuration //enable the physical transmitter driver //shift out the whole buffer //shut down the physical driver
codec
InfraredCodecBase
The codec used for the buffer composition
The codec used for the buffer composition