diff options
| author | Avi Levkovich <avi@twine-s.com> | 2019-03-13 10:19:59 +0200 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2019-03-13 10:19:59 +0200 |
| commit | f3a8ebb62df36dba6ade024a99de37e1120e4259 (patch) | |
| tree | 995dea7a3fbd8332c04d38f1877645c902363b41 /Software/Embedded_SW/Embedded/DataDef.h | |
| parent | 10a485771cf76926c6bb1f55c9a7e640eec4f3d3 (diff) | |
| download | Tango-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.h | 12 |
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; |
