Aaeon EMB-A70M Uživatelský manuál Strana 85

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 92
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 84
Mini-ITX EMB-A70M
Appendix D Electrical Specifications for I/O Ports D-6
************************************************************************************
Boolean
AaeonReadPinStatus(byteRegister,byteBitNum){
BooleanPinStatus;
PinStatus=DIOBitRead(Register,BitNum);
ReturnPinStatus;
}
VOID
AaeonSetOutputLevel(byteRegister,byteBitNum,byteValue){
DIOBitSet(Register,BitNum,Value);
}
Boolean
DIOBitRead(byteRegister,byteBitNum){
ByteTmpValue;
TmpValue=IOReadByte(Register);
TmpValue&=(1<<BitNum);
If(TmpValue==0)
Return0;
Return1;
}
VOID
DIOBitSet(byteRegister,byteBitNum,byteValue){
ByteTmpValue;
TmpValue=IOReadByte(Register);
TmpValue&=~(1<<BitNum);
TmpValue|=(Value<<BitNum);
IOWriteByte(Register,TmpValue);
}
************************************************************************************
Zobrazit stránku 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 91 92

Komentáře k této Příručce

Žádné komentáře