#include <Controller.h>
Public Member Functions | |
void | CallMessageBroadCasting (unsigned char) |
void | CallMessageChannelOnOff (char, char) |
void | CallMessageRequest () |
void | chnl2dev_mapping () |
Controller () | |
Controller (unsigned char, string, int) | |
char | get_chnl_from_map (string) |
void | initController () |
void | processBuffer (unsigned char *, char) |
void | recv_Thread () |
~Controller () | |
Private Member Functions | |
void | create_threads () |
Private Attributes | |
tug_ist_diagnosis_msgs::DBoardMeasurments | board_msr |
unsigned char | buffer [255] |
int | bytes_recieved |
map< char, string > | chnl2dev_map |
struct hostent * | host |
unsigned char | initFrq |
Message * | msg |
ros::NodeHandle | n_ |
unsigned char * | p |
ros::Publisher | pub_board_msr_ |
MSGQUEUE | rcvQueue |
unsigned char | recv_data [255] |
unsigned char | send_data [255] |
struct sockaddr_in | server_addr |
int | sock |
Friends | |
void * | run_recv_Thread (void *) |
Definition at line 48 of file Controller.h.
Controller::Controller | ( | unsigned char | frq, |
string | ip, | ||
int | port | ||
) |
Definition at line 23 of file Controller.cpp.
Definition at line 35 of file Controller.cpp.
void Controller::CallMessageBroadCasting | ( | unsigned char | frq | ) |
Definition at line 171 of file Controller.cpp.
void Controller::CallMessageChannelOnOff | ( | char | chnl, |
char | status | ||
) |
Definition at line 192 of file Controller.cpp.
void Controller::CallMessageRequest | ( | ) |
Definition at line 181 of file Controller.cpp.
void Controller::chnl2dev_mapping | ( | ) |
Definition at line 55 of file Controller.cpp.
void Controller::create_threads | ( | ) | [private] |
Definition at line 91 of file Controller.cpp.
char Controller::get_chnl_from_map | ( | string | dev | ) |
Definition at line 72 of file Controller.cpp.
void Controller::initController | ( | ) |
Definition at line 40 of file Controller.cpp.
void Controller::processBuffer | ( | unsigned char * | buf, |
char | command | ||
) |
Definition at line 96 of file Controller.cpp.
void Controller::recv_Thread | ( | ) |
Definition at line 128 of file Controller.cpp.
void* run_recv_Thread | ( | void * | contrl_ptr | ) | [friend] |
Definition at line 87 of file Controller.cpp.
Definition at line 69 of file Controller.h.
unsigned char Controller::buffer[255] [private] |
Definition at line 72 of file Controller.h.
int Controller::bytes_recieved [private] |
Definition at line 70 of file Controller.h.
map<char,string> Controller::chnl2dev_map [private] |
Definition at line 79 of file Controller.h.
struct hostent* Controller::host [private] |
Definition at line 74 of file Controller.h.
unsigned char Controller::initFrq [private] |
Definition at line 78 of file Controller.h.
Message* Controller::msg [private] |
Definition at line 76 of file Controller.h.
ros::NodeHandle Controller::n_ [private] |
Definition at line 67 of file Controller.h.
unsigned char* Controller::p [private] |
Definition at line 73 of file Controller.h.
ros::Publisher Controller::pub_board_msr_ [private] |
Definition at line 68 of file Controller.h.
MSGQUEUE Controller::rcvQueue [private] |
Definition at line 77 of file Controller.h.
unsigned char Controller::recv_data[255] [private] |
Definition at line 71 of file Controller.h.
unsigned char Controller::send_data[255] [private] |
Definition at line 71 of file Controller.h.
struct sockaddr_in Controller::server_addr [private] |
Definition at line 75 of file Controller.h.
int Controller::sock [private] |
Definition at line 70 of file Controller.h.