Chapter 3 Terminal Specific Function Library
101
3.11 Communication Ports
There are at least two communication (COM) ports on each terminal, namely
COM1
and
COM2
. The user has to call
SetCommType()
to set up the communication type for the COM
ports before using them.
3.11.1 Port Mapping
The following table shows the mapping of the communication (COM) ports.
Model#
COM1
COM2
Optimus S
Serial IR, IrDA
Bluetooth (SPP/DUN)
Optimus R
RS-232, Serial IR, IrDA
Bluetooth (SPP/DUN)
Specifying which type of interface is to be used, user can use the same commands to open,
close, read, and write the data via different interfaces: RS-232, Serial IR, IrDA, or
Bluetooth (SPP/DUN).
3.11.2 Receive & Transmit Buffers
Receive Buffer
A 256 byte FIFO buffer is allocated for each port. The data successfully received is
stored in this buffer sequentially (if any error occurs, e. g. framing, parity error, etc.,
the data is simply discarded). However, if the buffer is already full, the incoming
data will be discarded and an overrun flag is set to indicate this error.
Transmit Buffer
The system does not allocate any transmit buffer. It simply records the pointer of the
string to be sent. The transmission stops when a null character (0x00) is
encountered.
The application program must allocate its own transmit buffer and not to modify it
during transmission.
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...