ROBOOT_FLASH_Operations_T Struct Reference
[ROBOOT flash interface]


Detailed Description

ROBOOT flash interface structure.

Definition at line 53 of file roboot_if_flash.h.

#include <roboot_if_flash.h>


Data Fields

uint32_t(* FlashUnlock )(uint32_t page_address)
void(* FlashLock )(uint32_t page_address)
uint32_t(* FlashErasePage )(uint32_t page_address)
uint32_t(* FlashWriteData )(uint32_t write_addr, const uint8_t *chunk, uint32_t chunk_len)


Field Documentation

uint32_t(* ROBOOT_FLASH_Operations_T::FlashUnlock)(uint32_t page_address)

Unlocks FLASH memory for subsequent erase (once) and write (many) operations. This function is called ONCE before erasing and writing of the FLASH content for a given page (sector).

Parameters:
page_address address of FLASH region for requested unlock operation
Returns:
non zero value if unlock operation failed

Referenced by ROBOOT_InitProcessing().

void(* ROBOOT_FLASH_Operations_T::FlashLock)(uint32_t page_address)

Locks FLASH memory after bootloader finished erase and write operations. This function is called ONCE after erasing and writing of the FLASH content is completed for a given page (sector).

Parameters:
page_address address of FLASH region for requested lock operation

Referenced by ROBOOT_InitProcessing().

uint32_t(* ROBOOT_FLASH_Operations_T::FlashErasePage)(uint32_t page_address)

Erases a FLASH page (sector) at the specified address.

Parameters:
page_address address of FLASH page (sector) for requested erase operation
Returns:
non zero value if erase operation failed

Referenced by ROBOOT_InitProcessing().

uint32_t(* ROBOOT_FLASH_Operations_T::FlashWriteData)(uint32_t write_addr, const uint8_t *chunk, uint32_t chunk_len)

Writes a supplied buffer content into FLASH at the specified address. This function should check (verify) if written data is equal to requested one.

Parameters:
write_addr address of FLASH page for requested write operation
chunk content to write
chunk_len length (in bytes) of the content requested for write
Returns:
non zero value if write operation failed

Referenced by ROBOOT_InitProcessing().


The documentation for this struct was generated from the following file:

Generated on Tue Mar 9 07:57:33 2010 for 'ROBOOT' by  doxygen 1.5.8