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 |
| 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:
BlkCnt
andBlkSize
must be assigned the block count and block size of the device, respectively.RegionNbr
specifies the block region that will be used.AddrRegionStart
must be assigned the start address of this block region.DataPtr
may store a pointer to any driver-specific data.UnitNbr
is the unit number of the NOR device.MaxClkFreq
specifies the maximum SPI clock frequency.BusWIdth
,BusWidthMax
andPhyDevCnt
specify the bus configuration.AddrBase
specifies the base address of the NOR flash memory.