DR-U-USB/DR-E-USB RLMXX0CLASS  GT20171121-1
Signals | Public Member Functions | List of all members
BSP_Serial Class Reference

Class library for serial communication. More...

#include <bsp_serial.h>

Inheritance diagram for BSP_Serial:

Signals

void siglostconnection ()
 

Public Member Functions

void init_Serial (const char *port, qint32 speed, qint32 flow, qint32 dir=0)
 
void close_Serial (void)
 
qint32 BSP_Ser_WrByte (const QByteArray &wb)
 
quint8 BSP_Ser_RdByte (quint8 *status)
 
quint8 BSP_Ser_RSelect (quint32 t)
 
qint32 BSP_Ser_ByteAvailable ()
 
bool isopen (void)
 
void clearbuffers (quint8 direction)
 
qint32 getFd ()
 

Detailed Description

Class library for serial communication.

Operating System independent implementation for serial communication over RS232.

Mainly used functions are:
init_Serial(port,speed,flow)
port : "\\\\.\\COM1" or "/dev/ttyUSB0" (windows vs. unix)
speed : [1..5] with 1 = 9600 2 = 19200 3 = 38400 4 = 57600 5 = 115200
flow : [0..1] with 0 = no flow control , 1 = flow control
default values used with GTSYS Readers DR-U-USB, DR-E-USB: speed=4, flow=0

close_Serial()

Please refer to the sample code shipped with the RFID reader.


The documentation for this class was generated from the following file: