Open() - NOR Flash Driver

void  Open (FS_DEV_NOR_PHY_DATA  *p_phy_data,
            FS_ERR               *p_err);

File

Called from

Code enabled by

NOR physical-layer driver

FSDev_NOR_Open()

N/A

Open (initialize) a NOR device instance and get NOR device information.

Arguments

p_phy_data

Pointer to NOR phy data.

p_err

Pointer to variable that will receive the return error code from this function.

Returned Value

None.

Notes/Warnings

Several members of p_phy_data may need to be used/assigned:

  1. BlkCnt and BlkSize must be assigned the block count and block size of the device, respectively.
  2. RegionNbr specifies the block region that will be used. AddrRegionStartmust be assigned the start address of this block region.
  3. DataPtr may store a pointer to any driver-specific data.
  4. UnitNbr is the unit number of the NOR device.
  5. MaxClkFreq specifies the maximum SPI clock frequency.
  6. BusWIdth, BusWidthMax and PhyDevCnt specify the bus configuration. AddrBase specifies the base address of the NOR flash memory.