mirror of
https://github.com/DashyFox/StackSport.git
synced 2025-06-28 05:09:32 +00:00
IR_CMD_Handler
This commit is contained in:
@ -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 );
|
||||
|
||||
|
Reference in New Issue
Block a user