EasyManua.ls Logo

Aaeon BOXER-6639 - C.3 DIO Sample Program

Aaeon BOXER-6639
101 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix C – Digital I/O Information 85
Fanless Embedded Box PC BOXER-6639
C.3 DIO Sample Program
************************************************************************************
// SuperIO relative definition (Please reference to Table 1)
#define byte SIOIndex //This parameter is represented from Note1
#define byte SIOData //This parameter is represented from Note2
#define void IOWriteByte(byte IOPort, byte Value);
#define byte IOReadByte(byte IOPort);
// Digital Input Status relative definition (Please reference to Table 2)
#define byte DInputLDN // This parameter is represented from Note3
#define byte DInputReg // This parameter is represented from Note4
#define byte DInputBit // This parameter is represented from Note5
************************************************************************************
*************************************************************************
VOID
Main(){
Boolean PinStatus ;
// Procedure : AaeonReadPinStatus
// Input :
// Example, Read Digital I/O Pin 3 status
// Output :
// InputStatus :
// 0: Digital I/O Pin level is low
// 1: Digital I/O Pin level is High
PinStatus = AaeonReadPinStatus(DInputLDN, DInputReg, DInputBit);
// Procedure : AaeonSetOutputLevel
// Input :
// Example, Set Digital I/O Pin 6 level
AaeonSetOutputLevel(DOutputLDN, DOutputReg, DOutputBit, DOutputVal);
}

Table of Contents

Related product manuals