This section lists all the constants and types defined for the BJoystick, BSerialPort, BDigitalPort, BA2D, and BD2A classes--though, in fact, only the BSerialPort class relies on any defined constants or types. Everything listed here is explained more fully in the descriptions of the member functions of that class.
Declared in: <device/SerialPort.h>
Enumerated constant |
---|
B_DATA_BITS_7 |
B_DATA_BITS_8 |
These constants name the possible number of data bits in a serial unit.
See also: BSerialPort::SetDataBits()
Declared in: <device/SerialPort.h>
Enumerated constant | Enumerated constant |
---|---|
B_0_BPS | B_1800_BPS |
B_50_BPS | B_2400_BPS |
B_75_BPS | B_4800_BPS |
B_110_BPS | B_9600_BPS |
B_134_BPS | B_19200_BPS |
B_150_BPS | B_31250_BPS |
B_200_BPS | B_38400_BPS |
B_300_BPS | B_57600_BPS |
B_600_BPS | B_115200_BPS |
B_1200_BPS | B_230400_BPS |
These constants give the possible rates--in bits per second (bps)--at which data can be transmitted and received over a serial connection. Not all rates are compatible with all serial ports.
See also: BSerialPort::SetDataRate()
Declared in: <device/SerialPort.h>
Enumerated constant |
---|
B_SOFTWARE_CONTROL |
B_HARDWARE_CONTROL |
These constants form a mask that records the method(s) of flow control the serial port driver should use.
See also: BSerialPort::SetFlowControl()
Declared in: <device/SerialPort.h>
Enumerated constant |
---|
B_NO_PARITY |
B_ODD_PARITY |
B_EVEN_PARITY |
These constants list the possibilities for parity when transmitting data over a serial connection.
See also: BSerialPort::SetDataBits()
Declared in: <device/SerialPort.h>
Enumerated constant |
---|
B_STOP_BITS_1 |
B_STOP_BITS_2 |
These constants name the possible number of stop bits in a serial unit.
See also: BSerialPort::SetDataBits()
Declared in: <device/SerialPort.h>
typedef enum { . . . } data_bits
This type is used to set and return the number of data bits in a serial unit.
See also: "data_bits Constants" above, BSerialPort::SetDataBits()
Declared in: <device/SerialPort.h>
typedef enum { . . . } data_rate
This type is used to set and return the rate at which data is sent and received through a serial connection.
See also: "data_rate Constants" above, BSerialPort::SetDataRate()
Declared in: <device/SerialPort.h>
typedef enum { . . . } parity_mode
This type is used to set and return the type of parity that should be used when sending and receiving data.
See also: "parity_mode Constants" above, BSerialPort::SetDataBits()
Declared in: <device/SerialPort.h>
typedef enum { . . . } stop_bits
This type is used to set and return the number of stop bits in a serial unit.
See also: "stop_bits Constants" above, BSerialPort::SetDataBits()
The Be Book, in lovely HTML, for the BeOS Preview Release.
Copyright © 1997 Be, Inc. All rights reserved.
Be is a registered trademark; BeOS, BeBox, BeWare, GeekPort, the Be logo, and the BeOS logo are trademarks of Be, Inc.
Last modified June 30, 1997.