|
RCOM PROJ
File transfer via serial port
|
#include "dcp.h"

Go to the source code of this file.
Enumerations | |
| enum | readingType { openR, readR, closeDISC, closeUA } |
| enum | writingType { trans_SET, writeR, trans_DISC_UA } |
Functions | |
| int | readingCycle (enum readingType type, int fd, unsigned char *c, unsigned char **dataBuf, int *retBufferSize) |
| Function to read a byte from fd. More... | |
| int | writeCycle (enum writingType type, int fd, unsigned char *buf, int bufsize) |
| Function used to write to fd. More... | |
| int | initConnection (int *fd, char *port) |
| Estabelece ligação ao cabo e cria fd. More... | |
| void | atende () |
| Função handler do sinal de alarme. More... | |
| int | transmitter_SET (int fd) |
| Função que envia Trama SET e recebe trama UA. More... | |
| int | receiver_UA (int fd) |
| Função que recebe trama SET e envia trama UA. More... | |
| int | fillFinalBuffer (unsigned char *finalBuffer, unsigned char *headerBuf, unsigned char *footerBuf, int footerBufSize, unsigned char *dataBuffer, int dataSize) |
| Stuffs the final buffer with the Information Packet. More... | |
| int | transmitter_DISC_UA (int fd) |
| Transmitter sequence to Disconnect. More... | |
| int | receiver_DISC_UA (int fd) |
| Receiver sequence to Disconnect. More... | |
| void | generateErrorBCC2 (unsigned char *frame, int frameSize) |
| Generates a error on BCC2 based on PROBABILITY_BCC2. More... | |
| void | generateErrorBCC1 (unsigned int *checkBuffer) |
| Generates a error on BCC based on PROBABILITY_BCC2. More... | |