| Description
| This function returns the version of the ROM of the handheld terminal. The version is returned in an 8 character long string, and is terminated by the null character '\0'. The first and third character of the version defines the terminal type, the second character defines the software type (in this case A, ROM firmware)
| Code
| Terminal
|
| XAC
| OPH1004 & H13
|
| NONE
| OPH1003. The ROM version cannot be returned, but for compatibility reasons, NONE is returned.
|
| CAG
| PHL1700-1MB
|
| CAH
| PHL1700-2MB
|
| CAQ
| DWT7133
|
| CAW
| PHL2700
|
| CAX
| PHL1300
|
| LAB
| OPL97xx, DCL153x
|
Examples of version strings are:
CAQV0100 = DWT7133 ROM code, version 1.00
LAB21325 = OPL9723 ROM code, special version 2132, revision 5
|
| Example
| #include "lib.h"
#include <stdio.h>
void main( void )
{
static char os[8+1], rom[8+1];
int key;
resetkey();
printf("\fPress ENT key");
while( 1 )
{
if( (key = getchar()) != EOF)
{
resetkey();
switch( key )
{
case ENT_KEY:
sound( TSTANDARD, VHIGH, SHIGH, 0);
version_rom( rom );
version_os( os );
printf("\nROM = %s", rom);
printf("\nO/S = %s", os);
break;
default:
sound( TCLICK, VHIGH, SLOW, 0);
break;
}
}
idle();
}
}
|