RCOM PROJ
File transfer via serial port
dcp.h File Reference
#include "macros.h"
#include "logs.h"
#include "statemachine.h"
#include "dcp_spec.h"
Include dependency graph for dcp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  linkLayer
 Struct to hold information about the Link Layer. More...
 

Macros

#define _GNU_SOURCE
 

Functions

int llopen (int porta, int type)
 Opens a data connection with the serial port. More...
 
int llwrite (int fd, char *buffer, int lenght)
 Writes the content of buffer to fd. More...
 
int llread (int fd, unsigned char *buffer)
 Reads from fd to buffer. More...
 
int llclose (int fd)
 Closes the connection to the serial port. More...
 

Variables

struct linkLayer linkLayer
 Data relative to the link layer. More...
 
struct termios oldtio
 used in llclose to reset termios More...
 
volatile int failed
 used in the alarm handler More...
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE