D:/_sources/u2c_12/ControlPanel/I2cLowLevelBar.h
Go to the documentation of this file.00001 // Copyright (C)2006 Diolan ( http://www.diolan.com ) 00002 // 00003 // This program is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU General Public License 00005 // as published by the Free Software Foundation 00006 // 00007 // This program is distributed in the hope that it will be useful, 00008 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 // GNU General Public License for more details. 00011 00012 00013 #if !defined(AFX_I2CLOWLEVELBAR_H__6CDD4E90_AEDC_11D7_A540_F83D6406163F__INCLUDED_) 00014 #define AFX_I2CLOWLEVELBAR_H__6CDD4E90_AEDC_11D7_A540_F83D6406163F__INCLUDED_ 00015 00016 #if _MSC_VER > 1000 00017 #pragma once 00018 #endif // _MSC_VER > 1000 00019 00020 class CI2cLowLevelBar : public CDialogBar 00021 { 00022 // Construction 00023 public: 00024 CI2cLowLevelBar(); // standard constructor 00025 BOOL Create(CWnd* pParentWnd); 00026 void SaveWriteByteInHistory(); 00027 BOOL GetWriteByteData(BYTE *pData); 00028 BOOL IsWriteByteAckNeeded(); 00029 BOOL IsReadByteAckNeeded(BOOL *bAckState); 00030 BOOL GetPutAckState(); 00031 void EnableControls(bool bEnable); 00032 00033 // Dialog Data 00034 //{{AFX_DATA(CI2cLowLevelBar) 00035 enum { IDD = IDD_I2C_LOW_LEVEL }; 00036 CComboBox m_ctrlWriteByteData; 00037 CString m_strWriteByteData; 00038 BOOL m_bWriteByteAck; 00039 BOOL m_bReadByteAck; 00040 int m_nReadAckState; 00041 int m_nPutAckState; 00042 //}}AFX_DATA 00043 00044 00045 // Overrides 00046 // ClassWizard generated virtual function overrides 00047 //{{AFX_VIRTUAL(CI2cLowLevelBar) 00048 protected: 00049 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00050 //}}AFX_VIRTUAL 00051 00052 // Implementation 00053 protected: 00054 00055 // Generated message map functions 00056 //{{AFX_MSG(CI2cLowLevelBar) 00057 afx_msg void OnI2cReadAck(); 00058 //}}AFX_MSG 00059 afx_msg void OnUpdateButtons (CCmdUI* pCmdUI); 00060 DECLARE_MESSAGE_MAP() 00061 private: 00062 bool m_bEnableControls; 00063 }; 00064 00065 //{{AFX_INSERT_LOCATION}} 00066 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00067 00068 #endif // !defined(AFX_I2CLOWLEVELBAR_H__6CDD4E90_AEDC_11D7_A540_F83D6406163F__INCLUDED_)
2006-2012