IDmaChannelSlave::ReadCounter method

The ReadCounter method reads the counter of a subordinate DMA object.

Syntax


ULONG ReadCounter(
    None
);

Parameters

None

Return value

ReadCounter returns the DMA object's counter value, which specifies the current byte count. When the object is started, this value is set to the map size (the IDmaChannelSlave::Start method's MapSize parameter). The value decrements until it reaches zero, at which time it is reset to the map size. This process repeats until the DMA object is stopped (by calling the IDmaChannelSlave::Stop method).

Remarks

Requirements

Target platform

Universal

Header

Portcls.h (include Portcls.h)

IRQL

<=DISPATCH_LEVEL

See also

IDmaChannelSlave::Start
IDmaChannelSlave::Stop

 

 

Send comments about this topic to Microsoft

Show: