Intermec Janus 2010 User Manual page 21

Application simulator
Hide thumbs Also See for Janus 2010:
Table of Contents

Advertisement

JANUS Application
/*Check the status of
/* the power supply.
status = im_power_status
(&ac_line, &battery,
&backup, &fuel);
printf ("Status: %4X\n",
status);
When you start the Simulator TSR, it reads the parameters from the INI
file, parses the parameter names, and saves the values into variables in
memory.
The JANUS application executes on the PC. To check the status of the
power supply, the JANUS application issues the im_power_status
function, which causes the INT 5EH interrupt to be sent to the Simulator
TSR.
The Simulator TSR uses the variables related to the interrupt and returns
their values in the appropriate parameters.
The Simulator TSR passes the values to the application. The application
accepts the information as the status and return values of the
im_power_status function call. The application continues executing.
INI File
1
Simulator TSR
Parameter
2
power_status_line
power_staus_battery
power_status_backup
power_status_batt_life
power_status_return
4
1
Getting Started
Value
0
0
0
100
0800H
3
5700U-001
1-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Janus 2020Janus application simulator

Table of Contents