sick_dt35/User/device/pc.h
2025-04-02 16:20:48 +08:00

34 lines
1.1 KiB
C

// #pragma once
// /* Includes ----------------------------------------------------------------- */
// #include <stdint.h>
// #include <stdbool.h> // 添加此行以定义 bool 类型
// /* Exported constants ------------------------------------------------------- */
// /* Exported macro ----------------------------------------------------------- */
// /* Exported types ----------------------------------------------------------- */
// typedef struct {
// uint8_t notice;
// } PC_DownPackage_t;
// // 滤波后的ADC数据
// typedef struct {
// uint16_t adc_data; // ADC数据
// } PC_UpPackage_t;
// // ADC数据结构体
// typedef struct {
// PC_DownPackage_t from_pc; // 从PC接收的数据
// PC_UpPackage_t to_pc; // 发送到PC的数据
// bool PC_online; // PC在线状态
// } PC_t;
// extern PC_t pc_data; // 用于存储PC通信数据
// /* Exported functions prototypes -------------------------------------------- */
// void PC_Init(void);
// void PC_SendData(void);
// void PC_ReceiveData(uint8_t *data, uint16_t length);