setBusMasterEnable
Enables bus mastering on the device.
Declaration
virtual bool setBusMasterEnable(
boolenable );Parameters
- enable:
True or false to enable or disable bus mastering.
Return Value
True if bus mastering was previously enabled, false otherwise.
Overview
This method sets the bus mastering enabled bit in the device’s command config space register to the passed value, and returns the previous enabled state.
See Also
Miscellaneous
configRead16configRead32configRead8configWrite16configWrite32configWrite8enablePCIPowerManagementextendedConfigRead16extendedConfigRead32extendedConfigRead8extendedConfigWrite16extendedConfigWrite32extendedConfigWrite8extendedFindPCICapabilityfindPCICapabilitygetBusNumbergetDeviceMemoryWithRegistergetDeviceNumbergetFunctionNumberhasPCIPowerManagementioDeviceMemoryioRead16ioRead32ioRead8ioWrite16ioWrite32ioWrite8mapDeviceMemoryWithRegistersetConfigBitssetIOEnablesetMemoryEnable