Seitenleiste


Access to information is restricted depending on your login. Request login-information through our contact form.

service:wince:drvlib:trizeps6:dfiowrite

DFIOWrite

This is a helper function to allow easy access to external memory/chip-selects, when using Trizeps6 with onboard WLAN (when the WLAN-chip is configured to use D[15..8]).

void DFIOWrite(      
  volatile short* addr,
  unsigned int csbase,
  short value
); 

Parameters

addr
address, within the address-range previously mapped with DFIOMapSpace.
csbase
csbase value returned by DFIOMapSpace.
value
Value to write

Return Values

none.

Sample

Write to CS3 Space with A20 set….

#define CS3BASE_PA 0x88000000
#define A20 (1<<20)
#define CUSTOM_PA  (CS3BASE_PA+A20)

volatile unsigned short *CUSTOM_HW_REG16;
unsigned int csbase;

  CUSTOM_HW_REG16 = (volatile unsigned short *)DFIOMapSpace(CUSTOM_PA, 0x100, &csbase);
  DFIOWrite( CUSTOM_HW_REG16 , csbase, 0x1234);

Remarks

This routine can be used with all Trizeps6-modules. Even with ones without WLAN, where this function is not necessary and you can write to the address directly.

Requirements

OS Versions: Windows Embedded CE 6 and later.
Header: drvlib_app.h.
Link Library: drvlib_app.lib.

See Also

Cookies helfen bei der Bereitstellung von Inhalten. Durch die Nutzung dieser Seiten erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Rechner gespeichert werden. Weitere Information
service/wince/drvlib/trizeps6/dfiowrite.txt · Zuletzt geändert: 2015/03/23 17:53 von