47 lines
764 B
C
47 lines
764 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <rb2/regbus.h>
|
|
|
|
#define EEF_BOOTSYS 0x0000
|
|
#define EEF_FLASHIMG 0x0001
|
|
#define EEF_BOOTPARAM 0x0002
|
|
|
|
struct eefile {
|
|
int32_t name;
|
|
int32_t size;
|
|
};
|
|
|
|
|
|
struct _i2cee {
|
|
uint8_t emask;
|
|
|
|
|
|
int32_t size;
|
|
};
|
|
|
|
extern struct _i2cee i2cee;
|
|
|
|
|
|
uint8_t i2cee_register_proc(RB2_REGISTER *reg,RB2_TELEGRAM *telegram);
|
|
|
|
void i2cee_identify(void); // Identifiziere externe EEPROMS
|
|
int32_t i2cee_size(void); // Gibt die Gesamtgröße der externen EEPROMS zurück
|
|
|
|
int i2cee_load(int32_t base,void *p,int16_t len);
|
|
int i2cee_save(int32_t base,void *p,int16_t len);
|
|
|
|
int32_t i2cee_defrag(void);
|
|
int32_t i2cee_create_file(int32_t name,int32_t size);
|
|
|
|
|
|
typedef struct {
|
|
int32_t tag,
|
|
offset,
|
|
size,
|
|
reserve;
|
|
} part_t;
|
|
|
|
|
|
|