📄 sample1dlg.h
字号:
// Sample1Dlg.h : header file
//
#if !defined(AFX_SAMPLE1DLG_H__E22DF916_FD2F_42EC_927E_B6D9DC1C3C11__INCLUDED_)
#define AFX_SAMPLE1DLG_H__E22DF916_FD2F_42EC_927E_B6D9DC1C3C11__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CSample1Dlg dialog
class CSample1Dlg : public CDialog
{
// Construction
public:
CSample1Dlg(CWnd* pParent = NULL); // standard constructor
void myDelay(DWORD dvalue);
void Write_SCL(BYTE value);
void CSample1Dlg::Write_SDA(BYTE value);
void CSample1Dlg::Get_SDA(DWORD *pvalue);
void Send_answer();
void Send_noanswer();
bool Check_answer();
void Send_Byte(int send_value);
DWORD Receive_Byte();
int receive_data(int address, int regaddress, int length, unsigned char *pbuff);
int send_data(int address, int regaddress, int length, char *pbuff);
void I2C_stop();
void I2C_start();
// Dialog Data
//{{AFX_DATA(CSample1Dlg)
enum { IDD = IDD_SAMPLE1_DIALOG };
CString m_DeviceAddr;
CString m_RegAddr;
CString m_Value;
CString m_Infor;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSample1Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSample1Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnChangeEditDeviceAddr();
afx_msg void OnChangeEditRegAddr();
afx_msg void OnChangeEditValue();
afx_msg void OnChangeEditInfro();
afx_msg void OnButtonRead();
afx_msg void OnButtonWrite();
afx_msg void OnRemove();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SAMPLE1DLG_H__E22DF916_FD2F_42EC_927E_B6D9DC1C3C11__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -