libsigrok
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
serial.c File Reference
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <glob.h>
#include <termios.h>
#include <stdlib.h>
#include <glib.h>
#include "sigrok.h"
#include "sigrok-internal.h"
Include dependency graph for serial.c:

Go to the source code of this file.

Functions

SR_PRIV GSList * list_serial_ports (void)
 
SR_PRIV int serial_open (const char *pathname, int flags)
 
SR_PRIV int serial_close (int fd)
 
SR_PRIV int serial_flush (int fd)
 
SR_PRIV int serial_write (int fd, const void *buf, size_t count)
 
SR_PRIV int serial_read (int fd, void *buf, size_t count)
 
SR_PRIV void * serial_backup_params (int fd)
 
SR_PRIV void serial_restore_params (int fd, void *backup)
 
SR_PRIV int serial_set_params (int fd, int baudrate, int bits, int parity, int stopbits, int flowcontrol)
 

Function Documentation

SR_PRIV GSList* list_serial_ports ( void  )

Definition at line 53 of file serial.c.

SR_PRIV void* serial_backup_params ( int  fd)

Definition at line 159 of file serial.c.

References sr_err().

Here is the call graph for this function:

SR_PRIV int serial_close ( int  fd)

Definition at line 97 of file serial.c.

SR_PRIV int serial_flush ( int  fd)

Definition at line 112 of file serial.c.

SR_PRIV int serial_open ( const char *  pathname,
int  flags 
)

Definition at line 78 of file serial.c.

SR_PRIV int serial_read ( int  fd,
void *  buf,
size_t  count 
)

Definition at line 145 of file serial.c.

SR_PRIV void serial_restore_params ( int  fd,
void *  backup 
)

Definition at line 178 of file serial.c.

SR_PRIV int serial_set_params ( int  fd,
int  baudrate,
int  bits,
int  parity,
int  stopbits,
int  flowcontrol 
)

Definition at line 193 of file serial.c.

References SR_ERR, and SR_OK.

SR_PRIV int serial_write ( int  fd,
const void *  buf,
size_t  count 
)

Definition at line 127 of file serial.c.