Header
Product Comparison: USB I2C | USB SPI | USB GPIO
  • My Account
  • Shopping Cart
  • Products
  • My Account
  • About
  • Products
  • PC-I2C/SPI/GPIO Adapters
  • Main Page
  • Classes
  • Files
  • File List
  • File Members

D:/_sources/u2c_12/ControlPanel/I2cReadBar.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_I2CREADBAR_H__9F4BE076_3442_456D_BA6B_6870A52DE4E3__INCLUDED_)
00014 #define AFX_I2CREADBAR_H__9F4BE076_3442_456D_BA6B_6870A52DE4E3__INCLUDED_
00015 
00016 #if _MSC_VER > 1000
00017 #pragma once
00018 #endif // _MSC_VER > 1000
00019 // I2cReadBar.h : header file
00020 //
00021 #include "../common/I2CBridge.h"
00023 // CI2cReadBar dialog
00024 
00025 class CI2cReadBar : public CDialogBar
00026 {
00027 // Construction
00028 public:
00029         CI2cReadBar();   // standard constructor
00030         BOOL Create(CWnd *pParentWnd);
00031         BOOL InitTransaction(PU2C_TRANSACTION pTransaction);
00032         void SaveCurrentValuesInHistory();
00033         void FillSlaveList(PU2C_SLAVE_ADDR_LIST pSlaveList);
00034         void EnableControls(bool bEnable);
00035 // Dialog Data
00036         //{{AFX_DATA(CI2cReadBar)
00037         enum { IDD = IDD_I2C_READ };
00038         CComboBox       m_ctrlSlaveAddr;
00039         CComboBox       m_ctrlMemAddr;
00040         CString m_strMemAddr;
00041         int             m_nMemAddrLen;
00042         CString m_strSlaveAddr;
00043         int             m_Length;
00044         //}}AFX_DATA
00045 
00046 
00047 // Overrides
00048         // ClassWizard generated virtual function overrides
00049         //{{AFX_VIRTUAL(CI2cReadBar)
00050         protected:
00051         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00052         //}}AFX_VIRTUAL
00053 
00054 // Implementation
00055 protected:
00056 
00057         // Generated message map functions
00058         //{{AFX_MSG(CI2cReadBar)
00059                 // NOTE: the ClassWizard will add member functions here
00060         //}}AFX_MSG
00061         afx_msg void OnUpdateI2cRead (CCmdUI* pCmdUI);
00062 
00063         DECLARE_MESSAGE_MAP()
00064 private:
00065         bool m_bEnableControls;
00066 };
00067 
00068 //{{AFX_INSERT_LOCATION}}
00069 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00070 
00071 #endif // !defined(AFX_I2CREADBAR_H__9F4BE076_3442_456D_BA6B_6870A52DE4E3__INCLUDED_)
  • Products
  • PC-I2C/SPI/GPIO Adapters
  • Comparison
  • PC-I2C/SPI/GPIO Adapter DLN-1
  • USB-I2C/SPI/GPIO Adapter DLN-2
  • Multiprotocol Master DLN-4M
  • Multiprotocol Slave DLN-4S
  • Downloads
  • Software
  • Documentation
  • SW Tools & Examples
  • Development Boards
  • Open Source Projects
  • Discontinued Products
  • API Documentation
  • Downloads
  • SW Tools and Examples
footer top footer bottom
© Copyright Diolan 2006-2012