TranslateBusAddr (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

CEDDK Dynamic-Link Library Bus Access Functions
INTERFACE_TYPE