extern_interface/include/command.h

21 lines
851 B
C
Raw Permalink Normal View History

2024-11-28 08:31:00 +00:00
#ifndef SYS_COMMAND_H_
#define SYS_COMMAND_H_
#include <stdint.h>
#include <stdbool.h>
bool is_command(uint8_t* array, uint8_t* value, int size);
//--
uint8_t command_open_asr[] = { 0x00, 0xf0, 0xaa, 0xaa, 0xaa, 0xaa };
uint8_t command_close_asr[] = { 0x00, 0xf2, 0xaa, 0xaa, 0xaa, 0xaa };
uint8_t command_open_call[] = { 0x00, 0xf4, 0xaa, 0xaa, 0xaa, 0xaa };
uint8_t command_close_call[] = { 0x00, 0xf6, 0xaa, 0xaa, 0xaa, 0xaa };
uint8_t command_wakeup[] = { 0x00, 0x01, 0x02, 0x27, 0x02, 0x27 };
uint8_t command_sleep[] = { 0x00, 0x01, 0x02, 0x28, 0x02, 0x28 };
uint8_t command_volume[] = { 0x00, 0x01, 0x02, 0x29, 0x02, 0x29};//2024.10.22{0x00, 0xf8, 0xaa, 0xaa, 0xaa, 0xaa };
uint8_t command_reset[] = { 0x00, 0x01, 0x02, 0x2A, 0x02, 0x2A};//2024.10.22 { 0x00, 0xfa, 0xaa, 0xaa, 0xaa, 0xaa };
#endif