Defines

mTouch_eeprom.h File Reference

Internal framework header file implementing EEPROM functionality. More...

Go to the source code of this file.

Defines

#define MTOUCH_EEPROM_read(addr)   eeprom_read(addr)
#define MTOUCH_EEPROM_write(addr, value)   eeprom_write(addr, value)
#define MTOUCH_EEPROM_SYS_SIZE   15
#define MTOUCH_EEPROM_SENS_SIZE   4
#define MTOUCH_EEPROM_SIZE   MTOUCH_EEPROM_SYS_SIZE + (MTOUCH_EEPROM_SENS_SIZE * MTOUCH_NUMBER_SENSORS)
#define MTOUCH_EEPROM_SYS_ADR   MTOUCH_EEPROM_START_ADR
#define MTOUCH_EEPROM_SENS_ADR   MTOUCH_EEPROM_SYS_ADR + MTOUCH_EEPROM_SYS_SIZE
#define MTOUCH_EEPROM_END_ADR   MTOUCH_EEPROM_SENS_ADR + (MTOUCH_EEPROM_SENS_SIZE * MTOUCH_NUMBER_SENSORS)
#define MTOUCH_EEPROM_pDEB_ADRL   MTOUCH_EEPROM_START_ADR + 0
#define MTOUCH_EEPROM_pDEB_ADRH   MTOUCH_EEPROM_START_ADR + 1
#define MTOUCH_EEPROM_rDEB_ADRL   MTOUCH_EEPROM_START_ADR + 2
#define MTOUCH_EEPROM_rDEB_ADRH   MTOUCH_EEPROM_START_ADR + 3
#define MTOUCH_EEPROM_JITTER_ADR   MTOUCH_EEPROM_START_ADR + 4
#define MTOUCH_EEPROM_BLWEIGHT_ADR   MTOUCH_EEPROM_START_ADR + 5
#define MTOUCH_EEPROM_BLRATE_ADRL   MTOUCH_EEPROM_START_ADR + 6
#define MTOUCH_EEPROM_BLRATE_ADRH   MTOUCH_EEPROM_START_ADR + 7
#define MTOUCH_EEPROM_pTIMEOUT_ADRL   MTOUCH_EEPROM_START_ADR + 8
#define MTOUCH_EEPROM_pTIMEOUT_ADRH   MTOUCH_EEPROM_START_ADR + 9
#define MTOUCH_EEPROM_SpS_ADRL   MTOUCH_EEPROM_START_ADR + 10
#define MTOUCH_EEPROM_SpS_ADRH   MTOUCH_EEPROM_START_ADR + 11
#define MTOUCH_EEPROM_SCALE_ADR   MTOUCH_EEPROM_START_ADR + 12
#define MTOUCH_EEPROM_DECSTEP_ADRL   MTOUCH_EEPROM_START_ADR + 13
#define MTOUCH_EEPROM_DECSTEP_ADRH   MTOUCH_EEPROM_START_ADR + 14
#define MTOUCH_EEPROM_pTHRESH_ADRL   MTOUCH_EEPROM_SENS_ADR
#define MTOUCH_EEPROM_pTHRESH_ADRH   MTOUCH_EEPROM_SENS_ADR + 1
#define MTOUCH_EEPROM_rTHRESH_ADRL   MTOUCH_EEPROM_SENS_ADR + 2
#define MTOUCH_EEPROM_rTHRESH_ADRH   MTOUCH_EEPROM_SENS_ADR + 3
#define MTOUCH_pTHRESH(index)   __paste(THRESHOLD_PRESS_SENSOR, index)
#define MTOUCH_rTHRESH(index)   __paste(THRESHOLD_RELEASE_SENSOR, index)
#define MTOUCH_EEPROM_THRESH(index)
#define MTOUCH_EEPROM_THRESH0   MTOUCH_EEPROM_THRESH(0)
#define MTOUCH_EEPROM_THRESH1   MTOUCH_EEPROM_THRESH(1)
#define MTOUCH_EEPROM_THRESH2   MTOUCH_EEPROM_THRESH(2)
#define MTOUCH_EEPROM_THRESH3   MTOUCH_EEPROM_THRESH(3)
#define MTOUCH_EEPROM_THRESH4   MTOUCH_EEPROM_THRESH(4)
#define MTOUCH_EEPROM_THRESH5   MTOUCH_EEPROM_THRESH(5)
#define MTOUCH_EEPROM_THRESH6   MTOUCH_EEPROM_THRESH(6)
#define MTOUCH_EEPROM_THRESH7   MTOUCH_EEPROM_THRESH(7)
#define MTOUCH_EEPROM_THRESH8   MTOUCH_EEPROM_THRESH(8)
#define MTOUCH_EEPROM_THRESH9   MTOUCH_EEPROM_THRESH(9)
#define MTOUCH_EEPROM_THRESH10   MTOUCH_EEPROM_THRESH(10)
#define MTOUCH_EEPROM_THRESH11   MTOUCH_EEPROM_THRESH(11)
#define MTOUCH_EEPROM_THRESH12   MTOUCH_EEPROM_THRESH(12)
#define MTOUCH_EEPROM_THRESH13   MTOUCH_EEPROM_THRESH(13)
#define MTOUCH_EEPROM_THRESH14   MTOUCH_EEPROM_THRESH(14)
#define MTOUCH_EEPROM_THRESH15   MTOUCH_EEPROM_THRESH(15)
#define MTOUCH_EEPROM_THRESH16   MTOUCH_EEPROM_THRESH(16)
#define MTOUCH_EEPROM_THRESH17   MTOUCH_EEPROM_THRESH(17)
#define MTOUCH_EEPROM_THRESH18   MTOUCH_EEPROM_THRESH(18)
#define MTOUCH_EEPROM_THRESH19   MTOUCH_EEPROM_THRESH(19)
#define MTOUCH_EEPROM_THRESH20   MTOUCH_EEPROM_THRESH(20)
#define MTOUCH_EEPROM_THRESH21   MTOUCH_EEPROM_THRESH(21)
#define MTOUCH_EEPROM_THRESH22   MTOUCH_EEPROM_THRESH(22)
#define MTOUCH_EEPROM_THRESH23   MTOUCH_EEPROM_THRESH(23)
#define MTOUCH_EEPROM_THRESH24   MTOUCH_EEPROM_THRESH(24)
#define MTOUCH_EEPROM_THRESH25   MTOUCH_EEPROM_THRESH(25)
#define MTOUCH_EEPROM_THRESH26   MTOUCH_EEPROM_THRESH(26)
#define MTOUCH_EEPROM_THRESH27   MTOUCH_EEPROM_THRESH(27)
#define MTOUCH_EEPROM_THRESH28   MTOUCH_EEPROM_THRESH(28)
#define MTOUCH_EEPROM_THRESH29   MTOUCH_EEPROM_THRESH(29)
#define MTOUCH_EEPROM_THRESHOLDS
#define MTOUCH_EEPROM_THRESH29
#define MTOUCH_EEPROM_THRESH28
#define MTOUCH_EEPROM_THRESH27
#define MTOUCH_EEPROM_THRESH26
#define MTOUCH_EEPROM_THRESH25
#define MTOUCH_EEPROM_THRESH24
#define MTOUCH_EEPROM_THRESH23
#define MTOUCH_EEPROM_THRESH22
#define MTOUCH_EEPROM_THRESH21
#define MTOUCH_EEPROM_THRESH20
#define MTOUCH_EEPROM_THRESH19
#define MTOUCH_EEPROM_THRESH18
#define MTOUCH_EEPROM_THRESH17
#define MTOUCH_EEPROM_THRESH16
#define MTOUCH_EEPROM_THRESH15
#define MTOUCH_EEPROM_THRESH14
#define MTOUCH_EEPROM_THRESH13
#define MTOUCH_EEPROM_THRESH12
#define MTOUCH_EEPROM_THRESH11
#define MTOUCH_EEPROM_THRESH10
#define MTOUCH_EEPROM_THRESH9
#define MTOUCH_EEPROM_THRESH8
#define MTOUCH_EEPROM_THRESH7
#define MTOUCH_EEPROM_THRESH6
#define MTOUCH_EEPROM_THRESH5
#define MTOUCH_EEPROM_THRESH4
#define MTOUCH_EEPROM_THRESH3
#define MTOUCH_EEPROM_THRESH2
#define MTOUCH_EEPROM_THRESH1
#define MTOUCH_EEPROM_pTHRESHOLD(index)   (uint16_t)((uint16_t)(MTOUCH_EEPROM_read(MTOUCH_EEPROM_pTHRESH_ADRH + (MTOUCH_EEPROM_SENS_SIZE*index))) << 8) + MTOUCH_EEPROM_read(MTOUCH_EEPROM_pTHRESH_ADRL + (MTOUCH_EEPROM_SENS_SIZE*index))
#define MTOUCH_EEPROM_rTHRESHOLD(index)   (uint16_t)((uint16_t)(MTOUCH_EEPROM_read(MTOUCH_EEPROM_rTHRESH_ADRH + (MTOUCH_EEPROM_SENS_SIZE*index))) << 8) + MTOUCH_EEPROM_read(MTOUCH_EEPROM_rTHRESH_ADRL + (MTOUCH_EEPROM_SENS_SIZE*index))

