can_uvccm_win32 Class Reference


Public Member Functions

 can_uvccm_win32 (s_BOARD *board)
 ~can_uvccm_win32 ()
bool send (const Message *m)
bool receive (Message *m)

Private Member Functions

bool open_rs232 (int port=1, int baud_rate=57600)
bool close_rs232 ()
bool get_can_data (const char *can_cmd_buf, long &bufsize, Message *m)
bool set_can_data (const Message &m, std::string &can_cmd)

Private Attributes

HANDLE m_port
HANDLE m_read_event
HANDLE m_write_event
std::string m_residual_buffer

Data Structures

class  error

Detailed Description

Definition at line 17 of file can_uvccm_win32.cpp.


Constructor & Destructor Documentation

can_uvccm_win32::can_uvccm_win32 ( s_BOARD board  ) 

Definition at line 39 of file can_uvccm_win32.cpp.

References struct_s_BOARD::baudrate, and open_rs232().

Here is the call graph for this function:

can_uvccm_win32::~can_uvccm_win32 (  ) 

Definition at line 47 of file can_uvccm_win32.cpp.

References close_rs232().

Here is the call graph for this function:


Member Function Documentation

bool can_uvccm_win32::send ( const Message m  ) 

Definition at line 52 of file can_uvccm_win32.cpp.

References FALSE, m_port, m_write_event, and set_can_data().

Here is the call graph for this function:

bool can_uvccm_win32::receive ( Message m  ) 

Definition at line 80 of file can_uvccm_win32.cpp.

References FALSE, get_can_data(), m_port, m_read_event, and m_residual_buffer.

Here is the call graph for this function:

bool can_uvccm_win32::open_rs232 ( int  port = 1,
int  baud_rate = 57600 
) [private]

Definition at line 136 of file can_uvccm_win32.cpp.

References FALSE, m_port, m_read_event, m_write_event, and TRUE.

Referenced by can_uvccm_win32().

bool can_uvccm_win32::close_rs232 (  )  [private]

Definition at line 190 of file can_uvccm_win32.cpp.

References m_port, m_read_event, m_residual_buffer, and m_write_event.

Referenced by ~can_uvccm_win32().

bool can_uvccm_win32::get_can_data ( const char *  can_cmd_buf,
long &  bufsize,
Message m 
) [private]

Definition at line 206 of file can_uvccm_win32.cpp.

References Message::cob_id, Message::data, Message::len, Message::rtr, UNS8, and SHORT_CAN::w.

Referenced by receive().

bool can_uvccm_win32::set_can_data ( const Message m,
std::string &  can_cmd 
) [private]

Definition at line 271 of file can_uvccm_win32.cpp.

References Message::cob_id, Message::data, Message::len, Message::rtr, and SHORT_CAN::w.

Referenced by send().


Field Documentation

HANDLE can_uvccm_win32::m_port [private]

Definition at line 33 of file can_uvccm_win32.cpp.

Referenced by close_rs232(), open_rs232(), receive(), and send().

HANDLE can_uvccm_win32::m_read_event [private]

Definition at line 34 of file can_uvccm_win32.cpp.

Referenced by close_rs232(), open_rs232(), and receive().

HANDLE can_uvccm_win32::m_write_event [private]

Definition at line 35 of file can_uvccm_win32.cpp.

Referenced by close_rs232(), open_rs232(), and send().

std::string can_uvccm_win32::m_residual_buffer [private]

Definition at line 36 of file can_uvccm_win32.cpp.

Referenced by close_rs232(), and receive().


The documentation for this class was generated from the following file:
Generated on Mon Jul 2 19:10:43 2007 for CanFestival by  doxygen 1.5.1