SERCX2_SYSTEM_DMA_RECEIVE_CONFIG_INIT function

The SERCX2_SYSTEM_DMA_RECEIVE_CONFIG_INIT function initializes a SERCX2_SYSTEM_DMA_RECEIVE_CONFIG structure.

Syntax


VOID SERCX2_SYSTEM_DMA_RECEIVE_CONFIG_INIT(
  _Out_ SERCX2_SYSTEM_DMA_RECEIVE_CONFIG *Config,
  _In_  size_t                           MaximumTransferLength,
  _In_  PHYSICAL_ADDRESS                 Address,
  _In_  DMA_WIDTH                        DmaWidth,
  _In_  PCM_PARTIAL_RESOURCE_DESCRIPTOR  DmaDescriptor
);

Parameters

Config [out]

A pointer to the SERCX2_SYSTEM_DMA_RECEIVE_CONFIG structure that is to be initialized.

MaximumTransferLength [in]

The value to load into the MaximumTransferLength member of the SERCX2_SYSTEM_DMA_RECEIVE_CONFIG structure. For more information, see the description of this member in SERCX2_SYSTEM_DMA_RECEIVE_CONFIG.

Address [in]

The value to load into the DeviceAddress member of the SERCX2_SYSTEM_DMA_RECEIVE_CONFIG structure. For more information, see the description of this member in SERCX2_SYSTEM_DMA_RECEIVE_CONFIG.

DmaWidth [in]

The value to load into the DmaWidth member of the SERCX2_SYSTEM_DMA_RECEIVE_CONFIG structure. For more information, see the description of this member in SERCX2_SYSTEM_DMA_RECEIVE_CONFIG.

DmaDescriptor [in]

The value to load into the DmaDescriptor member of the SERCX2_SYSTEM_DMA_RECEIVE_CONFIG structure. For more information, see the description of this member in SERCX2_SYSTEM_DMA_RECEIVE_CONFIG.

Return value

None.

Remarks

Your serial controller driver must use either this function or the SERCX2_SYSTEM_DMA_RECEIVE_CONFIG_INIT_NEW_DATA_NOTIFICATION function to initialize a SERCX2_SYSTEM_DMA_RECEIVE_CONFIG structure before passing a pointer to this structure as an input parameter to the SerCx2SystemDmaReceiveCreate method.

SERCX2_SYSTEM_DMA_RECEIVE_CONFIG_INIT sets the Size member of the structure to sizeof(SERCX2_SYSTEM_DMA_RECEIVE_CONFIG), and sets four additional members of the structure to the values supplied as input parameters to the function. The function sets the other members of the structure to zero. The driver can, if necessary, explicitly set these other members to nonzero values after the SERCX2_SYSTEM_DMA_RECEIVE_CONFIG_INIT call.

Requirements

Target platform

Desktop

Version

Available starting with Windows 8.1.

Header

2.0\Sercx.h

IRQL

Any level.

See also

SerCx2SystemDmaReceiveCreate
SERCX2_SYSTEM_DMA_RECEIVE_CONFIG
SERCX2_SYSTEM_DMA_RECEIVE_CONFIG_INIT_NEW_DATA_NOTIFICATION

 

 

Send comments about this topic to Microsoft

Show: