Loading...
Searching...
No Matches
Classes | Enumerations
SerialPort.h File Reference

Provides the BSerialPort class and its supporting enumerations. More...

Classes

class  BSerialPort
 BSerialPort provides an interface for communicating with devices connected through a serial port. More...
 

Enumerations

enum  {
  B_NOFLOW_CONTROL = 0 ,
  B_HARDWARE_CONTROL = 0x00000001 ,
  B_SOFTWARE_CONTROL = 0x00000002
}
 
enum  data_bits {
  B_DATA_BITS_7 ,
  B_DATA_BITS_8
}
 
enum  data_rate {
  B_0_BPS = 0 ,
  B_50_BPS ,
  B_75_BPS ,
  B_110_BPS ,
  B_134_BPS ,
  B_150_BPS ,
  B_200_BPS ,
  B_300_BPS ,
  B_600_BPS ,
  B_1200_BPS ,
  B_1800_BPS ,
  B_2400_BPS ,
  B_4800_BPS ,
  B_9600_BPS ,
  B_19200_BPS ,
  B_38400_BPS ,
  B_57600_BPS ,
  B_115200_BPS ,
  B_230400_BPS ,
  B_31250_BPS
}
 
enum  parity_mode {
  B_NO_PARITY ,
  B_ODD_PARITY ,
  B_EVEN_PARITY
}
 
enum  stop_bits {
  B_STOP_BITS_1 ,
  B_STOP_BITS_2
}
 

Detailed Description

Provides the BSerialPort class and its supporting enumerations.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
B_NOFLOW_CONTROL 

No flow control is performed. The communication may fail if the transmitter sends data faster than the receiver is able to process, unless additional preventing measures are taken.

Since
BeOS R3
B_HARDWARE_CONTROL 

The flow control is performed using the Request To Send (RTS) and Clear To Send (CTS) pins.

Since
BeOS R3
B_SOFTWARE_CONTROL 

The flow control is done via software, using ASCII control characters XON and XOFF.

Since
BeOS R3

◆ data_bits

enum data_bits
Enumerator
B_DATA_BITS_7 

Each character comprises 7 bits.

Since
BeOS R3
B_DATA_BITS_8 

Each character comprises 8 bits.

Since
BeOS R3

◆ data_rate

enum data_rate
Enumerator
B_0_BPS 

Instructs the port to "hang up".

Since
BeOS R3
B_50_BPS 

Represents a data rate of 50 bits per second.

Since
BeOS R3
B_75_BPS 

Represents a data rate of 75 bits per second.

Since
BeOS R3
B_110_BPS 

Represents a data rate of 110 bits per second.

Since
BeOS R3
B_134_BPS 

Represents a data rate of 134 bits per second.

Since
BeOS R3
B_150_BPS 

Represents a data rate of 150 bits per second.

Since
BeOS R3
B_200_BPS 

Represents a data rate of 200 bits per second.

Since
BeOS R3
B_300_BPS 

Represents a data rate of 300 bits per second.

Since
BeOS R3
B_600_BPS 

Represents a data rate of 600 bits per second.

Since
BeOS R3
B_1200_BPS 

Represents a data rate of 1200 bits per second.

Since
BeOS R3
B_1800_BPS 

Represents a data rate of 1800 bits per second.

Since
BeOS R3
B_2400_BPS 

Represents a data rate of 2400 bits per second.

Since
BeOS R3
B_4800_BPS 

Represents a data rate of 4800 bits per second.

Since
BeOS R3
B_9600_BPS 

Represents a data rate of 9600 bits per second.

Since
BeOS R3
B_19200_BPS 

Represents a data rate of 19200 bits per second.

Since
BeOS R3
B_38400_BPS 

Represents a data rate of 38400 bits per second.

Since
BeOS R3
B_57600_BPS 

Represents a data rate of 57600 bits per second.

Since
BeOS R3
B_115200_BPS 

Represents a data rate of 115200 bits per second.

Since
BeOS R3
B_230400_BPS 

Represents a data rate of 230400 bits per second.

Since
BeOS R3
B_31250_BPS 

Represents a data rate of 31250 bits per second. This data rate is mostly used for communications of MIDI messages.

Since
BeOS R3

◆ parity_mode

Enumerator
B_NO_PARITY 

No parity bit is sent.

Since
BeOS R3
B_ODD_PARITY 

A parity bit is appended and set to have an odd number of "1" bits in the transmission.

Since
BeOS R3
B_EVEN_PARITY 

A parity bit is appended and set to have an even number of "1" bits in the transmission.

Since
BeOS R3

◆ stop_bits

enum stop_bits
Enumerator
B_STOP_BITS_1 

Stops are made of one bit. Alias: B_STOP_BIT_1.

Since
BeOS R3
B_STOP_BITS_2 

Stops are made of two bits.

Since
BeOS R3