Aaeon PFM-HDS Manual do Utilizador Página 105

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 105
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 104
PC/104 Module PFM-HDS
Appendix E Digital I/O Ports E -8
**************************************************************************
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
ConfigDioMode(byte PinBit, byte Mode){
Byte TmpValue;
SIOEnterMBPnPMode();
SIOSelectLDN(DIOLDN);
IOWriteByte(SIOIndex, DirReg);
TmpValue = IOReadByte(SIOData);
TmpValue |= (Mode << PinBit);
IOWriteByte(SIOData, DirReg);
SIOExitMBPnPMode();
}
**************************************************************************
Vista de página 104
1 2 ... 100 101 102 103 104 105

Comentários a estes Manuais

Sem comentários