9 static const uint16_t AM43_SERVICE_UUID = 0xFE50;
10 static const uint16_t AM43_CHARACTERISTIC_UUID = 0xFE51;
13 static const uint16_t AM43_TUYA_SERVICE_UUID = 0x1910;
14 static const uint16_t AM43_TUYA_CHARACTERISTIC_UUID = 0x2b11;
21 static const uint8_t CMD_GET_BATTERY_LEVEL = 0xA2;
22 static const uint8_t CMD_GET_LIGHT_LEVEL = 0xAA;
23 static const uint8_t CMD_GET_POSITION = 0xA7;
24 static const uint8_t CMD_SEND_PIN = 0x17;
25 static const uint8_t CMD_SET_STATE = 0x0A;
26 static const uint8_t CMD_SET_POSITION = 0x0D;
27 static const uint8_t CMD_NOTIFY_POSITION = 0xA1;
29 static const uint8_t RESPONSE_ACK = 0x5A;
30 static const uint8_t RESPONSE_NACK = 0xA5;
37 Am43Packet *get_send_pin_request(uint16_t pin);
51 void decode(
const uint8_t *
data, uint16_t
length);
bool has_set_state_response()
bool has_set_position_response()
bool has_set_position_response_
bool has_set_state_response_
Implementation of SPI Controller mode.