diff options
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; |
