|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
ESP-NOW receiver for test unit with secure pairing support. More...
#include "espnow_protocol.hpp"#include "espnow_security.hpp"#include "freertos/FreeRTOS.h"#include "freertos/queue.h"Go to the source code of this file.
Namespaces | |
| namespace | EspNowReceiver |
Functions | |
| bool | EspNowReceiver::init (QueueHandle_t event_queue) |
| Initialize ESP-NOW (WiFi STA + ESP-NOW) and start the receive task. | |
| bool | EspNowReceiver::send_config_response (const Settings &s) |
| Send CONFIG_RESPONSE containing the current settings. | |
| bool | EspNowReceiver::send_config_ack (bool ok, uint8_t err_code=0) |
| Send CONFIG_ACK for a CONFIG_SET request. | |
| bool | EspNowReceiver::send_start_ack () |
| Send START_ACK (acknowledge START receipt). | |
| bool | EspNowReceiver::send_pause_ack () |
| Send PAUSE_ACK (acknowledge PAUSE receipt). | |
| bool | EspNowReceiver::send_resume_ack () |
| Send RESUME_ACK (acknowledge RESUME receipt). | |
| bool | EspNowReceiver::send_stop_ack () |
| Send STOP_ACK (acknowledge STOP receipt). | |
| bool | EspNowReceiver::send_status_update (uint32_t cycle, TestState state, uint8_t err_code=0, uint8_t bounds_valid=255) |
| Send STATUS_UPDATE with cycle count and state. | |
| bool | EspNowReceiver::send_error (uint8_t err_code, uint32_t at_cycle) |
| Send ERROR message. | |
| bool | EspNowReceiver::send_test_complete () |
| Send TEST_COMPLETE message. | |
| bool | EspNowReceiver::send_bounds_result (uint8_t ok, uint8_t bounded, uint8_t cancelled, float min_deg_from_center, float max_deg_from_center, float global_min_deg, float global_max_deg) |
| Send BOUNDS_RESULT message. | |
| void | EspNowReceiver::enter_pairing_mode (uint32_t timeout_sec=PAIRING_MODE_TIMEOUT_SEC) |
| Enter pairing mode for the specified duration. | |
| void | EspNowReceiver::exit_pairing_mode () |
| Exit pairing mode immediately. | |
| bool | EspNowReceiver::is_in_pairing_mode () |
| Check if device is currently in pairing mode. | |
| SecuritySettings & | EspNowReceiver::get_security_settings () |
| Get access to the security settings for peer management. | |
| bool | EspNowReceiver::add_approved_peer (const uint8_t mac[6], DeviceType type, const char *name) |
| Manually add a peer as approved (bypasses pairing). | |
| bool | EspNowReceiver::remove_approved_peer (const uint8_t mac[6]) |
| Remove a peer from the approved list. | |
| size_t | EspNowReceiver::get_approved_peer_count () |
| Get the number of approved peers. | |
ESP-NOW receiver for test unit with secure pairing support.
Features: