Aaeon PFM-HDS Manual de usuario Pagina 105

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 105
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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 pagina 104
1 2 ... 100 101 102 103 104 105

Comentarios a estos manuales

Sin comentarios