Home    Prev Next    
Contents
Programming For ISA Hardware
Overview
Programmers Guide
Scenario
I/O Ports control
Single read/write operations
Data array read/write operations
Accessing Physical Memory Addresses
Memory Mapping
Additional Functions
Hardware interrupts handling at user level
Common Functions
OpenRapidIsa
CloseRapidIsa
IsRapidIsaOpened
GetHardwareConfiguration
Direct Port I/O
GetPortByte
GetPortWord
GetPortLong
SetPortByte
SetPortWord
SetPortLong
ReadPortBuffer
WritePortBuffer
Memory Access
MapPhysToLinear
UnmapMemory
GetMem
GetMemW
GetMemL
SetMem
SetMemW
SetMemL
Hardware Interrupts
UnmaskIsaIrq
MaskIsaIrq
GetInterruptCounter
SetMemL
Go to RapidDriver Main Page

Write four bytes (double word) to the memory region. Mainly is intended for using in the Visual Basic applications where the direct manipulations with the pointers is difficult.

Language

Description

C/C++
void SetMemL ( HANDLE hIsa, ULONG MappedAddress, ULONG MemOffset , ULONG dwValue);
Delphi
procedure SetMemL ( hIsa: THandle; MappedAddress: Longword; MemOffset: Longword; dValue: Longword ); stdcall;
VB
Sub SetMemL ( ByVal hIsa As Long, ByVal MappedAddress As Long, ByVal MemOffset As Long, dwValue As Long)


Parameters:
hIsa - the handle returned by a successful call to OpenRapidIsa ;
MappedAddress - the linear address returned by MapPhysToLinear
MemOffset - the offset value, should begin from the "0" value.
d
wValue - value to write

Return Value : None

Comments:

In general, "MappedAddress" can be any valid linear pointer to the memory. But if this pointer was received from the MapPhysToLinear function then you can access physical memory also.

See also: MapPhysToLinear UnmapMemory GetMem GetMemW GetMemL SetMem SetMemW