Aaeon EMB-H61B Manual de usuario Pagina 81

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 81
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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 pagina 80
1 2 ... 76 77 78 79 80 81

Comentarios a estos manuales

Sin comentarios