Aaeon EMB-H61B Manual do Utilizador Página 81

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 81
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 80
Indust ria l M o t herboa rd EMB-H61B
Appendix C Electrical Specifications for I/O Ports
C-9
************************************************************************************
Boolean
SIOBitRead(byte LDN, byte Register, byte BitNum)
{
Byte TmpValue;
SIOEnterMBPnPMode();
SIOSelectLDN(LDN);
IOWriteByte(SIOIndex, Register);
TmpValue = IOReadByte(SIOData);
TmpValue &= (1 << BitNum);
SIOExitMBPnPMode();
If(TmpValue == 0)
Return 0;
Return 1;
}
VOID
ConfigToOutputMode(byte LDN, byte Register, byte BitNum)
{
Byte TmpValue, OutputEnableReg;
OutputEnableReg = Register-1;
SIOEnterMBPnPMode();
SIOSelectLDN(LDN);
IOWriteByte(SIOIndex, OutputEnableReg);
TmpValue = IOReadByte(SIOData);
TmpValue |= (1 << BitNum);
IOWriteByte(SIOData, OutputEnableReg);
SIOExitMBPnPMode();
}
************************************************************************************
Vista de página 80
1 2 ... 76 77 78 79 80 81

Comentários a estes Manuais

Sem comentários