summaryrefslogtreecommitdiffstats
path: root/firmware/onoffswitch.h
blob: 0f36a3bbabbb80702ca7720c8b407023b809ea37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef ONOFFSWITCH_H_
#define ONOFFSWITCH_H_

enum onoff_state {
	ONOFF_IS_OFF,		/* Switch is "off". */
	ONOFF_IS_ON,		/* Switch is "on". */
	ONOFF_SWITCHED_OFF,	/* Switch was just turned "off". */
	ONOFF_SWITCHED_ON,	/* Switch was just turned "on". */
};

void onoffswitch_init(void);
enum onoff_state onoffswitch_get_state();

#endif /* ONOFFSWITCH_H_ */
bues.ch cgit interface