com.cpp File Reference

#include <string.h>
#include <stdio.h>
#include "liblnp.h"
#include "wx/wx.h"
#include "com.h"

Go to the source code of this file.

Classes

class  ReadFromIrThread

Functions

wxSemaphore sem_com (1, 1)
wxSemaphore sem_data (0, 1)
int own_atoi (char s[])
void own_reverse (char s[])
void own_itoa (int n, char s[])
int com_send (int id_sender_int, int id_receiver_int, int message_type_int, int *message_send_int)
int init_com (int id)

Variables

int TRIGGER1 = 0
int TRIGGER2 = 0
int TRIGGER3 = 0
int TRIGGER4 = 0
int TRIGGER5 = 0
int TEMPERATURE = 0
int COORDINATES [9] = {0,0,0,0,0,0,0,0,0}
int COM_ID = 0
char received_message [40]
char received_header [3]
int received_message_len = 0


Function Documentation

int com_send int  id_sender_int,
int  id_receiver_int,
int  message_type_int,
int *  message_send_int
 

Definition at line 263 of file com.cpp.

References own_itoa().

Referenced by MyApp::OnRun().

int init_com int  id  ) 
 

Definition at line 343 of file com.cpp.

References COM_ID, lnp_init(), and lnp_integrity_set_handler().

Referenced by MyApp::OnInit().

int own_atoi char  s[]  ) 
 

Definition at line 61 of file com.cpp.

Referenced by ReadFromIrThread::Entry().

void own_itoa int  n,
char  s[]
 

Definition at line 99 of file com.cpp.

References own_reverse().

Referenced by com_send().

void own_reverse char  s[]  ) 
 

Definition at line 82 of file com.cpp.

Referenced by own_itoa().

wxSemaphore sem_com ,
 

wxSemaphore sem_data ,
 

Referenced by ReadFromIrThread::Entry().


Variable Documentation

int COM_ID = 0
 

Definition at line 45 of file com.cpp.

Referenced by init_com().

int COORDINATES[9] = {0,0,0,0,0,0,0,0,0}
 

Definition at line 34 of file com.cpp.

char received_header[3]
 

Definition at line 50 of file com.cpp.

Referenced by ReadFromIrThread::Entry().

char received_message[40]
 

Definition at line 48 of file com.cpp.

Referenced by ReadFromIrThread::Entry().

int received_message_len = 0
 

Definition at line 52 of file com.cpp.

Referenced by ReadFromIrThread::Entry().

int TEMPERATURE = 0
 

Definition at line 32 of file com.cpp.

Referenced by MyApp::OnRun().

int TRIGGER1 = 0
 

Definition at line 22 of file com.cpp.

Referenced by MyApp::OnRun().

int TRIGGER2 = 0
 

Definition at line 24 of file com.cpp.

int TRIGGER3 = 0
 

Definition at line 26 of file com.cpp.

int TRIGGER4 = 0
 

Definition at line 28 of file com.cpp.

int TRIGGER5 = 0
 

Definition at line 30 of file com.cpp.


Generated on Wed Nov 29 01:27:42 2006 by  doxygen 1.4.6