What Is The Psk Library?; Communications Functions - Intermec 5055 Reference Manual

Programmer's software kit
Hide thumbs Also See for 5055:
Table of Contents

Advertisement

This chapter explains the types of functions included in the PSK library and lists the
Intermec-certified C runtime library functions. Refer to this chapter for guidance in
selecting Intermec functions and valid Microsoft C functions.

What Is the PSK Library?

The 5055 PSK is a library of C functions for programming the 5055 working in DOS.
You can program a 5055 to display prompts and error messages, to collect and display
data, and to transmit data to a DCS 30X or a host. You can also design beep sequences
for audio feedback.
The PSK functions work with most standard Microsoft C functions. You can create
complex applications that collect, store, manipulate, and transmit data to meet your
system needs.

Communications Functions

Use the communications functions to send or receive data through a communications
port, to check the buffer status for a port, or to cancel a transmission. You can transmit
and receive the contents of a buffer or a file. You can also receive data or one or more
characters from the keyboard, scanner, or communications port. You can specify
several input sources, and then test for a specific source before acting on the input.
You can transmit a maximum of 1024 bytes in one record.
The PSK includes these communications functions:
im_cancel_tx_buffer
im_cancel_rx_buffer
im_get_tx_status
im_irl_v
im_receive_buffer
im_receive_field
Example: Receiving Data From the NET Port or From the Keyboard
// This segment waits for input, and then makes it available by calling
// im_receive_input( ).
//
// Use this method when you want to receive input from multiple sources and you
// don't know the input source.
#include "im5055.h"
void main()
{
Programming Guidelines
im_receive_input
im_transmit_buffer
im_xm_receive_file
im_xm_transmit_file
im_xm1k_receive_file
im_xm1k_transmit_file
2
2-3

Advertisement

Table of Contents
loading

Table of Contents