Michael Spencer / Smoothie

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SwitchPublicAccess.h Source File

SwitchPublicAccess.h

00001 #ifndef __SWITCHPUBLICACCESS_H
00002 #define __SWITCHPUBLICACCESS_H
00003 
00004 // addresses used for public data access
00005 #define switch_checksum              CHECKSUM("switch")
00006 #define fan_checksum                 CHECKSUM("fan")
00007 #define state_checksum               CHECKSUM("state")
00008 #define value_checksum               CHECKSUM("value")
00009 
00010 struct pad_switch {
00011     int name;
00012     bool state;
00013     float value;
00014 };
00015 
00016 #endif // __SWITCHPUBLICACCESS_H