SERCX2_CONFIG_INIT function (sercx.h)

The SERCX2_CONFIG_INIT function initializes a SERCX2_CONFIG structure.

Syntax

void SERCX2_CONFIG_INIT(
  [out] SERCX2_CONFIG           *Config,
  [in]  PFN_SERCX2_APPLY_CONFIG EvtSerCx2ApplyConfig,
  [in]  PFN_SERCX2_CONTROL      EvtSerCx2Control,
  [in]  PFN_SERCX2_PURGE_FIFOS  EvtSerCx2PurgeFifos
);

Parameters

[out] Config

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

[in] EvtSerCx2ApplyConfig

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

[in] EvtSerCx2Control

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

[in] EvtSerCx2PurgeFifos

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

Return value

None

Remarks

Your serial controller driver must use this function to initialize a SERCX2_CONFIG structure before passing a pointer to this structure as an input parameter to the SerCx2InitializeDevice method.

SERCX2_CONFIG_INIT sets the Size member of the structure to sizeof(SERCX2_CONFIG), and sets three 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_CONFIG_INIT call.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 8.1.
Target Platform Desktop
Header sercx.h
IRQL Any level.

See also

SERCX2_CONFIG

SerCx2InitializeDevice