Rev 1274 | Rev 1286 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1274 | Rev 1276 | ||
|---|---|---|---|
| Line 22... | Line 22... | ||
| 22 | void sns_Touch_Init(void); |
22 | void sns_Touch_Init(void); |
| 23 | void sns_Touch_Process(void); |
23 | void sns_Touch_Process(void); |
| 24 | void sns_Touch_HandleMessage(StdCan_Msg_t *rxMsg); |
24 | void sns_Touch_HandleMessage(StdCan_Msg_t *rxMsg); |
| 25 | void sns_Touch_List(uint8_t ModuleSequenceNumber); |
25 | void sns_Touch_List(uint8_t ModuleSequenceNumber); |
| 26 | 26 | ||
| - | 27 | typedef struct |
|
| - | 28 | { |
|
| - | 29 | uint8_t x; |
|
| - | 30 | uint8_t y; |
|
| - | 31 | } point; |
|
| - | 32 | ||
| - | 33 | static __inline__ uint8_t min(uint8_t val1, uint8_t val2) { |
|
| - | 34 | if (val1 > val2) |
|
| - | 35 | { |
|
| - | 36 | return val2; |
|
| - | 37 | } |
|
| - | 38 | return val1; |
|
| - | 39 | } |
|
| - | 40 | ||
| - | 41 | static __inline__ uint8_t max(uint8_t val1, uint8_t val2) { |
|
| - | 42 | if (val1 > val2) |
|
| - | 43 | { |
|
| - | 44 | return val1; |
|
| - | 45 | } |
|
| - | 46 | return val2; |
|
| - | 47 | } |
|
| 27 | 48 | ||
| 28 | #ifdef sns_Touch_USEEEPROM |
49 | #ifdef sns_Touch_USEEEPROM |
| 29 | struct sns_Touch_Data{ |
50 | struct sns_Touch_Data{ |
| 30 | ///TODO: Define EEPROM variables needed by the module |
51 | ///TODO: Define EEPROM variables needed by the module |
| 31 | uint8_t x; |
52 | uint8_t x; |