beautypg.com

Appendix c, Digital input/output control – Lanner LEC-7110 User Manual

Page 25

background image

25

Digital Input/Output Control

Appendix C

Embedded and Industrial Computing

Read Digial_In state
IOA3 COM3 GET INPUT_STATE command
INPUT_STATE= 15 response massage

Via the IOA3_Demo Program

This IOA3_Demo program provides graphic interface for

you to assign/read value on the specific GPIO pins.
To access the program, click start->programs->IOA3_

Tools->IOA3_Demo

DIO Sample Code

// IGpin_stDlg.cpp : implementation file
//

#include “stdafx.h”
#include “IGpin_st.h”
#include “IGpin_stDlg.h”

#include “Ignition.h”

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:

CAboutDlg();

// Dialog Data

enum { IDD = IDD_ABOUTBOX };

protected:

virtual void DoDataExchange(CDataExchange* pDX); //

DDX/DDV support

// Implementation
protected:

DECLARE_MESSAGE_MAP()

};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{

CDialog::DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()

// CIGpin_stDlg dialog