Agilent Technologies A.18.00 Weather Radio User Manual


 
537
Chapter 8, Programming the Call Processing Subsystem
Example Programs
4060 Ptr_value is the value that the positive transition filter will be set to. The value is
determined by which pseudo-LED will light when the desired command is completed. For
example, a successful PAGE is indicated by the Connect pseudo-LED lighting. Therefore
the Ptr_value is set to 32 (2^5) for the Page command.
4240 Polling loops require a wait statement to allow time for the Test Set to process the Call
Processing commands.
4250 to 4280 Poll the Standard Event Status Register and the Call Processing Event Register. First check
for an error condition in the Standard Event Status Register. If an error is detected return a
zero (operation not complete). If no errors are detected then the Call Processing Event
register is checked to determine if the operation has completed. If the operation has
completed then return a 1 (operation complete). If the operation has not completed then
loop again. In a ‘real world’ situation the function should take some action if the Call
Processing subsystem never completes (if the command IF
BIT(Call_proc_even,LOG(Ptr_value)/LOG(2)) never goes to the TRUE state). This branch
is left out of the example function to minimize the number of program lines. As written, the
function assumes that the Call Processing subsystem will complete successfully and the
polling loop will be exited.
Table 53 Comments For Polling Example Program (Continued)
Program Line
Number
Comment