IR_CMD_Handler

This commit is contained in:
2024-08-25 20:27:17 +03:00
parent 55e8424f78
commit 148d748c20
17 changed files with 853 additions and 469 deletions

View File

@ -13,19 +13,19 @@
#define MAX_NUMBER_SHOTS_IN_PROGRAMS 31
#define MAX_NUMBER_PROGRAMS_IN_MACRO 16
struct StructNumberScrewCount{
unsigned char number;
typedef struct MacroProgram{
unsigned char id;
unsigned char speedScrew;
unsigned char countRepeat;
unsigned char options;
};
}MacroProgram;
struct StructNumberScrew{
unsigned char number;
typedef struct ProgramShot{
unsigned char id;
unsigned char speedScrew;
};
}ProgramShot;
struct StructShot {
typedef struct Shot {
unsigned char countRepeatShot;
unsigned char speedRollerTop;
unsigned char speedRollerBottom;
@ -33,20 +33,20 @@ struct StructShot {
unsigned char rotationAxial;
unsigned char rotationHorizontal;
unsigned char rotationVertical;
};
}Shot;
struct StructProgram {
typedef struct Program {
unsigned char countRepeat;
unsigned char options;
struct StructNumberScrew numberScrew[MAX_NUMBER_SHOTS_IN_PROGRAMS];
};
ProgramShot shots[MAX_NUMBER_SHOTS_IN_PROGRAMS];
}Program;
struct StructMacro {
struct StructNumberScrewCount numberScrewCount[MAX_NUMBER_PROGRAMS_IN_MACRO];
};
typedef struct Macro {
MacroProgram programs[MAX_NUMBER_PROGRAMS_IN_MACRO];
} Macro;
void SaveShot(unsigned char number, struct StructShot* shot);
void SaveShot(unsigned char number, struct Shot* shot);
void FLASH_WriteBlock(uint8_t *writeAddr, unsigned char *flashWrBufPtr);
struct StructShot GetShot( unsigned char number );
Shot GetShot( unsigned char number );