# serial_device Struct Reference

A collection of function pointers that present the platform-independent interface for serial I/O. More...

`#include <serial.h>`

## Data Fields
void(* | open )(char *port, long baud, union filedescriptor *fd)
int(* | setspeed )(union filedescriptor *fd, long baud)
void(* | close )(union filedescriptor *fd)
int(* | send )(union filedescriptor *fd, unsigned char *buf, size_t buflen)
int(* | recv )(union filedescriptor *fd, unsigned char *buf, size_t buflen)
int(* | drain )(union filedescriptor *fd, int display)
void(* | poll )(void)
int | flags

## Detailed Description

A collection of function pointers that present the platform-independent interface for serial I/O.

Derived from (though not identical to) the structure by the same name in the avrdude program.

The documentation for this struct was generated from the following file:

- src/components/host/serial.h