47 lines
916 B
C
47 lines
916 B
C
/*
|
|
* @Date: 2024-07-18 14:56:09
|
|
* @LastEditors: lzc56 563451665@qq.com
|
|
* @LastEditTime: 2024-12-10 17:32:55
|
|
* @FilePath: \software\main\inc\bsp_algCom.h
|
|
*/
|
|
|
|
#ifndef __BSP_ALGCOM_H__
|
|
#define __BSP_ALGCOM_H__
|
|
|
|
#include <main.h>
|
|
#include <ctype.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <cjson.h>
|
|
#include "drv_usart.h"
|
|
#include "esp_wifi.h"
|
|
#include "bsp_mqtt.h"
|
|
#include "freertos/queue.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
enum Devices_Status
|
|
{
|
|
OffBed_Status = 3,
|
|
InBed_Status = 4,
|
|
Fiber_Error_Status = 5,
|
|
OffLine_Status = 6,
|
|
Sensor_Load_Status = 9,
|
|
WeakSignal_Status = 10,
|
|
};
|
|
extern TaskHandle_t Alg_TaskHandle;
|
|
|
|
void protobufTest(void);
|
|
void algCom_task(void *arg);
|
|
int8_t get_connectWifi_RSSI(void);
|
|
unsigned int My_crc32(unsigned char *ptr, int len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __BSP_ALGCOM_H__ */
|