![]() |
Prusa Slicer 2.6.0
|
#include <ctype.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <sys/ioctl.h>#include <sys/types.h>#include <sys/time.h>#include <sys/socket.h>#include <netdb.h>#include <netinet/in.h>#include <fcntl.h>#include <termios.h>#include <unistd.h>#include "avrdude.h"#include "libavrdude.h"#include "ac_cfg.h"
Include dependency graph for ser_posix.c:Go to the source code of this file.
Classes | |
| struct | baud_mapping |
Macros | |
| #define | MAX_ZERO_READS 512 |
Functions | |
| static speed_t | serial_baud_lookup (long baud) |
| static int | ser_setspeed (union filedescriptor *fd, long baud) |
| ssize_t | read_timeout (int fd, void *buf, size_t count, long timeout) |
| ssize_t | write_timeout (int fd, const void *buf, size_t count, long timeout) |
| static int | net_open (const char *port, union filedescriptor *fdp) |
| static int | ser_set_dtr_rts (union filedescriptor *fdp, int is_on) |
| static int | ser_open (char *port, union pinfo pinfo, union filedescriptor *fdp) |
| static void | ser_close (union filedescriptor *fd) |
| static int | ser_send (union filedescriptor *fd, const unsigned char *buf, size_t buflen) |
| static int | ser_recv (union filedescriptor *fd, unsigned char *buf, size_t buflen) |
| static int | ser_drain (union filedescriptor *fd, int display) |
Variables | |
| long | serial_recv_timeout = 4000 |
| static struct baud_mapping | baud_lookup_table [] |
| static struct termios | original_termios |
| static int | saved_original_termios |
| struct serial_device | serial_serdev |
| struct serial_device * | serdev = &serial_serdev |
| struct baud_mapping |
| Class Members | ||
|---|---|---|
| long | baud | |
| speed_t | speed | |
| #define MAX_ZERO_READS 512 |
|
static |
References avrdude_message(), error, free(), filedescriptor::ifd, MSG_INFO, and progname.
Referenced by ser_open().
Here is the call graph for this function:
Here is the caller graph for this function:Referenced by ser_drain(), and ser_recv().
Here is the caller graph for this function:
|
static |
References avrdude_message(), filedescriptor::ifd, MSG_INFO, original_termios, progname, and saved_original_termios.
Here is the call graph for this function:
|
static |
References avrdude_message(), filedescriptor::ifd, MAX_ZERO_READS, MSG_INFO, MSG_NOTICE2, progname, read_timeout(), and RETURN_IF_CANCEL.
Here is the call graph for this function:
|
static |
References avrdude_message(), pinfo::baud, filedescriptor::ifd, MSG_INFO, net_open(), progname, and ser_setspeed().
Here is the call graph for this function:
|
static |
References avrdude_message(), filedescriptor::ifd, MAX_ZERO_READS, MSG_INFO, MSG_NOTICE2, MSG_TRACE, progname, read_timeout(), RETURN_IF_CANCEL, serial_recv_timeout, and verbose.
Here is the call graph for this function:
|
static |
References avrdude_message(), filedescriptor::ifd, MAX_ZERO_READS, MSG_INFO, MSG_NOTICE2, MSG_TRACE, progname, RETURN_IF_CANCEL, serial_recv_timeout, verbose, and write_timeout().
Here is the call graph for this function:
|
static |
References filedescriptor::ifd.
|
static |
References avrdude_message(), filedescriptor::ifd, isatty, MSG_INFO, original_termios, progname, saved_original_termios, and serial_baud_lookup().
Referenced by ser_open().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References avrdude_message(), baud_mapping::baud, baud_lookup_table, MSG_NOTICE, progname, and baud_mapping::speed.
Referenced by ser_setspeed().
Here is the call graph for this function:
Here is the caller graph for this function:Referenced by ser_send().
Here is the caller graph for this function:
|
static |
Referenced by serial_baud_lookup().
|
static |
Referenced by ser_close(), and ser_setspeed().
|
static |
Referenced by ser_close(), and ser_setspeed().
| struct serial_device* serdev = &serial_serdev |
| long serial_recv_timeout = 4000 |
Referenced by buspirate_disable(), buspirate_parseextparms(), buspirate_readline_noexit(), jtag3_paged_load(), jtag3_paged_write(), jtagmkI_paged_load(), jtagmkI_paged_write(), jtagmkI_resync(), jtagmkII_page_erase(), jtagmkII_paged_load(), jtagmkII_paged_load32(), jtagmkII_paged_write(), jtagmkII_paged_write32(), jtagmkII_read_SABaddr(), ser_recv(), and ser_send().
| struct serial_device serial_serdev |