温度,pn,sn,生产时间和厂家,积分时间,像素长度等变量

This commit is contained in:
wantong
2024-01-31 15:17:21 +08:00
parent 0732984a64
commit c5b2a4e98b
42 changed files with 5275 additions and 8507 deletions

View File

@ -0,0 +1,12 @@
//
// Created by zhu on 2024/1/31.
//
#ifndef H750_CJSON_CONTROL_ADJUSTMENT_H
#define H750_CJSON_CONTROL_ADJUSTMENT_H
#include "stdint.h"
#include "stdio.h"
void Control_St(uint8_t st_time);
#endif //H750_CJSON_CONTROL_ADJUSTMENT_H

12
Core/Inc/Get_Parameters.h Normal file
View File

@ -0,0 +1,12 @@
//
// Created by zhu on 2024/1/31.
//
#ifndef H750_CJSON_GET_PARAMETERS_H
#define H750_CJSON_GET_PARAMETERS_H
#include "stdio.h"
float Get_Temperature();
#endif //H750_CJSON_GET_PARAMETERS_H

View File

@ -0,0 +1,16 @@
//
// Created by zhu on 2024/1/31.
//
#ifndef H750_CJSON_STORE_INFORMATION_H
#define H750_CJSON_STORE_INFORMATION_H
void Printf_Pn_Number();
void Printf_Sn_Number();
void Printf_Product_Time();
void Printf_Manufacturer();
void Printf_Device_Pixel_Length();
#endif //H750_CJSON_STORE_INFORMATION_H

View File

@ -5,13 +5,17 @@
#ifndef H750_CJSON_CJSON_TEST_H
#define H750_CJSON_CJSON_TEST_H
struct paramstruct {
int age;
float height;
int temperature;
int pn;
int sn;
int production_date;
int manufacturer;
int Device_Pixel_Length;
uint8_t Set_Integration_Time;
};
//void cjson(const char * g_usart_json_string);
void cjson(uint8_t g_usart_json_string[]);
void parseNestedObject(cJSON *nestedObject);
int Change_Age();
struct paramstruct *GetParametesptr();
void SV_Change_Age();
#endif //H750_CJSON_CJSON_TEST_H

View File

@ -56,6 +56,7 @@ void DebugMon_Handler(void);
void PendSV_Handler(void);
void SysTick_Handler(void);
void USART1_IRQHandler(void);
void USART3_IRQHandler(void);
/* USER CODE BEGIN EFP */
/* USER CODE END EFP */

View File

@ -34,6 +34,8 @@ extern "C" {
extern UART_HandleTypeDef huart1;
extern UART_HandleTypeDef huart3;
/* USER CODE BEGIN Private defines */
#define USART_REC_LEN 200 /* 定义<E5AE9A><E4B989>??大接<E5A4A7><E68EA5>??200字节数据 */
#define USART_EN_RX 1 /* 使能串口接收 */
@ -42,6 +44,7 @@ extern UART_HandleTypeDef huart1;
/* USER CODE END Private defines */
void MX_USART1_UART_Init(void);
void MX_USART3_UART_Init(void);
/* USER CODE BEGIN Prototypes */
extern uint8_t g_usart_rx_buf[USART_REC_LEN]; /* 串口缓冲<E7BC93><E586B2>?? */