beautypg.com

ClearOne Writing StreamNet User Manual

Page 60

background image

Writing StreamNet Device Drivers

D-8

All specifications subject to change without notification. All rights reserved. Copyright © 2005 NetStreams

Main +1 512.977-9393 / fax +1 512.977.9398 / Toll Free Technical Support +1 866-353-3496

3600 W. Parmer Lane, Suite 100; Austin, TX 78727 /

www.netstreams.com.

nRefreshFreqTimeout = 0

RefreshFrequency()

end

end

-- function handle_seek(command)

-- Diego Alfarache

-- 09-20-2006

-- Receive and process #SEEK commands

function handle_seek(command)

if( command == nil ) then

return

end

local AsciiMessage = ""

local dir = command.params[1]:upper()

if( dir == "DN" ) then

if( bIsV2 == true ) then

AsciiMessage = "W 1 6 2%0D"

else

AsciiMessage = "W 1 7 2%0D"

end

elseif( dir == "UP" ) then

if( bIsV2 == true ) then

AsciiMessage = "W 1 6 1%0D"

else

AsciiMessage = "W 1 7 1%0D"

end

end

WriteMessage(AsciiMessage)

-- if we are a V1 we need to update the frequency

if( false == bIsV2 ) then

nRefreshFreqTimeout = 0

RefreshFrequency()

end

end

-- function handle_scan(command)

-- Diego Alfarache

-- 09-20-2006

-- Receive and process #SCAN commands