[Define]

// find channel
All_ChnlAvailable        1
AccelerometerXYZ         2
AccelerometerWakeUp      3
AccelerometerDoubleTap   4
Orientation_Chnl         5
Rotation_Chnl            6
Invalid_Chnl             9 

// get_data
Channel_index            0
Stop_Listen_Data         0
Stop_Listen_Prop         1
Stop_Listen_Cond         2
Stop_Chnl_Change         3  
Inv_Channel_index        9               

// get_property
DataRate                 2
Availability             4
MeasureRange             5
ChannelDataFormat        6
ScaledRange              7
ChannelAccuracy          8
ChannelScale             9
ChannelUnit              16
SensorModel              17
ConnectionType           18
Description              19

// set_property
Item_Index               1

// modify cond set
Add_set                  0
Remove_set               1

or                       0
and                      1

SingleCond               0
LowerLimit               1
UpperLimit               2
Binary                   3

AxisX                    1
AxisY                    2
AxisZ                    3

down                     2

[Enddefine]

// ******************** FIND CHANNELS **************************

[Test]
title Find All 
create tsensorservice_test foobar
foobar FindChannels  All_ChnlAvailable
delete foobar
[Endtest]


[Test]
title Find AccXYZ
create tsensorservice_test foobar
foobar FindChannels  AccelerometerXYZ
delete foobar
[Endtest]


[Test]
title Find AccDoubleTap
create tsensorservice_test foobar
foobar FindChannels  AccelerometerDoubleTap
delete foobar
[Endtest]


[Test]
title Find Orientation
create tsensorservice_test foobar
foobar FindChannels  Orientation_Chnl
delete foobar
[Endtest]


[Test]
title Find Rotation
create tsensorservice_test foobar
foobar FindChannels  Rotation_Chnl
delete foobar
[Endtest]


[Test]
title Find Non-supported
create tsensorservice_test foobar
foobar FindChannels  Invalid_Chnl  
delete foobar
[Endtest]


[Test]
title Find Invalid
create tsensorservice_test foobar
foobar FindChannels  -9
delete foobar
[Endtest]


// ******************** STOP CHANNEL **************************

[Test]
title Stop(0) without Find
create tsensorservice_test foobar
foobar StopChannel  Stop_Listen_Data  -6
delete foobar
[Endtest]


[Test]
title Stop(1) without Find
create tsensorservice_test foobar
foobar StopChannel  Stop_Listen_Prop  -6
delete foobar
[Endtest]


[Test]
title Stop(2) without Find
create tsensorservice_test foobar
foobar StopChannel  Stop_Listen_Cond  -6
delete foobar
[Endtest]


[Test]
title Stop(3) without Find
create tsensorservice_test foobar
foobar StopChannel  Stop_Chnl_Change  -6
delete foobar
[Endtest]


[Test]
title Stop(4) without Find
create tsensorservice_test foobar
foobar StopChannel  4  -6
delete foobar
[Endtest]


// ******************** IS CHANNEL OPEN **************************

[Test]
title IsChnlOpen GetProp
create tsensorservice_test foobar
foobar IsChnlOpen  AccelerometerXYZ  Channel_index  2  0
delete foobar
[Endtest]

[Test]
title IsChnlOpen GetData
create tsensorservice_test foobar
foobar IsChnlOpen  AccelerometerXYZ  Channel_index  4  -11
delete foobar
[Endtest]


