TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Input and Output functions

Input and Output functions
[NAND Exported Functions]

Input Output and memory control functions. More...

Functions

HAL_StatusTypeDef HAL_NAND_Read_ID (NAND_HandleTypeDef *hnand, NAND_IDTypeDef *pNAND_ID)
 Read the NAND memory electronic signature.
HAL_StatusTypeDef HAL_NAND_Reset (NAND_HandleTypeDef *hnand)
 NAND memory reset.
HAL_StatusTypeDef HAL_NAND_Read_Page (NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress, uint8_t *pBuffer, uint32_t NumPageToRead)
 Read Page(s) from NAND memory block.
HAL_StatusTypeDef HAL_NAND_Write_Page (NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress, uint8_t *pBuffer, uint32_t NumPageToWrite)
 Write Page(s) to NAND memory block.
HAL_StatusTypeDef HAL_NAND_Read_SpareArea (NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress, uint8_t *pBuffer, uint32_t NumSpareAreaToRead)
 Read Spare area(s) from NAND memory.
HAL_StatusTypeDef HAL_NAND_Write_SpareArea (NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress, uint8_t *pBuffer, uint32_t NumSpareAreaTowrite)
 Write Spare area(s) to NAND memory.
HAL_StatusTypeDef HAL_NAND_Erase_Block (NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress)
 NAND memory Block erase.
uint32_t HAL_NAND_Read_Status (NAND_HandleTypeDef *hnand)
 NAND memory read status.
uint32_t HAL_NAND_Address_Inc (NAND_HandleTypeDef *hnand, NAND_AddressTypeDef *pAddress)
 Increment the NAND memory address.

Detailed Description

Input Output and memory control functions.

  ==============================================================================
                    ##### NAND Input and Output functions #####
  ==============================================================================
  [..]  
    This section provides functions allowing to use and control the NAND 
    memory
  

Function Documentation

uint32_t HAL_NAND_Address_Inc ( NAND_HandleTypeDef *  hnand,
NAND_AddressTypeDef *  pAddress 
)

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:
Thenew status of the increment address operation. It can be:

  • NAND_VALID_ADDRESS: When the new address is valid address
  • NAND_INVALID_ADDRESS: When the new address is invalid address

Definition at line 906 of file stm32l4xx_hal_nand.c.

HAL_StatusTypeDef HAL_NAND_Erase_Block ( NAND_HandleTypeDef *  hnand,
NAND_AddressTypeDef *  pAddress 
)

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:
HALstatus

Definition at line 802 of file stm32l4xx_hal_nand.c.

HAL_StatusTypeDef HAL_NAND_Read_ID ( NAND_HandleTypeDef *  hnand,
NAND_IDTypeDef *  pNAND_ID 
)

Read the NAND memory electronic signature.

Parameters:
hnand,:pointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
pNAND_ID,:NAND ID structure
Return values:
HALstatus

Definition at line 341 of file stm32l4xx_hal_nand.c.

HAL_StatusTypeDef HAL_NAND_Read_Page ( NAND_HandleTypeDef *  hnand,
NAND_AddressTypeDef *  pAddress,
uint8_t *  pBuffer,
uint32_t  NumPageToRead 
)

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:
HALstatus

Definition at line 431 of file stm32l4xx_hal_nand.c.

HAL_StatusTypeDef HAL_NAND_Read_SpareArea ( NAND_HandleTypeDef *  hnand,
NAND_AddressTypeDef *  pAddress,
uint8_t *  pBuffer,
uint32_t  NumSpareAreaToRead 
)

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:
HALstatus

Definition at line 618 of file stm32l4xx_hal_nand.c.

uint32_t HAL_NAND_Read_Status ( NAND_HandleTypeDef *  hnand )

NAND memory read status.

Parameters:
hnand,:pointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
Return values:
NANDstatus

Definition at line 867 of file stm32l4xx_hal_nand.c.

HAL_StatusTypeDef HAL_NAND_Reset ( NAND_HandleTypeDef *  hnand )

NAND memory reset.

Parameters:
hnand,:pointer to a NAND_HandleTypeDef structure that contains the configuration information for NAND module.
Return values:
HALstatus

Definition at line 389 of file stm32l4xx_hal_nand.c.

HAL_StatusTypeDef HAL_NAND_Write_Page ( NAND_HandleTypeDef *  hnand,
NAND_AddressTypeDef *  pAddress,
uint8_t *  pBuffer,
uint32_t  NumPageToWrite 
)

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:
HALstatus

Definition at line 518 of file stm32l4xx_hal_nand.c.

HAL_StatusTypeDef HAL_NAND_Write_SpareArea ( NAND_HandleTypeDef *  hnand,
NAND_AddressTypeDef *  pAddress,
uint8_t *  pBuffer,
uint32_t  NumSpareAreaTowrite 
)

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 block
Return values:
HALstatus

Definition at line 704 of file stm32l4xx_hal_nand.c.