Write one byte 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 SetMem ( HANDLE hPci, ULONG MappedAddress, ULONG MemOffset , UCHAR bValue);
|
Delphi
|
procedure SetMem ( hPci: THandle; MappedAddress: Longword; MemOffset: Longword; bValue: Byte ); stdcall;
|
VB
|
Sub SetMem ( ByVal hPci As Long, ByVal MappedAddress As Long, ByVal MemOffset As Long, bValue As Byte)
|
Parameters:
hPci - the handle returned by a successful call to OpenRapidPci ;
MappedAddress - the linear address returned by MapPhysToLinear
MemOffset - the offset value, should begin from the "0" value.
bValue - value to write
Return Value : None
Comments:
1. 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.
2. If you want access the BAR0-BAR5 PCI areas then use a special functions set instead.
See also: MapPhysToLinear UnmapMemory GetMemGetMemWGetMemL SetMemWSetMemL
|