Detailed Description

Internal framework header file implementing EEPROM functionality.

Definition in file mTouch_eeprom.h.


Define Documentation

#define MTOUCH_EEPROM_BLRATE_ADRH   MTOUCH_EEPROM_START_ADR + 7

Definition at line 118 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_BLRATE_ADRL   MTOUCH_EEPROM_START_ADR + 6

Definition at line 117 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_BLWEIGHT_ADR   MTOUCH_EEPROM_START_ADR + 5

Definition at line 116 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_DECSTEP_ADRH   MTOUCH_EEPROM_START_ADR + 14

Definition at line 127 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_DECSTEP_ADRL   MTOUCH_EEPROM_START_ADR + 13

Definition at line 126 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_END_ADR   MTOUCH_EEPROM_SENS_ADR + (MTOUCH_EEPROM_SENS_SIZE * MTOUCH_NUMBER_SENSORS)

Definition at line 101 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_JITTER_ADR   MTOUCH_EEPROM_START_ADR + 4

Definition at line 113 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_pDEB_ADRH   MTOUCH_EEPROM_START_ADR + 1

Definition at line 110 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_pDEB_ADRL   MTOUCH_EEPROM_START_ADR + 0

Definition at line 109 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_pTHRESH_ADRH   MTOUCH_EEPROM_SENS_ADR + 1

