SingingCat 0
application
command-handler.h
1#ifndef COMMAND_HANDLER_H
2#define COMMAND_HANDLER_H 1
3
4//#include <main-header.h>
5#include <platform-header.h>
6#include <command-parser.h>
7//#include <routing.h>
13typedef void (*pkt_callback)(struct command *com, struct command *reply);
15//int send_data(struct command *com, const byte *buf, const int size);
16int send_string(struct command *com, const char *format, ...) __attribute__ ((__format__(printf, 2, 3)));
17void getpubkey(struct command *com);
18void setcloudtoken(struct command *com);
19void setdac(struct command *com);
20void dac_timer();
21void set_serial_com(struct command *com);
22void factory_default(struct command *com);
23void micro_strobe(struct command *com);
24struct command *alloc_command();
25void free_command(struct command *com);
26
27typedef struct comnode {
28 struct command command;
29 long allocated; /* seconds since boot when it was allocated. 0 if free */
30} _comnode;
31
32#endif
int void getpubkey(struct command *com)
request the public key of this module
void free_command(struct command *com)
free a command
Definition: queue.c:200
void factory_default(struct command *com)
set the module back to factory default
void micro_strobe(struct command *com)
do a nano strobe
struct command * alloc_command()
allocate a free command
Definition: queue.c:173
void setcloudtoken(struct command *com)
set a token to connect to the cloud
void init_command_handler()
resets the command handler
int com
Definition: command.h:22