rs232.c File Reference

File that contains the "child" code. More...

#include "h1.h"

Go to the source code of this file.

Functions

void signal_1 (int)
 Function called when the program receives a SIGUSR1 signal.
void rs232_clear_exit (int)
 Function called when the program receaves a SIGINT signal. Make sure the shared memory "dies" with the program.
int rs232 (void)
 Program responsable for the serial port communication.

Variables

int shm_id1
int shm_id2
unsigned char * SHM_config
unsigned char * SHM_data
char RS232_DEVICE [20] = "/dev/ttyUSB0"


Detailed Description

File that contains the "child" code.

Programa responsável pela comunicação com o pic, através da porta serie. Comunica ainda com o programa gtk atravez de duas memorias partilhadas.

Author:
Bruno Andrade nº35606

Definition in file rs232.c.


Function Documentation

int rs232 ( void   ) 

Program responsable for the serial port communication.

Parameters:
void 
Returns:
int

Definition at line 26 of file rs232.c.

void rs232_clear_exit ( int  xx  ) 

Function called when the program receaves a SIGINT signal. Make sure the shared memory "dies" with the program.

Parameters:
xx 
Returns:
void

Definition at line 224 of file rs232.c.

void signal_1 ( int  x  ) 

Function called when the program receives a SIGUSR1 signal.

Parameters:
x 
Returns:
void

Definition at line 207 of file rs232.c.


Generated on Fri Feb 12 22:17:11 2010 for Teste by  doxygen 1.5.8