ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::cstxxx Namespace Reference

Data Structures

class  CSTTouchscreen
 
struct  TouchRecord
 

Functions

 ESPHOME_LOG_TAG (TAG, "cstxxx")
 
constexpr size_t report_size (uint8_t points)
 Bytes of a touch report holding points records; two status bytes follow the first record.
 
TouchRecord decode_touch (const uint8_t *report, uint8_t index)
 Decodes record index of a touch report.
 

Function Documentation

◆ decode_touch()

TouchRecord esphome::cstxxx::decode_touch ( const uint8_t * report,
uint8_t index )
inline

Decodes record index of a touch report.

Each record is 5 bytes: [id:4 | event:4] [x 11..4] [y 11..4] [x 3..0 | y 3..0] [z]. The first record is followed by 2 extra bytes, so later records start 2 bytes further on.

Definition at line 43 of file cstxxx.h.

◆ ESPHOME_LOG_TAG()

esphome::cstxxx::ESPHOME_LOG_TAG ( TAG ,
"cstxxx"  )

◆ report_size()

size_t esphome::cstxxx::report_size ( uint8_t points)
constexpr

Bytes of a touch report holding points records; two status bytes follow the first record.

Definition at line 30 of file cstxxx.h.