im_transmit_buffer
4-59
4
im_transmit_buffer
Purpose
This function transmits the contents of a data buffer through the serial
communications port. This function continues operating until the buffer
transmission is complete or until an error status is detected.
Syntax
#include "imt209x.h"
IM_STATUS im_transmit_buffer
(IM_COM_PORT
port_id,
IM_USHORT
length,
IM_UCHAR far
*data_buffer,
IM_LTIME timeout);
IN Parameters
port_id Identifies the communications port. Use this constant:
IM_COM1 COM1 selected.
length Length of the data string that you want to transmit.
data_buffer Far pointer to the data array that you want to transmit.
timeout
Specifies the transmit timeout period. Either enter a number from 0
to 4,294,967.294 to indicate the length of the timeout in milliseconds, or
choose one of these constants:
IM_INFINITE_NET_TIMEOUT Never timeout.
IM_ZERO_TIMEOUT No wait.
OUT Parameters
None.
Return Value
This function returns one of these codes:
IM_SUCCESS Transmit completed.
IM_NET_BAD_DATA Data pointer is null or invalid data length.
IM_TIMEDOUT ACK not received or function timeout expired.
IM_INVALID_PORT Invalid port_id.
IM_NET_CONFIG_ERROR Incorrect configuration or hardware fault.
Notes
For IM_COM1, a numeric timeout larger than 65534 is converted to 65534.
The hardware cannot support long timeout values. The timeout granularity
is 55 ms.
Once the transmission begins, program control remains inside this function
until the transmission is completed. There is no way to check the
transmission status while transmitting.
Содержание 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: ......