Garmin Fleet Management Controller  2.19.0
CChangeBaudRateDlg Class Reference

#include <CChangeBaudRateDlg.h>

+ Inheritance diagram for CChangeBaudRateDlg:

Public Types

enum  { IDD = IDD_CHANGE_BAUD_RATE }
 

Public Member Functions

 CChangeBaudRateDlg (CWnd *pParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CChangeBaudRateDlg ()
 
virtual afx_msg void OnOK ()
 Click handler for OK button. More...
 

Public Attributes

int mCurrentRate
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 

Protected Attributes

FmiApplicationLayermCom
 Reference to the FMI communication controller. More...
 
int mNewRate
 

Detailed Description

Definition at line 18 of file CChangeBaudRateDlg.h.

Member Enumeration Documentation

anonymous enum
Enumerator
IDD 

Definition at line 33 of file CChangeBaudRateDlg.h.

Constructor & Destructor Documentation

CChangeBaudRateDlg::CChangeBaudRateDlg ( CWnd *  pParent,
FmiApplicationLayer aCom 
)

Constructor.

Parameters
aParentThe parent window
aComReference to the FMI communication controller

Definition at line 26 of file CChangeBaudRateDlg.cpp.

CChangeBaudRateDlg::~CChangeBaudRateDlg ( )
virtual

Definition at line 36 of file CChangeBaudRateDlg.cpp.

Member Function Documentation

void CChangeBaudRateDlg::DoDataExchange ( CDataExchange *  pDX)
protectedvirtual
void CChangeBaudRateDlg::OnOK ( )
virtual

Click handler for OK button.

Build and send a SET baud rate packet based on the state of the fields

Definition at line 57 of file CChangeBaudRateDlg.cpp.

References fmi_set_baud_request::baud_rate_type, FMI_BAUD_NEW_RATE_REQUEST, FMI_BAUD_RATE_38400, FMI_BAUD_RATE_57600, FMI_BAUD_RATE_9600, FMI_SET_BAUD_REQUEST, mCom, mNewRate, fmi_set_baud_request::request_type, and FmiApplicationLayer::sendFmiPacket().

Member Data Documentation

FmiApplicationLayer& CChangeBaudRateDlg::mCom
protected

Reference to the FMI communication controller.

Definition at line 41 of file CChangeBaudRateDlg.h.

Referenced by OnOK().

int CChangeBaudRateDlg::mCurrentRate

Definition at line 45 of file CChangeBaudRateDlg.h.

Referenced by DoDataExchange().

int CChangeBaudRateDlg::mNewRate
protected

Definition at line 42 of file CChangeBaudRateDlg.h.

Referenced by DoDataExchange(), and OnOK().


The documentation for this class was generated from the following files: