ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::mt6701_spi Namespace Reference

Data Structures

class  MT6701SPIBinarySensors
 
class  MT6701SPIComponent
 MT6701 over SSI: read-only, but each frame carries the field, push button and track-loss flags. More...
 
class  MT6701SPIFieldStatus
 

Enumerations

enum class  ProbeResult : uint8_t { PROBE_RESULT_NO_ENCODER , PROBE_RESULT_ALL_ZERO , PROBE_RESULT_OK }
 

Functions

 ESPHOME_LOG_TAG (TAG, "mt6701_spi.binary_sensor")
 
 ESPHOME_LOG_TAG (TAG, "mt6701_spi")
 
bool decode_frame (const uint8_t frame[3], uint16_t &count, uint8_t &status)
 Decode a 24-bit SSI frame (14-bit angle, 4 status bits, 6-bit CRC); false when the CRC fails.
 
ProbeResult probe_result (uint8_t valid_frames, bool any_nonzero)
 
 ESPHOME_LOG_TAG (TAG, "mt6701_spi.text_sensor")
 
 PROGMEM_STRING_TABLE (FieldStatusStrings, "OK", "TOO_STRONG", "TOO_WEAK", "UNKNOWN")
 

Enumeration Type Documentation

◆ ProbeResult

enum class esphome::mt6701_spi::ProbeResult : uint8_t
strong
Enumerator
PROBE_RESULT_NO_ENCODER 
PROBE_RESULT_ALL_ZERO 
PROBE_RESULT_OK 

Definition at line 15 of file mt6701_spi.h.

Function Documentation

◆ decode_frame()

bool esphome::mt6701_spi::decode_frame ( const uint8_t frame[3],
uint16_t & count,
uint8_t & status )

Decode a 24-bit SSI frame (14-bit angle, 4 status bits, 6-bit CRC); false when the CRC fails.

Definition at line 12 of file mt6701_spi.cpp.

◆ ESPHOME_LOG_TAG() [1/3]

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

◆ ESPHOME_LOG_TAG() [2/3]

esphome::mt6701_spi::ESPHOME_LOG_TAG ( TAG ,
"mt6701_spi.binary_sensor"  )

◆ ESPHOME_LOG_TAG() [3/3]

esphome::mt6701_spi::ESPHOME_LOG_TAG ( TAG ,
"mt6701_spi.text_sensor"  )

◆ probe_result()

ProbeResult esphome::mt6701_spi::probe_result ( uint8_t valid_frames,
bool any_nonzero )

Definition at line 21 of file mt6701_spi.cpp.

◆ PROGMEM_STRING_TABLE()

esphome::mt6701_spi::PROGMEM_STRING_TABLE ( FieldStatusStrings ,
"OK" ,
"TOO_STRONG" ,
"TOO_WEAK" ,
"UNKNOWN"  )