Definition at line 131 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_pTHRESH_ADRL   MTOUCH_EEPROM_SENS_ADR

Definition at line 130 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_pTHRESHOLD (   index )    (uint16_t)((uint16_t)(MTOUCH_EEPROM_read(MTOUCH_EEPROM_pTHRESH_ADRH + (MTOUCH_EEPROM_SENS_SIZE*index))) << 8) + MTOUCH_EEPROM_read(MTOUCH_EEPROM_pTHRESH_ADRL + (MTOUCH_EEPROM_SENS_SIZE*index))

Definition at line 328 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_pTIMEOUT_ADRH   MTOUCH_EEPROM_START_ADR + 9

Definition at line 122 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_pTIMEOUT_ADRL   MTOUCH_EEPROM_START_ADR + 8

Definition at line 121 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_rDEB_ADRH   MTOUCH_EEPROM_START_ADR + 3

Definition at line 112 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_rDEB_ADRL   MTOUCH_EEPROM_START_ADR + 2

Definition at line 111 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_read (   addr )    eeprom_read(addr)

Definition at line 77 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_rTHRESH_ADRH   MTOUCH_EEPROM_SENS_ADR + 3

Definition at line 133 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_rTHRESH_ADRL   MTOUCH_EEPROM_SENS_ADR + 2

Definition at line 132 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_rTHRESHOLD (   index )    (uint16_t)((uint16_t)(MTOUCH_EEPROM_read(MTOUCH_EEPROM_rTHRESH_ADRH + (MTOUCH_EEPROM_SENS_SIZE*index))) << 8) + MTOUCH_EEPROM_read(MTOUCH_EEPROM_rTHRESH_ADRL + (MTOUCH_EEPROM_SENS_SIZE*index))

Definition at line 329 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_SCALE_ADR   MTOUCH_EEPROM_START_ADR + 12

Definition at line 125 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_SENS_ADR   MTOUCH_EEPROM_SYS_ADR + MTOUCH_EEPROM_SYS_SIZE

Definition at line 98 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_SENS_SIZE   4

Definition at line 93 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_SIZE   MTOUCH_EEPROM_SYS_SIZE + (MTOUCH_EEPROM_SENS_SIZE * MTOUCH_NUMBER_SENSORS)

Definition at line 94 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_SpS_ADRH   MTOUCH_EEPROM_START_ADR + 11

Definition at line 124 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_SpS_ADRL   MTOUCH_EEPROM_START_ADR + 10

Definition at line 123 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_SYS_ADR   MTOUCH_EEPROM_START_ADR

