次の方法で共有


TranslateBusAddr (Compact 2013)

3/26/2014

This function translates a physical bus address to a physical system address.

Syntax

BOOL TranslateBusAddr (
  HANDLE hBusAccess,
  INTERFACE_TYPE InterfaceType,
  ULONG BusNumber,
  PHYSICAL_ADDRESS BusAddress,
  PULONG AddressSpace,
  PPHYSICAL_ADDRESS TranslatedAddress 
);

Parameters

  • InterfaceType
    [in] Bus type specified by the INTERFACE_TYPE enumeration.
  • BusNumber
    [in] Zero-based and system-assigned bus number for the device, used with InterfaceType to identify the bus for systems with more than one bus of the same type.
  • BusAddress
    [in] Bus-relative address.
  • AddressSpace
    [in, out] On input, an initialized PULONG. On output, a port number or a memory address. AddressSpace 0x0 indicates memory and AddressSpace 0x1 indicates I/O space.
  • TranslatedAddress
    [out] Pointer to the translated address.

Return Value

Returns TRUE if successful. Otherwise, it returns FALSE.

Requirements

Header

ceddk.h

Library

CEDDK.lib

See Also

Reference

Ceddk.dll Bus Access Functions
INTERFACE_TYPE