Example
#include <stdio.h>
#include <conio.h>
#include "mmsultra.h"
void main(void)
{
PRINTINIT pConfig;
unsigned short usStatus = 0;
short sStatus = 0;
sStatus = pclInit(NULL);
if (sStatus != 0)
printf("Init Failed\nError: %d", sStatus);
else
{
usStatus = pclGetBatteryLevel();
if (usStatus > 711)
{
usStatus = pclFeed();
if (usStatus != 0)
{
printf("Feed Error-- press any key when printer is reset.");
_getch();
pclClearError();
}
}
else
printf("Charge battery");
}
pclClose();
}
// Print data structure
// Battery level
// Command call status
// Start Print subsystem
// Get the battery level
// If level OK,
// Feed supplies
// Display low level msg
// Close Print subsystem
Function Reference 4-23