Aaeon IMBA-Q77 Bedienungsanleitung Seite 116

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 118
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 115
Industrial Motherboard IMBA-Q77
Appendix E Digital Input & Output E-5
************************************************************************************
#include <stdio.h>
#include <conio.h>
#define SIOIndex 0x2E //Modify for project support 2E/4E
#define SIOData 0x2F //Modify for project support 2F/4F
#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 : Logic Device Number Register
// (byte)RegNum : 0x00 ~ 0xFF
// SuperIO register offset that you want to access
// (byte)BitNum : 0 ~ 7
// Which bit in register that you want to access
// Output :
// (boolean)Status : When read Digital Input Status, it will return the result
of Pin
// Status.
boolean Status = AaeonDigitalInput(int byte LDN, int byte RegNum, int byte
BitNum);
// Procedure : AaeonDigitalOutput
// Input :
// (byte)LDN : Logic Device Number Register
// (byte)RegNum : 0x00 ~ 0xFF
// SuperIO register offset that you want to access
// (byte)BitNum : 0 ~ 7
// Which bit in register that you want to access
// (boolean)Status : When write Digital Output Status, this value is
the Pin status
// of Digital Output that you want.
Seitenansicht 115
1 2 ... 111 112 113 114 115 116 117 118

Kommentare zu diesen Handbüchern

Keine Kommentare