You can stop script execution at any time.
Exit
Example
Main
{
Loop( 100 )
{
Send TX_PACKET
}
# Stop script execution after sending 100 packets.
Exit
Send TX_PACKET# Note: This instruction will not execute.
}
While_Condition Instruction
You can run some instructions in a loop while a condition is true.
Main
{
ConditionRegisterWMRxHdr ( HDR_COND )
{
# Header Mask/Match
PLCP
{
DestAddr = 0xAABB
SrcAddr = 0xBEEF
}
}
While_Condition( HDR_COND )
{
Send TX_FRAME
Send TX_FRAME
}
}