/* * Description: Test if bits off in eeprom * * Parameters: * In: * dwIoBase - I/O base address * byContntOffset - address of EEPROM * byTestBits - bits to test * Out: * none * * Return Value: TRUE if all test bits off; otherwise FALSE * */ BOOL SROMbIsRegBitsOff (DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byTestBits) { BYTE byOrgData; byOrgData = SROMbyReadEmbedded(dwIoBase, byContntOffset); return BITbIsAllBitsOff(byOrgData, byTestBits); }
BOOL GMACbIsRegBitsOff(DWORD dwIoBase, BYTE byRegOfs, BYTE byTestBits) { BYTE byData; VNSvInPortB(dwIoBase + byRegOfs, &byData); return BITbIsAllBitsOff(byData, byTestBits); }