#include "t89c51cc02.h"
#include "datatypes.h"
Go to the source code of this file.
Defines | |
#define | EEPROM_CANID_RECV 0 |
#define | EEPROM CANID_SEND 2 |
#define | EEPROM_MONITOR 4 |
#define | EEPROM_DIRECTION 8 |
#define | EEPROM_BOUNDARY 12 |
#define | EEPROM_CHECKSUM 48 |
#define | EEPROM_wait() while((EECON&MSK_EECON_EEBUSY)!=0) |
Functions | |
BYTE | EEPROM_read (BYTE) |
read a byte from the EEPROM | |
void | EEPROM_write (BYTE, BYTE) |
write a byte into the EEPROM latches | |
void | EEPROM_flush (void) |
writes latched EEPROM contents to the EEPROM |
Definition in file eeprom.h.
|
offset address for CAN sending ID inside of EEPROM |
|
offset address into EEPROM for storing boundary values for all sensors Definition at line 23 of file eeprom.h. Referenced by Command_ReadDefaultConfiguration(). |
|
offset address for CAN reception ID inside of EEPROM |
|
offset address into EEPROM to store the checksum Definition at line 25 of file eeprom.h. Referenced by Command_ReadDefaultConfiguration(). |
|
offset address into EEPROM to store monitoring direction bits Definition at line 21 of file eeprom.h. Referenced by Command_ReadDefaultConfiguration(). |
|
offset address into EEPROM to store monitor flags Definition at line 19 of file eeprom.h. Referenced by Command_ReadDefaultConfiguration(). |
|
waits while the EEPROM is busy Definition at line 27 of file eeprom.h. Referenced by EEPROM_flush(), EEPROM_read(), and EEPROM_write(). |
|
writes latched EEPROM contents to the EEPROM
Prepare the new contents with EEPROM_write before writing them to the EEPROM. Definition at line 77 of file eeprom.c. References EEPROM_wait. |
|
read a byte from the EEPROM
A byte is read from the EEPROM at the given EEPROM address.
Definition at line 23 of file eeprom.c. References EEPROM_wait, and eepromptr. Referenced by Command_ReadDefaultConfiguration(). |
|
write a byte into the EEPROM latches
This function only latches data but the data is not written to the EEPROM.
Definition at line 54 of file eeprom.c. References EEPROM_wait, and eepromptr. |