Dio Sample Program - Asus Aaeon BOXER-6639M User Manual

Fanless embedded box pc
Hide thumbs Also See for Aaeon BOXER-6639M:
Table of Contents

Advertisement

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
************************************************************************************
*************************************************************************
Main
VOID
(){
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);
}
Appendix C – Digital I/O Information
88

Advertisement

Table of Contents
loading

Table of Contents