im_receive_buffer
4-36
im_receive_buffer
Purpose
This function receives the contents of a data buffer from the serial
communications port.
Syntax
#include "imt209x.h"
IM_STATUS im_receive_buffer
(IM_COM_PORT
port_id,
IM_USHORT
length,
IM_UCHAR far
*data_buffer,
IM_LTIME
timeout,
IM_USHORT far
*comm_length);
IN Parameters
port_id Identifies the communications port. Use this constant:
IM_COM1 COM1 port.
length Specifies the maximum number of bytes to receive.
data_buffer Far pointer to the data array where you want to place the
received data. This buffer must hold at least the number of bytes passed
in as length.
timeout Specifies the receive timeout period. Either enter a number from 0
to 4,294,967,294 to indicate the length of the timeout in milliseconds (55ms
granularity), or choose one of these constants:
IM_INFINITE_NET_TIMEOUT Never timeout.
IM_ZERO_TIMEOUT No wait.
OUT Parameters
comm_length Far pointer to the variable that will hold the actual number of
bytes received upon completion of the call. If IM_SUCCESS is not
returned this value will be 0.
Return Value
This function returns one of these codes:
IM_SUCCESS Successfully received data.
IM_NET_BAD_DATA Data pointer is null or invalid data length.
IM_NET_DATA_LENGTH Data buffer size is too small for frame.
IM_TIMEDOUT No data was received in the timeout period.
IM_INVALID_PORT Invalid port_id.
IM_BUFFER_OVERFLOW Receive buffer overflowed and needed to be
flushed. This error will only be returned in character mode.
Содержание Trakker T2090
Страница 1: ...TRAKKER T2090Batch Hand HeldComputer P N 067212 003 User s Manual ...
Страница 4: ......
Страница 14: ......
Страница 19: ...Getting Started 1 ...
Страница 20: ......
Страница 33: ...User Interface 2 ...
Страница 34: ......
Страница 55: ...Application Development 3 ...
Страница 56: ......
Страница 61: ...Application Functions 4 ...
Страница 62: ......
Страница 127: ...Reader Command Reference 5 ...
Страница 128: ......
Страница 145: ...Configuration Command Reference 6 ...
Страница 146: ......
Страница 187: ...BIOS Support 7 ...
Страница 188: ......
Страница 205: ...Hardware Specifications 8 ...
Страница 206: ......
Страница 212: ......
Страница 213: ...Demo Software A ...
Страница 214: ......
Страница 230: ......
Страница 231: ...Microsoft Visual C C Settings B ...
Страница 232: ......
Страница 234: ...TRAKKER T2090 Hand Held Batch Computer User s Manual B 4 Compiler Options Code Generation Select CPU 80186 80188 ...
Страница 237: ...Full ASCII Charts C ...
Страница 238: ......