00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #if !defined(AFX_SPIBAR_H__93E5D3F9_BFD2_406C_ACB5_285187DB0872__INCLUDED_)
00014 #define AFX_SPIBAR_H__93E5D3F9_BFD2_406C_ACB5_285187DB0872__INCLUDED_
00015
00016 #if _MSC_VER > 1000
00017 #pragma once
00018 #endif // _MSC_VER > 1000
00019
00020
00021 #include "../common/I2CBridge.h"
00023
00024
00025 class CSpiBar : public CDialogBar
00026 {
00027
00028 public:
00029 CSpiBar();
00030 BOOL Create(CWnd *pParentWnd);
00031 void EnableControls(bool bEnable);
00032 bool GetLength(unsigned short* pLength);
00033 bool GetOutData(BYTE* pBuffer, unsigned short Length);
00034
00035
00036
00037 enum { IDD = IDD_SPI_BAR };
00038 int m_Length;
00039 CString m_strData;
00040
00041
00042
00043
00044
00045
00046 protected:
00047 virtual void DoDataExchange(CDataExchange* pDX);
00048
00049
00050
00051
00052 protected:
00053
00054
00055
00056
00057 afx_msg void OnUpdateButton (CCmdUI* pCmdUI);
00058 DECLARE_MESSAGE_MAP()
00059 private:
00060 bool m_bEnableControls;
00061 public:
00062 };
00063
00064
00065
00066
00067 #endif // !defined(AFX_SPIBAR_H__93E5D3F9_BFD2_406C_ACB5_285187DB0872__INCLUDED_)