Main Page | File List | Globals

flash_lib.c File Reference

#include "config.h"
#include "flash_lib.h"
#include "flash_drv.h"

Go to the source code of this file.

Functions

void flash_wr_byte (Uint32 addr_byte, Uchar value)
 This function allows to write a byte in the flash memory.

Uchar flash_wr_block (Byte _MemType_ *src, Uint32 dst, Uchar n)
 This function allows to write up to 256 bytes in the flash memory. This function manages alignement issue.

void flash_erase (void)
 This function erases the whole flash memory.

Uchar flash_rd_byte (Uchar code *addr)
 This function allows to read a byte in the flash memory.

Uint16 flash_rd_word (Uint16 code *addr)
 This function allows to read a word in the flash memory.


Function Documentation

void flash_erase void   ) 
 

This function erases the whole flash memory.

Definition at line 148 of file flash_lib.c.

Uchar flash_rd_byte Uchar code *  addr  ) 
 

This function allows to read a byte in the flash memory.

Parameters:
*add Address of flash memory to read.
Returns:
byte Read value

Definition at line 165 of file flash_lib.c.

Referenced by flash_rd_word(), and flash_wr_block().

Uint16 flash_rd_word Uint16 code *  addr  ) 
 

This function allows to read a word in the flash memory.

Parameters:
*add Address of flash memory to read.
Returns:
word Read value

Definition at line 176 of file flash_lib.c.

References flash_rd_byte().

Referenced by flash_wr_block().

Uchar flash_wr_block Byte _MemType_ *  src,
Uint32  dst,
Uchar  n
 

This function allows to write up to 256 bytes in the flash memory. This function manages alignement issue.

Parameters:
*src Address of data to write.
dst Start address in flash memory where write data
n number of byte to write

Definition at line 42 of file flash_lib.c.

References flash_rd_byte(), and flash_rd_word().

Referenced by flash_wr_byte().

void flash_wr_byte Uint32  addr_byte,
Uchar  value
 

This function allows to write a byte in the flash memory.

Parameters:
addr_byte Address in flash memory to write the byte.
value Value to write in the flash memory

Definition at line 33 of file flash_lib.c.

References flash_wr_block().


Generated on Thu Apr 1 15:59:37 2004 for Flash Library by doxygen 1.3.6