nico@215: nico@215: nico@215: CanFestival: can_uvccm_win32 Class Reference nico@215: nico@215: nico@215: nico@215: nico@215:
nico@215:
nico@215:
nico@215:
nico@215:

can_uvccm_win32 Class Reference

nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215:

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
nico@215:

Detailed Description

nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 17 of file can_uvccm_win32.cpp.


Constructor & Destructor Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
can_uvccm_win32::can_uvccm_win32 (s_BOARD board  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 39 of file can_uvccm_win32.cpp. nico@215:

nico@215: References struct_s_BOARD::baudrate, and open_rs232(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
can_uvccm_win32::~can_uvccm_win32 (  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 47 of file can_uvccm_win32.cpp. nico@215:

nico@215: References close_rs232(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

nico@215:


Member Function Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
bool can_uvccm_win32::send (const Message m  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 52 of file can_uvccm_win32.cpp. nico@215:

nico@215: References FALSE, m_port, m_write_event, and set_can_data(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
bool can_uvccm_win32::receive (Message m  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 80 of file can_uvccm_win32.cpp. nico@215:

nico@215: References FALSE, get_can_data(), m_port, m_read_event, and m_residual_buffer. nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

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

nico@215: nico@215:

nico@215: Definition at line 136 of file can_uvccm_win32.cpp. nico@215:

nico@215: References FALSE, m_port, m_read_event, m_write_event, and TRUE. nico@215:

nico@215: Referenced by can_uvccm_win32(). nico@215:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
bool can_uvccm_win32::close_rs232 (  )  [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 190 of file can_uvccm_win32.cpp. nico@215:

nico@215: References m_port, m_read_event, m_residual_buffer, and m_write_event. nico@215:

nico@215: Referenced by ~can_uvccm_win32(). nico@215:

nico@215:

etisserant@240: nico@215:

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

nico@215: nico@215:

nico@215: Definition at line 206 of file can_uvccm_win32.cpp. nico@215:

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

nico@215: Referenced by receive(). nico@215:

nico@215:

etisserant@240: nico@215:

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

nico@215: nico@215:

nico@215: Definition at line 271 of file can_uvccm_win32.cpp. nico@215:

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

nico@215: Referenced by send(). nico@215:

nico@215:

nico@215:


Field Documentation

etisserant@240: etisserant@240:
etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
HANDLE can_uvccm_win32::m_port [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 33 of file can_uvccm_win32.cpp. nico@215:

nico@215: Referenced by close_rs232(), open_rs232(), receive(), and send(). nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
HANDLE can_uvccm_win32::m_read_event [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 34 of file can_uvccm_win32.cpp. nico@215:

nico@215: Referenced by close_rs232(), open_rs232(), and receive(). nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
HANDLE can_uvccm_win32::m_write_event [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 35 of file can_uvccm_win32.cpp. nico@215:

nico@215: Referenced by close_rs232(), open_rs232(), and send(). nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
std::string can_uvccm_win32::m_residual_buffer [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 36 of file can_uvccm_win32.cpp. nico@215:

nico@215: Referenced by close_rs232(), and receive(). nico@215:

nico@215:

nico@215:


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