Ejemplo n.º 1
0
        public bool SetChannels()
        {
            short channel;
            short ok = 0;

            for (channel = 0; channel <= USBTC08_MAX_CHANNELS; channel++)
            {
                ok = Imports.TC08SetChannel(m_handle, channel, TC_TYPE_K);
                if (ok != 1)
                {
                    return(false);
                }
            }

            return(ok == 1? true : false);
        }
Ejemplo n.º 2
0
 public bool SetChannels(short channel)
 {
     return(Imports.TC08SetChannel(m_handle, (short)(channel - 1), TC_TYPE_K) == 1 ? true : false);
 }