Akihiro Nakabayashi
/
MainBoard2018_Auto_Master_A_new
huhuh
Fork of MainBoard2018_Auto_Master_A by
Safty/Safty.h
- Committer:
- 7ka884
- Date:
- 2018-10-01
- Revision:
- 6:10e22bc327ce
- Parent:
- 0:669ef71cba68
File content as of revision 6:10e22bc327ce:
#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