Appendix C – Digital I/O Ports 77Mobile NVR VPC-5600S************************************************************************************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();}************************************************************************************