PAN4620 802.15.4 and Bluetooth LE Module
6 Regulatory and Certification Information
Integration Guide Rev. 1.0
Page 37
if
((testChannel == 26)&&(testPower > 18)){
testPower = 18;
}
break
;
case
'w'
:
if
(testChannel == gChannel11_c)
{
testChannel = (
channels_t
)gTotalChannels;
}
else
{
testChannel--;
}
if
((testChannel == 26)&&(testPower > 18)){
testPower = 18;
}
break
;
case
'a'
:
te+;
if
(testChannel == 26){
if
((0x12 ) < testPower)
{
testPower = gMinOutputPower_c;
}
}
else
{
if
(gMaxOutputPower_c < testPower)
{
testPower = gMinOutputPower_c;
}
}
break
;
case
's'
:
if
(testChannel == 26){
if
(testPower == gMinOutputPower_c)
{
testPower = 0x12;
}
else
{
testPower--;
}
}
else
{
if
(testPower == gMinOutputPower_c)
{
testPower = gMaxOutputPower_c;
}
else
{
testPower--;
}
}
break
;