|
ESPHome 2026.11.0-dev
|
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") | |
|
strong |
| Enumerator | |
|---|---|
| PROBE_RESULT_NO_ENCODER | |
| PROBE_RESULT_ALL_ZERO | |
| PROBE_RESULT_OK | |
Definition at line 15 of file mt6701_spi.h.
| 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::mt6701_spi::ESPHOME_LOG_TAG | ( | TAG | , |
| "mt6701_spi" | ) |
| esphome::mt6701_spi::ESPHOME_LOG_TAG | ( | TAG | , |
| "mt6701_spi.binary_sensor" | ) |
| esphome::mt6701_spi::ESPHOME_LOG_TAG | ( | TAG | , |
| "mt6701_spi.text_sensor" | ) |
| ProbeResult esphome::mt6701_spi::probe_result | ( | uint8_t | valid_frames, |
| bool | any_nonzero ) |
Definition at line 21 of file mt6701_spi.cpp.
| esphome::mt6701_spi::PROGMEM_STRING_TABLE | ( | FieldStatusStrings | , |
| "OK" | , | ||
| "TOO_STRONG" | , | ||
| "TOO_WEAK" | , | ||
| "UNKNOWN" | ) |