大季 矢花 / Mbed 2 deprecated MB2019_main_11_19_1735

Dependencies:   mbed

Safty/Safty.h

Committer:
yabahiro
Date:
2019-11-19
Revision:
56:61ebd4b759b4
Parent:
30:8f092276b2ba

File content as of revision 56:61ebd4b759b4:

#ifndef SAFTY_H_
#define SAFTY_H_

#include <stdint.h>
#include "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