Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

HAL NAND Generic Driver

 

UM1725

Function Name

HAL_StatusTypeDef HAL_NAND_Read_Page

 

(NAND_HandleTypeDef * hnand, NAND_AddressTypeDef *

 

pAddress, uint8_t * pBuffer, uint32_t NumPageToRead)

Function Description

Read Page(s) from NAND memory block.

Parameters

 

hnand: pointer to a NAND_HandleTypeDef structure that

 

 

contains the configuration information for NAND module.

 

pAddress: : pointer to NAND address structure

 

pBuffer: : pointer to destination read buffer

 

NumPageToRead: : number of pages to read from block

Return values

 

HAL status

37.2.15HAL_NAND_Write_Page

Function Name

HAL_StatusTypeDef HAL_NAND_Write_Page

 

(NAND_HandleTypeDef * hnand, NAND_AddressTypeDef *

 

pAddress, uint8_t * pBuffer, uint32_t NumPageToWrite)

Function Description

Write Page(s) to NAND memory block.

Parameters

 

hnand: pointer to a NAND_HandleTypeDef structure that

 

 

contains the configuration information for NAND module.

 

pAddress: : pointer to NAND address structure

 

pBuffer: : pointer to source buffer to write

 

NumPageToWrite: : number of pages to write to block

Return values

 

HAL status

37.2.16HAL_NAND_Read_SpareArea

Function Name

HAL_StatusTypeDef HAL_NAND_Read_SpareArea

 

(NAND_HandleTypeDef * hnand, NAND_AddressTypeDef *

 

pAddress, uint8_t * pBuffer, uint32_t NumSpareAreaToRead)

Function Description

Read Spare area(s) from NAND memory.

Parameters

 

hnand: pointer to a NAND_HandleTypeDef structure that

 

 

contains the configuration information for NAND module.

 

pAddress: : pointer to NAND address structure

 

pBuffer: pointer to source buffer to write

 

NumSpareAreaToRead: Number of spare area to read

Return values

 

HAL status

37.2.17HAL_NAND_Write_SpareArea

Function Name

HAL_StatusTypeDef HAL_NAND_Write_SpareArea

 

(NAND_HandleTypeDef * hnand, NAND_AddressTypeDef *

 

pAddress, uint8_t * pBuffer, uint32_t NumSpareAreaTowrite)

Function Description

Write Spare area(s) to NAND memory.

Parameters

hnand: pointer to a NAND_HandleTypeDef structure that

 

contains the configuration information for NAND module.

 

pAddress: : pointer to NAND address structure

 

pBuffer: : pointer to source buffer to write

 

NumSpareAreaTowrite: : number of spare areas to write to

480/900

DOCID025834 Rev 2

UM1725

HAL NAND Generic Driver

 

block

Return values

HAL status

37.2.18HAL_NAND_Erase_Block

Function Name

HAL_StatusTypeDef HAL_NAND_Erase_Block

 

(NAND_HandleTypeDef * hnand, NAND_AddressTypeDef *

 

pAddress)

Function Description

NAND memory Block erase.

Parameters

 

hnand: pointer to a NAND_HandleTypeDef structure that

 

 

contains the configuration information for NAND module.

 

pAddress: : pointer to NAND address structure

Return values

 

HAL status

37.2.19HAL_NAND_Read_Status

Function Name

uint32_t HAL_NAND_Read_Status (NAND_HandleTypeDef *

 

hnand)

Function Description

NAND memory read status.

Parameters

 

hnand: pointer to a NAND_HandleTypeDef structure that

 

 

contains the configuration information for NAND module.

Return values

 

NAND status

37.2.20HAL_NAND_Address_Inc

Function Name

uint32_t HAL_NAND_Address_Inc (NAND_HandleTypeDef *

 

hnand, NAND_AddressTypeDef * pAddress)

Function Description

Increment the NAND memory address.

Parameters

hnand: pointer to a NAND_HandleTypeDef structure that

 

contains the configuration information for NAND module.

 

pAddress: pointer to NAND address structure

Return values

The new status of the increment address operation. It can be:

 

NAND_VALID_ADDRESS: When the new address is valid

 

addressNAND_INVALID_ADDRESS: When the new address

 

is invalid address

37.2.21HAL_NAND_ECC_Enable

Function Name

HAL_StatusTypeDef HAL_NAND_ECC_Enable

 

(NAND_HandleTypeDef * hnand)

Function Description

Enables dynamically NAND ECC feature.

Parameters

 

hnand: pointer to a NAND_HandleTypeDef structure that

 

 

contains the configuration information for NAND module.

Return values

 

HAL status

37.2.22HAL_NAND_ECC_Disable

DOCID025834 Rev 2

481/900

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]