-
Notifications
You must be signed in to change notification settings - Fork 0
/
TouchDriver.h
30 lines (26 loc) · 1016 Bytes
/
TouchDriver.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/// Space Game (name not final)
/// @file TouchDriver.h
/// Interface to the Touch Sensing Input Module
/// @author Koen Komeya <[email protected]>
/// @date 11/26/2017 ~
/// [Final project for CMPE-250 (Section 4: Thursday 11 AM - 1 PM)]
///----------------------------------------------------------------------------
#ifndef TOUCHDRIVER_H
#define TOUCHDRIVER_H
///----------------------------------------------------------------------------
/// @addtogroup Major Functions
/// @{
/// Enables the Touch Sensing Input module.
void EnableTSI(void);
/// Disables the Touch Sensing Input module.
void DisableTSI(void);
/// ScanTSI causes the TSI to do a scan on the touch sensor.
/// Recommended to be called at the end of a tick.
void ScanTSI(void);
/// Returns where the TSI is being pressed, scaled from the values
/// -128 (held on the left) to 127 (held to the right).
/// If it is not currently being pressed, returns 0.
/// ScanTSI must be called before this is called.
int ReadTSIScaled(void);
/// @}
#endif