ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
wl_134.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
8
9namespace esphome::wl_134 {
10
12 public:
22
24 uint16_t country;
25 uint64_t id;
26 bool isData;
28 uint16_t reserved0;
30 };
31 // Nothing really public.
32
33 // ========== INTERNAL METHODS ==========
34 void setup() override;
35 void loop() override;
36 void dump_config() override;
37
38 void set_do_reset(bool do_reset) { this->do_reset_ = do_reset; }
39
40 private:
41 enum DfMp3Packet {
42 RFID134_PACKET_START_CODE,
43 RFID134_PACKET_ID = 1,
44 RFID134_PACKET_COUNTRY = 11,
45 RFID134_PACKET_DATA_FLAG = 15,
46 RFID134_PACKET_ANIMAL_FLAG = 16,
47 RFID134_PACKET_RESERVED0 = 17,
48 RFID134_PACKET_RESERVED1 = 21,
49 RFID134_PACKET_CHECKSUM = 27,
50 RFID134_PACKET_CHECKSUM_INVERT = 28,
51 RFID134_PACKET_END_CODE = 29,
52 RFID134_PACKET_SIZE
53 };
54
55 bool do_reset_;
56
57 Rfid134Error read_packet_();
58 uint64_t hex_lsb_ascii_to_uint64_(const uint8_t *text, uint8_t text_size);
59};
60
61} // namespace esphome::wl_134
void set_do_reset(bool do_reset)
Definition wl_134.h:38
static void uint32_t