Artnet to DMX
Dependencies: mbed DMX TextLCD mbed-rtos
Art-NET to DMX converter.
Read Art-NET and process the data so it can be send by 3 XLR3 outputs for DMX. With a 4x20 display you can choose some options. For example what universe you would like on what output.
This is a project we make as our final project of our 2nd year of university. We study Electronics-ICT / Embedded ICT.
We chose for this amazing platform (MBED LPC1768) because it has al the interfaces and pins we need.
Diff: Settings.h
- Revision:
- 36:dba7a0094213
- Parent:
- 31:f7f44632c3cd
--- a/Settings.h Mon May 23 14:26:36 2016 +0000
+++ b/Settings.h Mon May 23 17:39:39 2016 +0000
@@ -7,49 +7,49 @@
Settings();
~Settings();
- void V_SetInterrupt(bool B_Interrupt);
void V_SetLeft(bool B_Left);
void V_SetRight(bool B_Right);
void V_SetLine(uint32_t I32_Line);
- void V_SetInMenu(bool B_Menu);
+ void V_SetOldLine(uint32_t I32_OldLine);
void V_SetOK(bool B_OK);
- void V_SetCounter(uint32_t I32_LineCounter);
+ //void V_SetCounter(uint32_t I32_LineCounter);
void V_SetOutput1(uint32_t I32_Universe);
void V_SetOutput2(uint32_t I32_Universe);
void V_SetOutput3(uint32_t I32_Universe);
+ void V_SetMenu(bool B_Menu);
- bool B_GetInterrupt();
bool B_GetLeft();
bool B_GetRight();
+ bool B_GetOK();
bool B_GetMenu();
- bool B_GetOK();
uint32_t I32_GetLine();
uint32_t I32_GetOutput1();
uint32_t I32_GetOutput2();
uint32_t I32_GetOutput3();
+ uint32_t I32_GetOldLine();
private:
uint32_t I32_m_Output1;
uint32_t I32_m_Output2;
uint32_t I32_m_Output3;
uint32_t I32_m_Line;
- bool B_m_Interrupt;
+ uint32_t I32_m_OldLine;
bool B_m_Left;
bool B_m_Right;
+ bool B_m_OK;
bool B_m_Menu;
- bool B_m_OK;
};
#endif
Settings::Settings()
{
- B_m_Interrupt = false;
B_m_Left = false;
B_m_Right = false;
+ B_m_OK = false;
B_m_Menu = false;
- B_m_OK = false;
I32_m_Line = 0;
+ I32_m_OldLine = 0;
I32_m_Output1 = 0;
I32_m_Output2 = 0;
I32_m_Output3 = 0;
@@ -57,15 +57,25 @@
Settings::~Settings()
{
- delete &B_m_Interrupt;
delete &B_m_Right;
delete &B_m_Left;
delete &B_m_OK;
- delete &B_m_Menu;
+ delete &B_m_Menu;
delete &I32_m_Line;
delete &I32_m_Output1;
delete &I32_m_Output2;
delete &I32_m_Output3;
+ delete &I32_m_OldLine;
+}
+
+void Settings::V_SetLine(uint32_t I32_Line)
+{
+ I32_m_Line = I32_Line;
+}
+
+void Settings::V_SetMenu(bool B_Menu)
+{
+ B_m_Menu = B_Menu;
}
void Settings::V_SetOutput1(uint32_t I32_Universe)
@@ -78,6 +88,11 @@
I32_m_Output2 = I32_Universe;
}
+void Settings::V_SetOldLine(uint32_t I32_OldLine)
+{
+ I32_m_OldLine = I32_OldLine;
+}
+
void Settings::V_SetOutput3(uint32_t I32_Universe)
{
I32_m_Output3 = I32_Universe;
@@ -88,21 +103,6 @@
B_m_OK = B_OK;
}
-void Settings::V_SetInMenu(bool B_Menu)
-{
- B_m_Menu = B_Menu;
-}
-
-void Settings::V_SetCounter(uint32_t I32_LineCounter)
-{
- I32_m_Line = I32_LineCounter;
-}
-
-void Settings::V_SetInterrupt(bool B_Interrupt)
-{
- this->B_m_Interrupt = B_Interrupt;
-}
-
void Settings::V_SetLeft(bool B_Left)
{
B_m_Left = B_Left;
@@ -118,26 +118,21 @@
return B_m_OK;
}
+bool Settings::B_GetLeft()
+{
+ return B_m_Left;
+}
+
bool Settings::B_GetMenu()
{
return B_m_Menu;
}
-bool Settings::B_GetLeft()
-{
- return B_m_Left;
-}
-
bool Settings::B_GetRight()
{
return B_m_Right;
}
-bool Settings::B_GetInterrupt()
-{
- return B_m_Interrupt;
-}
-
uint32_t Settings::I32_GetLine()
{
return I32_m_Line;
@@ -156,4 +151,9 @@
uint32_t Settings::I32_GetOutput3()
{
return I32_m_Output3;
+}
+
+uint32_t Settings::I32_GetOldLine()
+{
+ return I32_m_OldLine;
}
\ No newline at end of file