28 lines
468 B
C
28 lines
468 B
C
|
|
|
||
|
|
#ifndef __MOD_H
|
||
|
|
#define __MOD_H
|
||
|
|
|
||
|
|
#include "main.h"
|
||
|
|
|
||
|
|
typedef void (*ToggleFunc)(void);
|
||
|
|
typedef void (*DelayFunc)(uint32_t);
|
||
|
|
|
||
|
|
typedef struct
|
||
|
|
{
|
||
|
|
void (*Loop)(ToggleFunc toggle, DelayFunc delayFunc, uint8_t iterations, uint32_t delayTime);
|
||
|
|
} MODClassStruct;
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
const char *e_val;
|
||
|
|
const char *t_val;
|
||
|
|
const char *r_val;
|
||
|
|
const char *c_val;
|
||
|
|
} LoraCommandParams;
|
||
|
|
|
||
|
|
extern MODClassStruct MODClass;
|
||
|
|
extern LoraCommandParams cmd_params[];
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#endif
|