Aaeon IMBA-Q77 User Manual page 117

Industrial motherboard
Hide thumbs Also See for IMBA-Q77:
Table of Contents

Advertisement

I n d u s t r i a l M o t h e r b o a r d
************************************************************************************
#include <stdio.h>
#include <conio.h>
#define SIOIndex
#define SIOData
#define boolean AaeonDigitalInput(int byte LDN, int byte RegNum, int byte
BitNum);
#define void AaeonDigitalOutput(int byte LDN, int byte RegNum, int byte
BitNum, boolean Status);
************************************************************************************
Main(){
// Procedure : AaeonDigitalInput
// Input :
// (byte)LDN :
// (byte)RegNum : 0x00 ~ 0xFF
//
// (byte)BitNum : 0 ~ 7
//
// Output :
// (boolean)Status : When read Digital Input Status, it will return the result
of Pin
//
boolean Status = AaeonDigitalInput(int byte LDN, int byte RegNum, int byte
BitNum);
// Procedure : AaeonDigitalOutput
// Input :
// (byte)LDN :
// (byte)RegNum :
//
// (byte)BitNum : 0 ~ 7
//
// (boolean)Status :
the Pin status
//
0x2E //Modify for project support 2E/4E
0x2F //Modify for project support 2F/4F
Logic Device Number Register
SuperIO register offset that you want to access
Which bit in register that you want to access
Status.
Logic Device Number Register
0x00 ~ 0xFF
SuperIO register offset that you want to access
Which bit in register that you want to access
When write Digital Output Status, this value is
of Digital Output that you want.
I M B A - Q 7 7
Appendix E Digital Input & Output
E-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents