RTEMS
5.1
|
#include <serial.h>
Data Fields | |
const char * | sDeviceName |
console_devs | deviceType |
const console_fns * | pDeviceFns |
bool(* | deviceProbe )(int minor) |
const console_flow * | pDeviceFlow |
uint32_t | ulMargin |
uint32_t | ulHysteresis |
void * | pDeviceParams |
uint32_t | ulCtrlPort1 |
uint32_t | ulCtrlPort2 |
uint32_t | ulDataPort |
getRegister_f | getRegister |
setRegister_f | setRegister |
getData_f | getData |
setData_f | setData |
uint32_t | ulClock |
unsigned int | ulIntVector |
This type defination provides an structure that is used to uniquely identify a specific serial port.
bool(* _console_tbl::deviceProbe) (int minor) |
This value is passed to the serial device driver for use. In termios itself the number is ignored.
console_devs _console_tbl::deviceType |
This indicates the chip type. It is especially important when multiple devices share the same interrupt vector and must be distinguished.
getData_f _console_tbl::getData |
This is the routine used to read the data register (RX).
getRegister_f _console_tbl::getRegister |
This is the routine used to read register values.
const console_flow* _console_tbl::pDeviceFlow |
This is a pointer to the set of flow control routines to use. Serial device drivers will typically supply RTSCTS and DTRCTS handshake routines for DCE to DCE communication, however for DCE to DTE communication, no such routines should be necessary as RTS will be driven automatically when the transmitter is active.
const console_fns* _console_tbl::pDeviceFns |
pDeviceFns This is a pointer to the set of driver routines to use.
void* _console_tbl::pDeviceParams |
This contains either device specific data or a pointer to a device specific structure containing additional information not provided in this table.
const char* _console_tbl::sDeviceName |
This is the name of the device.
setRegister_f _console_tbl::setRegister |
This is the routine used to write register values.
uint32_t _console_tbl::ulClock |
This is the baud rate clock speed.
uint32_t _console_tbl::ulCtrlPort1 |
This is the primary control port number for the device. This may be used to specify different instances of the same device type.
uint32_t _console_tbl::ulCtrlPort2 |
This is the secondary control port number, of use when a given device has more than one available channel.
uint32_t _console_tbl::ulDataPort |
This is the port number for the data port of the device
uint32_t _console_tbl::ulHysteresis |
After the high water mark specified by ulMargin has been reached, the driver's routine to re-start the remote transmitter will be called once the level in the input buffer has fallen by ulHysteresis bytes.
unsigned int _console_tbl::ulIntVector |
This encodes the interrupt vector of the device.
uint32_t _console_tbl::ulMargin |
The high water mark in the input buffer is set to the buffer size less ulMargin. Once this level is reached, the driver's flow control routine used to stop the remote transmitter will be called. This figure should be greater than or equal to the number of stages of FIFO between the transmitter and receiver.