#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <linux/types.h>
#include <assert.h>
#include <termios.h>
#include <linux/serial.h>
#include <sys/ioctl.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <otto/otto.h>
#include <otto/packet.h>
#include <otto/device.h>
#include <otto/control.h>
Classes | |
| struct | uart_serial_priv |
| Driver specific private data for open driver. More... | |
Functions | |
| const char _ID_[] | __attribute__ ((unused))="$Id: uart_serial.c,v 1.9 2004/07/07 22:07:11 alpha Exp $" |
| int | uart_serial_write_half_duplex (int fd, const void *buf, size_t count) |
| int | uart_serial_read_flush (struct otto_device *dev) |
| int | uart_serial_init_fast (struct otto_device *dev) |
| int | uart_serial_init_slow (struct otto_device *dev, unsigned char adr) |
| int | uart_serial_control_sbusrate (struct otto_device *dev, int rate) |
| otto_device * | uart_serial_open (const char *fname) |
| int | uart_serial_close (struct otto_device *dev) |
| int | uart_serial_read (struct otto_device *dev, int bus, union otto_packet *pkt) |
| int | uart_serial_write (struct otto_device *dev, int bus, union otto_packet *pkt) |
| int | uart_serial_control (struct otto_device *dev, int bus, void *data, int cmd) |
| void | __attribute ((constructor)) |
Variables | |
| const int | UART_SERIAL_DEFAULT_RATE = 10400 |
| otto_driver | uart_serial_drv |
maintain list of open devices?
keep timestamp of last rx?
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
initialize busses (only 1) |
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
Initial value:
|
1.3.7