Share via


SDSetCardFeature (Compact 2013)

3/26/2014

This function sets various secure digital input output (SDIO) card features in a thread-safe manner.

Syntax

SD_API_STATUS SDSetCardFeature(
  SD_DEVICE_HANDLE hDevice,
  SD_SET_FEATURE_TYPE CardFeature,
  PVOID pCardInfo,
  ULONG StructureSize
);

Parameters

  • hDevice
    [in] Handle to an SD bus device.
  • pCardInfo
    [in] Buffer containing new data for the feature.
  • StructureSize
    [in] Size of the pCardInfo structure.

Return Value

A return value of type SD_API_STATUS indicates the success or failure.

Remarks

This function is provided to set various SDIO card features in a thread-safe manner. SDIO cards utilize shared register sets between functions. This requires that the register state be preserved between functions that can be controlled in separate thread contexts. This function can block by issuing synchronous bus request.

Note

This function must not be called from a bus request callback.

Requirements

Header

sdcardddk.h

Library

sdcardlib.lib

See Also

Reference

Secure Digital (SD) Card Driver Functions