gaqairport.blogg.se

Nand x drivers
Nand x drivers








nand x drivers

The functions of the NAND driver are accessed by function pointers exposed by this structure.

  • ARM_DRIVER_NAND : access struct for NAND driver functions.
  • The driver functions are published in the access struct as explained in Common Driver Functions The parameters page_size and block_size are device specific and must be handled by the driver user appropriately. Thus one can calculate the byte_address = row * page_size + col. In terms of this NAND API blocks and pages are referred to as row and the byte offset within the page as col. The addressing of data is achieved by byte_address = block * block_size + page_in_block * page_size + offset_in_page. NAND Flash is organized in pages, grouped into blocks as the smallest erasable unit. The driver implementation is a typical part of the Device Family Pack (DFP) that supports the peripherals of the microcontroller family.
  • Driver_NAND.h : Driver API for NAND Flash Device Interface.
  • The following header files define the Application Programming Interface (API) for the NAND interface: Wikipedia offers more information about the Flash Memories, including NAND. NAND devices are a type of non-volatile storage and do not require power to hold data. More.ĪRM_NAND_WriteProtect (uint32_t dev_num, bool enable)ĪRM_NAND_ChipEnable (uint32_t dev_num, bool enable)ĪRM_NAND_GetDeviceBusy (uint32_t dev_num)ĪRM_NAND_SendCommand (uint32_t dev_num, uint8_t cmd)ĪRM_NAND_SendAddress (uint32_t dev_num, uint8_t addr)ĪRM_NAND_ReadData (uint32_t dev_num, void *data, uint32_t cnt, uint32_t mode)ĪRM_NAND_WriteData (uint32_t dev_num, const void *data, uint32_t cnt, uint32_t mode)ĪRM_NAND_ExecuteSequence (uint32_t dev_num, uint32_t code, uint32_t cmd, uint32_t addr_col, uint32_t addr_row, void *data, uint32_t data_cnt, uint8_t *status, uint32_t *count)ĪRM_NAND_AbortSequence (uint32_t dev_num)ĪRM_NAND_Control (uint32_t dev_num, uint32_t control, uint32_t arg)ĪRM_NAND_InquireECC (int32_t index, ARM_NAND_ECC_INFO *info)ĪRM_NAND_SignalEvent (uint32_t dev_num, uint32_t event) More.ĪRM_NAND_PowerControl ( ARM_POWER_STATE state)Ĭontrol the NAND interface power. More.ĪRM_NAND_Initialize ( ARM_NAND_SignalEvent_t cb_event)ĭe-initialize the NAND Interface.

    nand x drivers

    Pointer to ARM_NAND_SignalEvent : Signal NAND Event. More.ĪRM_NAND_SignalEvent_t )(uint32_t dev_num, uint32_t event) NAND ECC (Error Correction Code) Information. Many parameters of the NAND driver are configured using the ARM_NAND_Control function.Īccess structure of the NAND Driver.

    nand x drivers

    The NAND driver generates call back events that are notified via the function ARM_NAND_SignalEvent. Negative values indicate errors (NAND has specific codes in addition to common Status Error Codes). Driver API for NAND Flash Device Interface (Driver_NAND.h).










    Nand x drivers