次の方法で共有


SD_DEBUG_INSTANTIATE_ZONES (Compact 2013)

3/26/2014

This macro instantiates the global debug zone structure with the name of the module, the initial zone mask ulZoneMask, and the names of zone slots 0 through 10.

Syntax

#define SD_DEBUG_INSTANTIATE_ZONES(
  TCHAR ModuleName,
  DWORD InitialValue,
  TCHAR Slot0,
  TCHAR Slot1,
  TCHAR Slot2,
  TCHAR Slot3,
  TCHAR Slot4,
  TCHAR Slot5,
  TCHAR Slot6,
  TCHAR Slot7,
  TCHAR Slot8,
  TCHAR Slot9,
  TCHAR Slot10
);

Parameters

  • ModuleName
    Module name that is used to associate the zones.
  • InitialValue
    Initial active zone slots.
  • Slot0
    Zone slot text description.
  • Slot1
    Zone slot text description.
  • Slot2
    Zone slot text description.
  • Slot3
    Zone slot text description.
  • Slot4
    Zone slot text description.
  • Slot5
    Zone slot text description.
  • Slot6
    Zone slot text description.
  • Slot7
    Zone slot text description.
  • Slot8
    Zone slot text description.
  • Slot9
    Zone slot text description.
  • Slot10
    Zone slot text description.

Return Value

None.

Remarks

A driver is free to change the zone slot descriptions for all slots except slots 11 through 15. These values have reserved zone mask slots and text descriptions. This allows libraries to utilize a set of zones that can be activated by a module that imports the library. The driver is free to use the same reserved zone slots for common message zones. For example, a driver can also use SDCARD_ZONE_ERROR for errors. The following table shows the reserved zone slots and their associated macros.

Zone slot

Zone mask macro

11

SDCARD_ZONE_FUNC

12

SDCARD_ZONE_INFO

13

SDCARD_ZONE_INIT

14

SDCARD_ZONE_WARN

15

SDCARD_ZONE_ERROR

Requirements

Header

sdcard.h

See Also

Reference

Secure Digital (SD) Card Driver Macros