STM32769I_EVAL BSP User Manual: NOR Exported Functions

STM32769I_EVAL BSP

STM32769I_EVAL BSP User Manual
NOR Exported Functions

Functions

uint8_t BSP_NOR_Init (void)
 Initializes the NOR device.
uint8_t BSP_NOR_DeInit (void)
 DeInitializes the NOR device.
uint8_t BSP_NOR_ReadData (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Reads an amount of data from the NOR device.
uint8_t BSP_NOR_WriteData (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Writes an amount of data to the NOR device.
uint8_t BSP_NOR_ProgramData (uint32_t uwStartAddress, uint16_t *pData, uint32_t uwDataSize)
 Programs an amount of data to the NOR device.
uint8_t BSP_NOR_Erase_Block (uint32_t BlockAddress)
 Erases the specified block of the NOR device.
uint8_t BSP_NOR_Erase_Chip (void)
 Erases the entire NOR chip.
uint8_t BSP_NOR_Read_ID (NOR_IDTypeDef *pNOR_ID)
 Reads NOR flash IDs.
void BSP_NOR_ReturnToReadMode (void)
 Returns the NOR memory to read mode.
void BSP_NOR_MspInit (NOR_HandleTypeDef *hnor, void *Params)
 Initializes the NOR MSP.
void BSP_NOR_MspDeInit (NOR_HandleTypeDef *hnor, void *Params)
 DeInitializes NOR MSP.

Function Documentation

uint8_t BSP_NOR_DeInit ( void  )

DeInitializes the NOR device.

Return values:
NORstatus

Definition at line 194 of file stm32f769i_eval_nor.c.

References BSP_NOR_MspDeInit(), NOR_STATUS_ERROR, NOR_STATUS_OK, and norHandle.

uint8_t BSP_NOR_Erase_Block ( uint32_t  BlockAddress)

Erases the specified block of the NOR device.

Parameters:
BlockAddress,:Block address to erase
Return values:
NORmemory status

Definition at line 303 of file stm32f769i_eval_nor.c.

References BLOCKERASE_TIMEOUT, NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, and norHandle.

uint8_t BSP_NOR_Erase_Chip ( void  )

Erases the entire NOR chip.

Return values:
NORmemory status

Definition at line 323 of file stm32f769i_eval_nor.c.

References CHIPERASE_TIMEOUT, NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, and norHandle.

uint8_t BSP_NOR_Init ( void  )

Initializes the NOR device.

Return values:
NORmemory status

Definition at line 145 of file stm32f769i_eval_nor.c.

References BSP_NOR_MspInit(), CONTINUOUSCLOCK_FEATURE, NOR_BURSTACCESS, NOR_MEMORY_WIDTH, NOR_STATUS_ERROR, NOR_STATUS_OK, NOR_WRITEBURST, norHandle, and Timing.

void BSP_NOR_MspDeInit ( NOR_HandleTypeDef *  norHandle,
void *  Params 
)

DeInitializes NOR MSP.

Parameters:
norHandle,:NOR handle
Params
Return values:
None

Definition at line 416 of file stm32f769i_eval_nor.c.

Referenced by BSP_NOR_DeInit().

void BSP_NOR_MspInit ( NOR_HandleTypeDef *  norHandle,
void *  Params 
)

Initializes the NOR MSP.

Parameters:
norHandle,:NOR handle
Params
Return values:
None

Definition at line 362 of file stm32f769i_eval_nor.c.

Referenced by BSP_NOR_Init().

uint8_t BSP_NOR_ProgramData ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Programs an amount of data to the NOR device.

Parameters:
uwStartAddress,:Write start address
pData,:Pointer to data to be written
uwDataSize,:Size of data to write
Return values:
NORmemory status

Definition at line 282 of file stm32f769i_eval_nor.c.

References NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, norHandle, and PROGRAM_TIMEOUT.

uint8_t BSP_NOR_Read_ID ( NOR_IDTypeDef *  pNOR_ID)

Reads NOR flash IDs.

Parameters:
pNOR_ID: Pointer to NOR ID structure
Return values:
NORmemory status

Definition at line 344 of file stm32f769i_eval_nor.c.

References NOR_STATUS_ERROR, NOR_STATUS_OK, and norHandle.

uint8_t BSP_NOR_ReadData ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Reads an amount of data from the NOR device.

Parameters:
uwStartAddress,:Read start address
pData,:Pointer to data to be read
uwDataSize,:Size of data to read
Return values:
NORmemory status

Definition at line 223 of file stm32f769i_eval_nor.c.

References NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, and norHandle.

void BSP_NOR_ReturnToReadMode ( void  )

Returns the NOR memory to read mode.

Return values:
None

Definition at line 239 of file stm32f769i_eval_nor.c.

References norHandle.

uint8_t BSP_NOR_WriteData ( uint32_t  uwStartAddress,
uint16_t *  pData,
uint32_t  uwDataSize 
)

Writes an amount of data to the NOR device.

Parameters:
uwStartAddress,:Write start address
pData,:Pointer to data to be written
uwDataSize,:Size of data to write
Return values:
NORmemory status

Definition at line 251 of file stm32f769i_eval_nor.c.

References NOR_DEVICE_ADDR, NOR_STATUS_ERROR, NOR_STATUS_OK, norHandle, and PROGRAM_TIMEOUT.

Generated on Thu May 25 2017 11:03:12 for STM32769I_EVAL BSP User Manual by   doxygen 1.7.6.1