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
49extern "C" {
50#endif
51
53typedef enum {
54 TOUCH_SELFTEST_NONE = 0,
55 TOUCH_SELFTEST_SPI_TRANSFER,
56 TOUCH_SELFTEST_FRAMING,
57 TOUCH_SELFTEST_IDLE
59
61typedef struct {
62 bool passed;
64 uint32_t testsRun;
66 char detail[96];
68
76
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif /* TOUCH_SELFTEST_ENABLE */
85
86#endif /* INC_TOUCHSELFTEST_H_ */
: Header for main.c file. This file contains the common defines of the application.
Result of the most recent touchSelfTestRunAll().
touchSelfTestId_t failedTest
First failing test, or NONE if passed.
bool passed
true if every test passed.
uint32_t idlePhantomTouches
Idle samples that looked like touches.
uint32_t testsRun
Tests that started running (pass or fail).
touchSelfTestId_t
Self-test identifiers.
const touchSelfTestReport_t * touchSelfTestRunAll(void)
Runs every self-test in order, stopping at the first failure, and prints progress and a PASS/FAIL ver...
const touchSelfTestReport_t * touchSelfTestGetReport(void)