H753_CPP_SPI_Resistive_Touch_Screen_Controller
1.0
STM32H753 SPI resistive touchscreen (Adafruit 333 overlay + 5767 TSC2046 controller) driver and tutorial
Loading...
Searching...
No Matches
touchSelfTest.h
Go to the documentation of this file.
1
38
#ifndef INC_TOUCHSELFTEST_H_
39
#define INC_TOUCHSELFTEST_H_
40
41
#include "
main.h
"
42
43
#ifdef TOUCH_SELFTEST_ENABLE
44
45
#include <stdbool.h>
46
#include <stdint.h>
47
48
#ifdef __cplusplus
49
extern
"C"
{
50
#endif
51
53
typedef
enum
{
54
TOUCH_SELFTEST_NONE = 0,
55
TOUCH_SELFTEST_SPI_TRANSFER,
56
TOUCH_SELFTEST_FRAMING,
57
TOUCH_SELFTEST_IDLE
58
}
touchSelfTestId_t
;
59
61
typedef
struct
{
62
bool
passed
;
63
touchSelfTestId_t
failedTest
;
64
uint32_t
testsRun
;
65
uint32_t
idlePhantomTouches
;
66
char
detail[96];
67
}
touchSelfTestReport_t
;
68
75
const
touchSelfTestReport_t
*
touchSelfTestRunAll
(
void
);
76
78
const
touchSelfTestReport_t
*
touchSelfTestGetReport
(
void
);
79
80
#ifdef __cplusplus
81
}
82
#endif
83
84
#endif
/* TOUCH_SELFTEST_ENABLE */
85
86
#endif
/* INC_TOUCHSELFTEST_H_ */
main.h
: Header for main.c file. This file contains the common defines of the application.
touchSelfTestReport_t
Result of the most recent touchSelfTestRunAll().
Definition
touchSelfTest.h:61
touchSelfTestReport_t::failedTest
touchSelfTestId_t failedTest
First failing test, or NONE if passed.
Definition
touchSelfTest.h:63
touchSelfTestReport_t::passed
bool passed
true if every test passed.
Definition
touchSelfTest.h:62
touchSelfTestReport_t::idlePhantomTouches
uint32_t idlePhantomTouches
Idle samples that looked like touches.
Definition
touchSelfTest.h:65
touchSelfTestReport_t::testsRun
uint32_t testsRun
Tests that started running (pass or fail).
Definition
touchSelfTest.h:64
touchSelfTestId_t
touchSelfTestId_t
Self-test identifiers.
Definition
touchSelfTest.h:53
touchSelfTestRunAll
const touchSelfTestReport_t * touchSelfTestRunAll(void)
Runs every self-test in order, stopping at the first failure, and prints progress and a PASS/FAIL ver...
touchSelfTestGetReport
const touchSelfTestReport_t * touchSelfTestGetReport(void)
Core
Inc
touchSelfTest.h
Generated by
1.10.0