V1.0
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __rgblight_H__
|
||||
#define __rgblight_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
typedef struct BLE_DATA_MSG
|
||||
{
|
||||
uint8_t tpye;
|
||||
uint8_t r_value;
|
||||
uint8_t g_value;
|
||||
uint8_t b_value_mode_speed_brightness;
|
||||
uint8_t colors[21];
|
||||
}ble_data_msg;
|
||||
|
||||
|
||||
|
||||
typedef struct BLE_USR_DATA
|
||||
{
|
||||
uint8_t data_buf[132];//数据最大 1字节帧头+1字节长度+128字节(数据)+类型+1字节累加合校验
|
||||
}ble_usr_data;
|
||||
|
||||
extern ble_usr_data user_ble_usr_data;
|
||||
extern ble_usr_data *p_ble_usr_data;
|
||||
|
||||
|
||||
typedef struct BLE_OTA_DATA
|
||||
{
|
||||
uint8_t data_buf[255];
|
||||
|
||||
}ble_ota_data;
|
||||
|
||||
extern ble_ota_data user_ble_ota_data;
|
||||
extern ble_ota_data *p_ble_ota_data;
|
||||
|
||||
extern uint8_t app_data[];
|
||||
|
||||
|
||||
void ble_message_process(void);
|
||||
void uar_rdate(void);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __UART_H__ */
|
||||
Reference in New Issue
Block a user