Aaeon EPIC-CV07 Instrukcja Użytkownika Strona 105

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 128
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 104
EPIC Board EPIC-CV07
Appendix A Programming the Watchdog Timer A-6
************************************************************************************
VOID
SIOEnterMBPnPMode(){
IOWriteByte(SIOIndex,0x87);
IOWriteByte(SIOIndex,0x87);
}
VOID
SIOExitMBPnPMode(){
IOWriteByte(SIOIndex,0xAA);
}
VOID
SIOSelectLDN(byteLDN){
IOWriteByte(SIOIndex,0x07);//SIOLDNRegisterOffset=0x07
IOWriteByte(SIOData,
LDN);
}
VOID
SIOBitSet(byteLDN,byteRegister,byteBitNum,byteValue){
ByteTmpValue;
SIOEnterMBPnPMode();
SIOSelectLDN(byte
LDN);
IOWriteByte(SIOIndex,Register);
TmpValue=IOReadByte(SIOData);
TmpValue&=~(1<<BitNum);
TmpValue|=(Value<<BitNum);
IOWriteByte(SIOData,TmpValue);
SIOExitMBPnPMode();
}
VOID
SIOByteSet(byteLDN,byteRegister ,byteValue){
SIOEnterMBPnPMode();
SIOSelectLDN(LDN);
IOWriteByte(SIOIndex,Register);
IOWriteByte(SIOData,
Value);
SIOExitMBPnPMode();
}
************************************************************************************
Przeglądanie stron 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 127 128

Komentarze do niniejszej Instrukcji

Brak uwag