Taiki Maruyama / Mbed 2 deprecated MainBoard2019_Auto2

Dependencies:   mbed QEI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Process.h Source File

Process.h

00001 #ifndef PROCESS_H_
00002 #define PROCESS_H_
00003 
00004 #include "mbed.h"
00005 
00006 #define BUZZER_PIN PA_5
00007 #define EMG_0 LimitSw::IsPressed(0)
00008 #define EMG_1 LimitSw::IsPressed(1)
00009 
00010 void SystemProcess();
00011 
00012 typedef union
00013 {
00014     struct
00015     {
00016         unsigned int blue : 8;
00017         unsigned int green : 8;
00018         unsigned int red : 8;
00019         unsigned int : 8;
00020     };
00021     uint32_t code;
00022 } TapeLedData;
00023 
00024 enum TapeLED_Mode
00025 {
00026     EMS,
00027     Normal,
00028     Launch,
00029 };
00030 
00031 enum TapeLED_Color
00032 {
00033     Black                   = 0x000000,
00034     // Red                  = 0xff0000,
00035     Green                   = 0x008000,
00036     Blue                    = 0x0000ff,
00037     White                   = 0xffffff,
00038     // Orange                   = 0xffa500,
00039     // Yellow                   = 0xffff00,
00040     // Purple                   = 0x800080,
00041     // Cyan                 = 0x00ffff,
00042     // Magenta                  = 0xff00ff,
00043     // Lime                 = 0x00ff00
00044 
00045 
00046     Dimgray                 = 0x696969,
00047     Gray                    = 0x808080,
00048     DarkGray                = 0xa9a9a9,
00049     Silver                  = 0xc0c0c0,
00050     LightGray               = 0xd3d3d3,
00051     Gainsboro               = 0xdcdcdc,
00052     Whitesmoke              = 0xf5f5f5,
00053     Snow                    = 0xfffafa,
00054     Ghostwhite              = 0xf8f8ff,
00055     Floralwhite             = 0xfffaf0,
00056     Linen                   = 0xfaf0e6,
00057     Antiquewhite            = 0xfaebd7,
00058     Papayawhip              = 0xffefd5,
00059     Blanchedalmond          = 0xffebcd,
00060     Bisque                  = 0xffe4c4,
00061     Moccasin                = 0xffe4b5,
00062     Navajowhite             = 0xffdead,
00063     Peachpuff               = 0xffdab9,
00064     Mistyrose               = 0xffe4e1,
00065     Lavenderblush           = 0xfff0f5,
00066     Seashell                = 0xfff5ee,
00067     Oldlace                 = 0xfdf5e6,
00068     Ivory                   = 0xfffff0,
00069     Honeydew                = 0xf0fff0,
00070     Mintcream               = 0xf5fffa,
00071     Azure                   = 0xf0ffff,
00072     Aliceblue               = 0xf0f8ff,
00073     Lavender                = 0xe6e6fa,
00074     Lightsteelblue          = 0xb0c4de,
00075     Lightslategray          = 0x778899,
00076     Slategray               = 0x708090,
00077     Steelblue               = 0x4682b4,
00078     Royalblue               = 0x4169e1,
00079     Midnightblue            = 0x191970,
00080     Navy                    = 0x000080,
00081     Darkblue                = 0x00008b,
00082     Mediumblue              = 0x0000cd,
00083     Dodgerblue              = 0x1e90ff,
00084     Cornflowerblue          = 0x6495ed,
00085     Deepskyblue             = 0x00bfff,
00086     Lightskyblue            = 0x87cefa,
00087     Skyblue                 = 0x87ceeb,
00088     Lightblue               = 0xadd8e6,
00089     Powderblue              = 0xb0e0e6,
00090     Paleturquoise           = 0xafeeee,
00091     // Lightcyan                = 0xe0ffff,
00092     Cyan                    = 0x00ffff,
00093     // Aqua                 = 0x00ffff,
00094     Turquoise               = 0x40e0d0,
00095     Mediumturquoise         = 0x48d1cc,
00096     Darkturquoise           = 0x00ced1,
00097     Lightseagreen           = 0x20b2aa,
00098     Cabetblue               = 0x5f9ea0,
00099     Darkcyan                = 0x008b8b,
00100     Teal                    = 0x008080,
00101     Darkslategray           = 0x2f4f4f,
00102     Darkgreen               = 0x006400,
00103     Forestgreen             = 0x228b22,
00104     Seagreen                = 0x2e8b57,
00105     Mediumseagreen          = 0x3cb371,
00106     Mediumaquamarine        = 0x66cdaa,
00107     Darkseagreen            = 0x8fbc8f,
00108     Aquamarine              = 0x7fffd4,
00109     Palegreen               = 0x98fb98,
00110     Lightgreen              = 0x90ee90,
00111     Springgreen             = 0x00ff7f,
00112     Mediumspringgreen       = 0x00fa9a,
00113     Lawngreen               = 0x7cfc00,
00114     Chartreuse              = 0x7fff00,
00115     Greenyellow             = 0xadff2f,
00116     Lime                    = 0x00ff00,
00117     Limegreen               = 0x32cd32,
00118     Yellowgreen             = 0x9acd32,
00119     Darkolivegreen          = 0x556b2f,
00120     Olivedrab               = 0x6b8e23,
00121     Olive                   = 0x808000,
00122     Darkkhaki               = 0xbdb76b,
00123     Palegoldenrod           = 0xeee8aa,
00124     Cornsilk                = 0xfff8dc,
00125     Beige                   = 0xf5f5dc,
00126     Lightyellow             = 0xffffe0,
00127     Lightgoldenrodyellow    = 0xfafad2,
00128     Lemonchiffon            = 0xfffacd,
00129     Wheat                   = 0xf5deb3,
00130     Burlywood               = 0xdeb887,
00131     Tan                     = 0xd2b48c,
00132     Khaki                   = 0xf0e68c,
00133     Yellow                  = 0xffff00,
00134     Gold                    = 0xffd700,
00135     // Orange                   = 0xffa500,
00136     Orange                  = 0xff2500,
00137     Sandybrown              = 0xf4a460,
00138     Darkorange              = 0xff8c00,
00139     Goldenrod               = 0xdaa520,
00140     Peru                    = 0xcd853f,
00141     Darkgoldenrod           = 0xb8860d,
00142     Chocolate               = 0xd2691e,
00143     Sienna                  = 0xa0522d,
00144     Saddlebrown             = 0x8b4513,
00145     Marron                  = 0x800000,
00146     Darkred                 = 0x8b0000,
00147     Brown                   = 0xa52a2a,
00148     Firebrick               = 0xb22222,
00149     Indeanred               = 0xcd5c5c,
00150     Rosybrown               = 0xbc8f8f,
00151     Darksalmon              = 0xe9967a,
00152     Lightcoral              = 0xf08080,
00153     Salmon                  = 0xfa8072,
00154     Lightsalmon             = 0xffa07a,
00155     Coral                   = 0xff7f50,
00156     Tomato                  = 0xff6347,
00157     Orangered               = 0xff4500,
00158     Red                     = 0xff0000,
00159     Crimson                 = 0xdc143c,
00160     Mediumvioletred         = 0xc71585,
00161     Deeppink                = 0xff1493,
00162     Hotpink                 = 0xff69b4,
00163     Palevioletred           = 0xdb7093,
00164     Pink                    = 0xffc0cb,
00165     Lightpink               = 0xffb6c1,
00166     Thistle                 = 0xd8bfd8,
00167     Magenta                 = 0xff00ff,
00168     // Fuchsia                  = 0xff00ff,
00169     Violet                  = 0xee82ee,
00170     Plum                    = 0xdda0dd,
00171     Orchid                  = 0xda70d6,
00172     Mediumorchid            = 0xba55d3,
00173     Darkorchid              = 0x9932cc,
00174     Darkviolet              = 0x9400d3,
00175     Darkmagenta             = 0x8b008b,
00176     Purple                  = 0x800080,
00177     Indigo                  = 0x4b0082,
00178     Darkslateblue           = 0x483d8b,
00179     Blueviolet              = 0x8a2be2,
00180     Mediumpurple            = 0x9370db,
00181     Slateblue               = 0x6a5acd,
00182     Mediumslateblue         = 0x7b68ee
00183 };
00184 
00185 extern TapeLedData sendLedData;
00186 
00187 #endif