Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Safty/Safty.h
- Revision:
- 0:669ef71cba68
- Child:
- 30:8f092276b2ba
diff -r 000000000000 -r 669ef71cba68 Safty/Safty.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Safty/Safty.h Sat Sep 08 06:05:22 2018 +0000
@@ -0,0 +1,27 @@
+#ifndef SAFTY_H_
+#define SAFTY_H_
+
+#include <stdint.h>
+#include "Input/Switch/Switch.h"
+
+namespace SAFTY {
+ #define DRIVECHECK_LIMITSW SWITCH::LimitSw::IsPressed(11)
+
+ typedef struct
+ {
+ enum Elem
+ {
+ None = 0x00,
+ DrivePowerLost = 0x01,
+ ControllerLost = 0x02,
+ };
+ }Error;
+ typedef uint8_t ErrorStatus;
+
+ class ErrorCheck {
+ public:
+ static ErrorStatus Check();
+ };
+}
+
+#endif