Paxar Gold 6037EX Programmer's Manual page 70

Paxar printer programmer's manual
Table of Contents

Advertisement

Example
#include <conio.h>
#include <stdio.h>
#include "mmsultra.h"
void main(void)
{
unsigned short usType = 0;
PRINTINIT pConfig;
unsigned short usStatus = 0;
short sStatus = 0;
sStatus = pc
if (sStatus != 0)
printf("Init Failed\nError: %d", sStatus);
else {
usStatus = pclGetBatteryLevel();
if (usStatus <= 711)
printf("Charge your battery");
else {
usType = pclGetSupplyType();
switch (usType) {
case MMS_LOW_ENERGY:
case MMS_MEDIUM_ENERGY:
case MMS_HIGH_ENERGY:
default:
}
}
}
pclClose();
}
4-34
Programmer's Manual
l
Init(NULL);
printf("Using regular paper");
break;
printf("Using fax paper");
break;
printf("Using synthetic paper");
break;
printf("Error-- press any key when reset.");
_getch();
pclClearError();
// Supply type
// Print data structure
// Battery level
// Command calls status
// Start Print subsystem
// Check battery
// Get supply type
// Display result
// Close Print subsystem

Advertisement

Table of Contents
loading

This manual is also suitable for:

Monarch pathfinder ultra gold 6037ex

Table of Contents