EEprom Operations






Misc >
Help >
FAQ >


Links >



EEprom Operations


Functions

void eeprom_write_byte (unsigned char *p, const unsigned char value)
void eeprom_write_short (unsigned short *p, const unsigned short value)

Variables

unsigned char eeprom_low
unsigned char eeprom_high

Detailed Description

This module provides operations to write to the 68HC11 internal eeprom.

Function Documentation

void eeprom_write_byte ( unsigned char * p,
const unsigned char value
)

Write a byte in eeprom.

Write the byte value in the eeprom at address p. The eeprom byte location is erased first if write operation is not possible (when at least one bit must be set to 1).

Parameters:
p Address of the eeprom byte to write
value Value to write
See also:
eeprom_write_short

Definition at line 195 of file burner.c.

void eeprom_write_short ( unsigned short * p,
const unsigned short value
)

Write a short in eeprom.

Write the short value in the eeprom at address p. The eeprom byte locations are erased first if write operation is not possible (when at least one bit must be set to 1).

Parameters:
p Address of the eeprom byte to write
value Value to write
See also:
eeprom_write_byte

Variable Documentation

unsigned char eeprom_low

Low address of internal EEPROM bank.

The eeprom_low variable represents the first byte of the internal EEPROM. Its address is fixed at link time.

Definition at line 67 of file eeprom.h.

Copyright (C) 1999, 2000, 2001, 2002, 2003 Stéphane Carrez, France
Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


AltStyle によって変換されたページ (->オリジナル) /