Ben Evans University Second Year Project. Game Called Defender.
Embed:
(wiki syntax)
Show/hide line numbers
SDErrors.h
00001 #ifndef SDERRORS_H 00002 #define SDERRORS_H 00003 00004 // Included Headers ------------------------------------------------------------ 00005 #include "mbed.h" 00006 #include "Gamepad.h" 00007 00008 /** SD Errors class errors 00009 * @brief Errors for SD related functions parent class 00010 * @author Benjamin Evans, University of Leeds 00011 * @date May 2020 00012 */ 00013 class SDErrors { 00014 public: 00015 // Function prototypes ----------------------------------------------------- 00016 00017 /** Gets error flag 00018 * @return error_; 00019 */ 00020 bool get_error(); 00021 00022 /** Set error 00023 * @param error; 00024 */ 00025 void set_error(bool error); 00026 00027 protected: 00028 // Variables ---------------------------------------------------------------- 00029 00030 /** Flag for error, 00031 * @note true = error 00032 */ 00033 bool error_; 00034 }; 00035 00036 #endif
Generated on Fri Aug 5 2022 06:55:07 by
1.7.2