stepRocker servo Open Source TMCL
1.00
|
EEPROM access functions. More...
#include <stdlib.h>
#include "derivative.h"
#include "bits.h"
#include "stepRocker.h"
#include "SPI.h"
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... | |
EEPROM access functions.
This file contains EEPROM access functions.
Copy block from EEPROM to RAM.
Address | EEPROM start address (0..16383) |
Block | RAM start address |
Size | Length 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.
Address | EEPROM location (0..16383) |
This function reads one byte from the EEPROM.
Copy memory block to EEPROM.
Address | EEPROM location (0..16383) |
Block | pointer at memory block to be copied to the EEPROM |
Size | size 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.