FlashRegion

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This structure describes an individual flash region. An array of these structures make up the flash region table located in the flash layout sector.

Syntax

typedef struct _FlashRegion {
  REGION_TYPE regionType;
  DWORD dwStartPhysBlock;
  DWORD dwNumPhysBlocks;
  DWORD dwNumLogicalBlocks;
  DWORD dwSectorsPerBlock;
  DWORD dwBytesPerBlock;
  DWORD dwCompactBlocks;
} FlashRegion, *PFlashRegion;

Members

  • regionType
    Type of region, which must be one of the following: XIP, READONLY_FILESYS, or FILESYS.
  • dwStartPhysBlock
    Starting physical block of the region. Set to zero (0) if not used.
  • dwNumPhysBlocks
    Number of physical blocks in the region. Set to zero (0) if not used.
  • dwNumLogicalBlocks
    Number of logical blocks in the region. Set to zero (0) if not used. Set to -1 to indicate that the region extends to the end of flash memory.
  • dwSectorsPerBlock
    Number of sectors in a flash block.
  • dwBytesPerBlock
    Number of bytes in a flash block.
  • dwCompactBlocks
    Number of blocks reserved for compaction by the FAL.

Remarks

Either the dwStartPhysBlock and dwNumPhysBlocks members or the dwNumLogicalBlocks member must be specified.

Requirements

Header fls.h
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also

Reference

Flash Media Driver Structures