mirror of
https://github.com/DashyFox/StackSport.git
synced 2025-06-27 20:59:36 +00:00
fix and update save funcs
This commit is contained in:
@ -49,7 +49,7 @@ typedef struct __attribute__((packed)) {
|
||||
} Shot;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
unsigned char isExist;
|
||||
unsigned char shotCount; //isExist
|
||||
unsigned char countRepeat;
|
||||
unsigned char options;
|
||||
} ProgramHeader;
|
||||
@ -65,7 +65,7 @@ typedef struct __attribute__((packed)) {
|
||||
} Program;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
unsigned char isExist;
|
||||
unsigned char programmCount; //isExist
|
||||
} MacroHeader;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
@ -126,18 +126,23 @@ MemoryStatus EEPROM_INIT();
|
||||
MemoryStatus EEPROM_EARSE();
|
||||
|
||||
MemoryStatus FLASH_WriteBlock(uint16_t startAddr, uint8_t number,
|
||||
uint8_t *writeData, uint16_t dataSize);
|
||||
uint8_t *writeData, uint16_t dataSize, uint16_t blockSize);
|
||||
MemoryStatus FLASH_ReadBlock(uint16_t startAddr, uint8_t number,
|
||||
uint8_t *readData, uint16_t dataSize);
|
||||
MemoryStatus FLASH_DelBlock(uint16_t startAddr, uint8_t number,
|
||||
uint16_t dataSize);
|
||||
|
||||
MemoryStatus saveShot(unsigned char number, Shot *shot);
|
||||
MemoryStatus getShot(unsigned char number, Shot *shot);
|
||||
MemoryStatus delShot(unsigned char number);
|
||||
|
||||
MemoryStatus saveProg(unsigned char number, Program *prog);
|
||||
MemoryStatus getProg(unsigned char number, Program *prog);
|
||||
MemoryStatus delProg(unsigned char number);
|
||||
|
||||
MemoryStatus saveMacro(unsigned char number, Macro *macro);
|
||||
MemoryStatus getMacro(unsigned char number, Macro *macro);
|
||||
MemoryStatus delMacro(unsigned char number);
|
||||
|
||||
MemoryStatus saveInfoBlock();
|
||||
MemoryStatus getInfoBlock();
|
||||
|
@ -57,6 +57,8 @@ void doShot(Shot*);
|
||||
void doShotForever(uint8_t number);
|
||||
|
||||
uint8_t prepareShot(uint8_t number);
|
||||
//uint8_t prepareProgramm(uint8_t number);
|
||||
//uint8_t prepareMacro(uint8_t number);
|
||||
|
||||
void startShooting();
|
||||
void stopShooting();
|
||||
@ -76,13 +78,4 @@ void setScrewkSpeed(uint8_t speed);
|
||||
//(-v) 0 .. 100(stop) .. 200(+v)
|
||||
void setRollersSpeed(uint8_t up, uint8_t down); //(-v) 0 . 100(stop) . 200(+v)
|
||||
|
||||
void startProgram(); // shot sequence
|
||||
void startMacro(); // shot sequence
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* INC_ROBOTFUNCTIONS_H_ */
|
||||
|
Reference in New Issue
Block a user