BeRTOS
Defines | Functions
usbser.h File Reference

Generic USB serial device driver. More...

#include <io/kfile.h>

Go to the source code of this file.

Defines

#define KFT_USB_SERIAL   MAKE_ID('U', 'S', 'B', 'S')
 ID for usb-serial.

Functions

int usbser_init (struct USBSerial *fds, int unit)
 Init serial driver for a usb-serial port unit.

Detailed Description

Generic USB serial device driver.

Author:
Andrea Righi <arighi@develer.com>

This driver exports a USB-serial converter. It provides a KFile interface to access the data.

Attention:
The API is work in progress and may change in future versions.

Definition in file usbser.h.


Function Documentation

int usbser_init ( struct USBSerial *  fds,
int  unit 
)

Init serial driver for a usb-serial port unit.

Returns:
0 if OK, a negative value in case of error.

Definition at line 295 of file usbser.c.