ProDevelopTeam#MasterRace / Mbed 2 deprecated ArtnetDMX

Dependencies:   mbed DMX TextLCD mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Settings.h Source File

Settings.h

00001 #ifndef SETTINGS_H
00002 #define SETTINGs_H
00003 #include "mbed.h"
00004 class Settings
00005 {
00006     public:
00007         Settings();
00008         ~Settings();
00009         
00010         void V_SetLeft(bool B_Left);
00011         void V_SetRight(bool B_Right);
00012         void V_SetLine(uint32_t I32_Line);
00013         void V_SetOldLine(uint32_t I32_OldLine);
00014         void V_SetOK(bool B_OK);
00015         //void V_SetCounter(uint32_t I32_LineCounter);
00016         void V_SetOutput1(uint32_t I32_Universe);
00017         void V_SetOutput2(uint32_t I32_Universe);
00018         void V_SetOutput3(uint32_t I32_Universe);
00019         void V_SetMenu(bool B_Menu);
00020         
00021         bool B_GetLeft();
00022         bool B_GetRight();
00023         bool B_GetOK();
00024         bool B_GetMenu();
00025             
00026         uint32_t I32_GetLine();
00027         uint32_t I32_GetOutput1();
00028         uint32_t I32_GetOutput2();
00029         uint32_t I32_GetOutput3();
00030         uint32_t I32_GetOldLine();
00031         
00032     private:
00033         uint32_t I32_m_Output1;
00034         uint32_t I32_m_Output2;
00035         uint32_t I32_m_Output3;
00036         uint32_t I32_m_Line;
00037         uint32_t I32_m_OldLine;
00038         bool B_m_Left;
00039         bool B_m_Right;
00040         bool B_m_OK;
00041         bool B_m_Menu;
00042 };
00043 #endif
00044 
00045 Settings::Settings()
00046 {
00047     B_m_Left = false;
00048     B_m_Right = false;
00049     B_m_OK = false;
00050     B_m_Menu = false;
00051     I32_m_Line = 0;
00052     I32_m_OldLine = 0;
00053     I32_m_Output1 = 0;
00054     I32_m_Output2 = 0;
00055     I32_m_Output3 = 0;
00056 }
00057 
00058 Settings::~Settings()
00059 {
00060     delete &B_m_Right;
00061     delete &B_m_Left;
00062     delete &B_m_OK;
00063     delete &B_m_Menu;
00064     delete &I32_m_Line;
00065     delete &I32_m_Output1;
00066     delete &I32_m_Output2;
00067     delete &I32_m_Output3;
00068     delete &I32_m_OldLine;
00069 }
00070 
00071 void Settings::V_SetLine(uint32_t I32_Line)
00072 {
00073     I32_m_Line = I32_Line;
00074 }
00075 
00076 void Settings::V_SetMenu(bool B_Menu)
00077 {
00078     B_m_Menu = B_Menu;
00079 }
00080 
00081 void Settings::V_SetOutput1(uint32_t I32_Universe)
00082 {
00083     I32_m_Output1 = I32_Universe;
00084 }
00085 
00086 void Settings::V_SetOutput2(uint32_t I32_Universe)
00087 {
00088     I32_m_Output2 = I32_Universe;
00089 }
00090 
00091 void Settings::V_SetOldLine(uint32_t I32_OldLine)
00092 {
00093     I32_m_OldLine = I32_OldLine;
00094 }
00095 
00096 void Settings::V_SetOutput3(uint32_t I32_Universe)
00097 {
00098     I32_m_Output3 = I32_Universe;
00099 }
00100 
00101 void Settings::V_SetOK(bool B_OK)
00102 {
00103     B_m_OK = B_OK;
00104 }
00105 
00106 void Settings::V_SetLeft(bool B_Left)
00107 {
00108     B_m_Left = B_Left;   
00109 }
00110 
00111 void Settings::V_SetRight(bool B_Right)
00112 {
00113     B_m_Right = B_Right;
00114 }
00115 
00116 bool Settings::B_GetOK()
00117 {
00118     return B_m_OK;
00119 }
00120 
00121 bool Settings::B_GetLeft()
00122 {
00123     return B_m_Left;
00124 }
00125 
00126 bool Settings::B_GetMenu()
00127 {
00128     return B_m_Menu;
00129 }
00130 
00131 bool Settings::B_GetRight()
00132 {
00133     return B_m_Right;
00134 }
00135 
00136 uint32_t Settings::I32_GetLine()
00137 {
00138     return I32_m_Line;
00139 }
00140 
00141 uint32_t Settings::I32_GetOutput1()
00142 {
00143     return I32_m_Output1;
00144 }
00145 
00146 uint32_t Settings::I32_GetOutput2()
00147 {
00148     return I32_m_Output2;
00149 }
00150 
00151 uint32_t Settings::I32_GetOutput3()
00152 {
00153     return I32_m_Output3;
00154 }
00155 
00156 uint32_t Settings::I32_GetOldLine()
00157 {
00158     return I32_m_OldLine;
00159 }