aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/DataDef.h
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2021-01-11 17:40:10 +0200
committerShlomo Hecht <shlomo@twine-s.com>2021-01-11 17:40:10 +0200
commitbfd323badd5c5039f49779e3a08452d203bf284e (patch)
tree650a96d7ef514f873becf92ae18130f274f5c5d7 /Software/Embedded_SW/Embedded/DataDef.h
parenta84e40980f7bc2c8ef3c2bfd546cfb3ecc6e05d7 (diff)
parent3c9d531523b255df4351d1ddafd8acffcb89237e (diff)
downloadTango-bfd323badd5c5039f49779e3a08452d203bf284e.tar.gz
Tango-bfd323badd5c5039f49779e3a08452d203bf284e.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/DataDef.h')
-rw-r--r--Software/Embedded_SW/Embedded/DataDef.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/DataDef.h b/Software/Embedded_SW/Embedded/DataDef.h
index b5edc9554..669e2cbe5 100644
--- a/Software/Embedded_SW/Embedded/DataDef.h
+++ b/Software/Embedded_SW/Embedded/DataDef.h
@@ -44,7 +44,7 @@
#endif
//#define USE_UART4_FOR_BTSR // need change in FRPGA FPGA_1 yy > 0x20 + jumpers in main board need to read HW Version - no need when working only with stubs
-//#define FORCE_BTSR_CARD_0023 // only for testing, include changes for BTSR without ASSY ID. use it with USE_UART4_FOR_BTSR
+//#define FORCE_BTSR_CARD_0023 //0014 only for testing, include changes for BTSR without ASSY ID. use it with USE_UART4_FOR_BTSR
//#define USE_RFID_STUB //stub only. to use it undef USE_RFID_LOGIC
//#define RFID_READ_ONLY //
@@ -491,6 +491,13 @@ typedef enum
typedef enum
{
+ I2C_COMM_UNKNOWN,
+ I2C_COMM_PASSED,
+ I2C_COMM_FAILED,
+}I2C_COMM_STAT;
+
+typedef enum
+{
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;
@@ -636,6 +643,7 @@ typedef struct
DISP_EEPROM Write_Disp_EEPROM;
DISP_EEPROM Read_Disp_EEPROM;
LS_STATUS Status;
+ I2C_COMM_STAT I2C_Status;// TBD added to calculate the pressure as new when there is i2c no communication (unable to read the eeprom)
}DISP;
DISP Dispenser_struct[8];