custom-board-bundle-sample-.../firmware/console/tunerstudio/tunerstudio_algo.h

37 lines
773 B
C

/**
* @file tunerstudio_algo.h
*
* @date Oct 22, 2013
* @author Andrey Belomutskiy, (c) 2012-2013
*/
#ifndef TUNERSTUDIO_ALGO_H_
#define TUNERSTUDIO_ALGO_H_
#define TS_SIGNATURE "MShift v0.01"
#include <stdint.h>
typedef struct {
int queryCommandCounter;
int outputChannelsCommandCounter;
int readPageCommandsCounter;
int burnCommandCounter;
int errorCounter;
} TunerStudioState;
int tunerStudioHandleCommand(short command);
void handleTestCommand(void);
void handleQueryCommand(void);
void handleOutputChannelsCommand(void);
void handleValueWriteCommand(void);
void handlePageReadCommand(void);
void handleBurnCommand(void);
void tunerStudioWriteData(const uint8_t * buffer, int size);
void tunerStudioDebug(char *msg);
#endif /* TUNERSTUDIO_ALGO_H_ */