stepRocker servo Open Source TMCL  1.00
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
Functions
Eeprom.c File Reference

EEPROM access functions. More...

#include <stdlib.h>
#include "derivative.h"
#include "bits.h"
#include "stepRocker.h"
#include "SPI.h"
Include dependency graph for Eeprom.c:

Functions

void WriteEepromByte (UINT Address, UCHAR Value)
 Write a byte to the EEPROM. More...
 
void WriteEepromBlock (UINT Address, UCHAR *Block, UINT Size)
 Copy memory block to EEPROM. More...
 
UCHAR ReadEepromByte (UINT Address)
 Read a byte from the EEPROM. More...
 
void ReadEepromBlock (UINT Address, UCHAR *Block, UINT Size)
 Copy block from EEPROM to RAM. More...
 

Detailed Description

EEPROM access functions.

Author
Trinamic Motion Control GmbH & Co KG
Version
2.20

This file contains EEPROM access functions.

Function Documentation

ReadEepromBlock ( UINT  Address,
UCHAR Block,
UINT  Size 
)

Copy block from EEPROM to RAM.

Parameters
AddressEEPROM start address (0..16383)
BlockRAM start address
SizeLength of block (bytes)

Read a memory block from the EEPROM. This can also be the entire EEPROM.

ReadEepromByte ( UINT  Address)

Read a byte from the EEPROM.

Parameters
AddressEEPROM location (0..16383)
Returns
byte read from EEPROM

This function reads one byte from the EEPROM.

WriteEepromBlock ( UINT  Address,
UCHAR Block,
UINT  Size 
)

Copy memory block to EEPROM.

Parameters
AddressEEPROM location (0..16383)
Blockpointer at memory block to be copied to the EEPROM
Sizesize of block to be copied (bytes)

This function copies a memory block to the EEPROM. It is capable of filling the entire EEPROM just whith one function call.

WriteEepromByte ( UINT  Address,
UCHAR  Value 
)

Write a byte to the EEPROM.

Parameters
AddressEEPROM location (0..16383)
ValueByte to be written

This function writes a byte to the EEPROM at the specified EEPROM location.