#include <bom.h>
Go to the source code of this file.
Defines | |
#define | EEPROM_ROBOT_ID_ADDR 0x10 |
#define | EEPROM_BOM_TYPE_ADDR 0x14 |
Functions | |
int | eeprom_put_byte (unsigned int addr, unsigned char byte) |
store a byte to eeproem | |
int | eeprom_get_byte (unsigned int addr, unsigned char *byte) |
reads a byte from eeprom | |
unsigned char | get_robotid (void) |
get stored robot ID | |
unsigned char | get_bom_type (void) |
get stored robot ID |
Contains functions and definitions for reading and writing to eeprom
int eeprom_get_byte | ( | unsigned int | addr, | |
unsigned char * | byte | |||
) |
reads a byte from eeprom
Pass it thge address and a pointer to a byte where the byte at the address will be stored
int eeprom_put_byte | ( | unsigned int | addr, | |
unsigned char | byte | |||
) |
store a byte to eeproem
unsigned char get_bom_type | ( | void | ) |
get stored robot ID
checks that EEPROM has been programed with an BOM type and returns it
unsigned char get_robotid | ( | void | ) |
get stored robot ID
checks that EEPROM has been programed with an ID and returns it