Definition at line 97 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_SYS_SIZE   15

Definition at line 92 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH (   index )
Value:
,(uint8_t)(MTOUCH_pTHRESH(index) & 0xFF),                   \
                                            (uint8_t)(MTOUCH_pTHRESH(index) >> 8),                      \
                                            (uint8_t)(MTOUCH_rTHRESH(index) & 0xFF),                    \
                                            (uint8_t)(MTOUCH_rTHRESH(index) >> 8)

Definition at line 142 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH0   MTOUCH_EEPROM_THRESH(0)

Definition at line 147 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH1   MTOUCH_EEPROM_THRESH(1)

Definition at line 323 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH1

Definition at line 323 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH10

Definition at line 287 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH10   MTOUCH_EEPROM_THRESH(10)

Definition at line 287 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH11

Definition at line 283 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH11   MTOUCH_EEPROM_THRESH(11)

Definition at line 283 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH12

Definition at line 279 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH12   MTOUCH_EEPROM_THRESH(12)

Definition at line 279 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH13   MTOUCH_EEPROM_THRESH(13)

Definition at line 275 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH13

Definition at line 275 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH14

Definition at line 271 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH14   MTOUCH_EEPROM_THRESH(14)

Definition at line 271 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH15

Definition at line 267 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH15   MTOUCH_EEPROM_THRESH(15)

Definition at line 267 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH16

Definition at line 263 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH16   MTOUCH_EEPROM_THRESH(16)

Definition at line 263 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH17

Definition at line 259 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH17   MTOUCH_EEPROM_THRESH(17)

Definition at line 259 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH18

Definition at line 255 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH18   MTOUCH_EEPROM_THRESH(18)

Definition at line 255 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH19

Definition at line 251 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH19   MTOUCH_EEPROM_THRESH(19)

Definition at line 251 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH2   MTOUCH_EEPROM_THRESH(2)

Definition at line 319 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH2

Definition at line 319 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH20

Definition at line 247 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH20   MTOUCH_EEPROM_THRESH(20)

Definition at line 247 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH21

Definition at line 243 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH21   MTOUCH_EEPROM_THRESH(21)

Definition at line 243 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH22

Definition at line 239 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH22   MTOUCH_EEPROM_THRESH(22)

Definition at line 239 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH23

Definition at line 235 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH23   MTOUCH_EEPROM_THRESH(23)

Definition at line 235 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH24

Definition at line 231 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH24   MTOUCH_EEPROM_THRESH(24)

Definition at line 231 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH25   MTOUCH_EEPROM_THRESH(25)

Definition at line 227 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH25

Definition at line 227 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH26

Definition at line 223 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH26   MTOUCH_EEPROM_THRESH(26)

Definition at line 223 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH27   MTOUCH_EEPROM_THRESH(27)

Definition at line 219 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH27

Definition at line 219 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH28

Definition at line 215 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH28   MTOUCH_EEPROM_THRESH(28)

Definition at line 215 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH29   MTOUCH_EEPROM_THRESH(29)

Definition at line 211 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH29

Definition at line 211 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH3   MTOUCH_EEPROM_THRESH(3)

Definition at line 315 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH3

Definition at line 315 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH4

Definition at line 311 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH4   MTOUCH_EEPROM_THRESH(4)

Definition at line 311 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH5   MTOUCH_EEPROM_THRESH(5)

Definition at line 307 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH5

Definition at line 307 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH6

Definition at line 303 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH6   MTOUCH_EEPROM_THRESH(6)

Definition at line 303 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH7

Definition at line 299 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH7   MTOUCH_EEPROM_THRESH(7)

Definition at line 299 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH8   MTOUCH_EEPROM_THRESH(8)

Definition at line 295 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH8

Definition at line 295 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH9   MTOUCH_EEPROM_THRESH(9)

Definition at line 291 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESH9

Definition at line 291 of file mTouch_eeprom.h.

#define MTOUCH_EEPROM_THRESHOLDS
#define MTOUCH_EEPROM_write (   addr,
  value 
)    eeprom_write(addr, value)

Definition at line 78 of file mTouch_eeprom.h.

#define MTOUCH_pTHRESH (   index )    __paste(THRESHOLD_PRESS_SENSOR, index)

Definition at line 139 of file mTouch_eeprom.h.

#define MTOUCH_rTHRESH (   index )    __paste(THRESHOLD_RELEASE_SENSOR, index)

Definition at line 140 of file mTouch_eeprom.h.