aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/DataDef.h
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2019-03-13 10:19:59 +0200
committerAvi Levkovich <avi@twine-s.com>2019-03-13 10:19:59 +0200
commitf3a8ebb62df36dba6ade024a99de37e1120e4259 (patch)
tree995dea7a3fbd8332c04d38f1877645c902363b41 /Software/Embedded_SW/Embedded/DataDef.h
parent10a485771cf76926c6bb1f55c9a7e640eec4f3d3 (diff)
downloadTango-f3a8ebb62df36dba6ade024a99de37e1120e4259.tar.gz
Tango-f3a8ebb62df36dba6ade024a99de37e1120e4259.zip
cahnge the LS_TYPE to LS_POLARITY to support the new dispenser card
(Inversion LS polaity in old cards)
Diffstat (limited to 'Software/Embedded_SW/Embedded/DataDef.h')
-rw-r--r--Software/Embedded_SW/Embedded/DataDef.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Software/Embedded_SW/Embedded/DataDef.h b/Software/Embedded_SW/Embedded/DataDef.h
index 0027a2aa1..3b62a0489 100644
--- a/Software/Embedded_SW/Embedded/DataDef.h
+++ b/Software/Embedded_SW/Embedded/DataDef.h
@@ -294,8 +294,8 @@ typedef union
#define LIMIT 0 // Limit Switch
#define NO_LIMIT 1
-#define MAGNETIC_LS_LIMIT 1 // Limit Switch
-#define MAGNETIC_LS_NO_LIMIT 0
+//#define INVERSION_POLARITY_LIMIT 1 // Limit Switch
+//#define INVERSION_POLARITY_NO_LIMIT 0
typedef enum
@@ -309,9 +309,9 @@ typedef enum
typedef enum
{
- OPTIC_LS = 0,
- MAGNETIC_LS = 1,
-}LS_TYPE;
+ DEFAULT_POLARITY = 0,//OPTIC_LS , MAGNETIC_LS CARD 2
+ INVERSION_POLARITY = 1,//MAGNETIC_LS CARD 2 - must be 1 used for xor the polarity
+}LS_POLARITY;
typedef enum
{
@@ -339,7 +339,7 @@ typedef union
typedef struct
{
DISP_TYPE Type;
- LS_TYPE LS_Type;
+ LS_POLARITY LS_Polarity;
DISP_EEPROM Write_Disp_EEPROM;
DISP_EEPROM Read_Disp_EEPROM;
LS_STATUS Status;