初始提交卡包 USB 工程
纳入固件源码、屏幕组件、nand_xfer 工具和文档。忽略本机构建产物、sdkconfig,以及含本机路径的依赖锁。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#ifndef __BLE_SEND_H__
|
||||
#define __BLE_SEND_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
extern volatile uint8_t g_brightness;
|
||||
|
||||
void send_emoji_delete_result_frame(uint8_t success);
|
||||
void send_emoji_clear_result_frame(uint8_t success);
|
||||
void send_emoji_switch_result_frame(uint8_t success);
|
||||
void send_emoji_download_result_frame(uint8_t success);
|
||||
void send_downloaded_packs_frame(void);
|
||||
void send_version_frame(const char *version_str);
|
||||
void send_ota_progress_frame(uint8_t progress);
|
||||
void send_ota_result_frame(uint8_t result);
|
||||
void ble_send_ota_progress(uint8_t progress);
|
||||
void ble_send_ota_result_request(uint8_t success);
|
||||
void send_get_system_ok_frame(void);
|
||||
void send_brightness_frame(uint8_t brightness);
|
||||
void send_emoji_using_frame(uint8_t pack_id);
|
||||
|
||||
void send_wifi_state_frame(uint8_t state);
|
||||
void ble_send_wifi_state_request(uint8_t connected);
|
||||
/** 请求发送当前亮度单帧(0x0005),由 notification_task 调用 send_protocol_frame */
|
||||
void ble_request_send_brightness(void);
|
||||
void ble_set_emoji_switch_target(char pack_id);
|
||||
void ble_set_emoji_delete_target(char pack_id);
|
||||
void send_version_frame(const char *version_str);
|
||||
void send_ota_progress_frame(uint8_t progress);
|
||||
void send_ota_result_frame(uint8_t result);
|
||||
void robot_sleep_frame(uint8_t state);
|
||||
void robot_wake_frame(uint8_t state);
|
||||
|
||||
|
||||
void notification_task(void *arg);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user