You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
3.7 KiB

1 year ago
////////////////////////////////////////////////////////////////////////////
///@copyright Copyright (c) 2022, 传控科技 All rights reserved.
///-------------------------------------------------------------------------
/// @file app_save.h
/// @brief @ app save
///-------------------------------------------------------------------------
/// @version 1.0
/// @author CC
/// @date 20220120
/// @note cc_AS_stc02
/*********
1,
1 512---4-6ms
01
,,
,
--->,
1,,512
30
2, ,.--->,;
flash 28k 8k EEp 28K的最后8K 5000h-6FFFh
*******/
/*******
app_config app_save
app_save ,
,西,,使bsp中
asp ,app通过参数调用asp,使.
,.
app ,
asp app support program wifi的模式设置,adc的读取后的处理
bsp board support program ,wdt,wifi的底层配置函数,sensor
msp mcu support program ,cpu自身的外设,uart led
cpu
*****/
/*******
adc采样值
^
|
| o
| |
| o |
| | |
| ---|---- |------------0=adc=0
0 | |D_ADC_OFFSET
|____|_____|____________> adc + D_ADC_OFFSET
0 40 80
西:
1,< >
2, 0kg的时候的<>
3,<> + <>
3.1 ,250kg,,,.<250kg,>
4, : <(+-10kg)>,<>
,.
5,,<>,,.
4,.
B:4,.
---->C: 4.5 ,
c,,0 (H1sL0.5s)3
西:
< > Byte x n=? .
Byte x n=? .
<> Byte x n=? .
<> ,
,250kg
,id之类的
3,,,使.使.
*****/
//////////////////////////////////////////////////////////////////////////////
#ifndef _asp_weight_save_H
#define _asp_weight_save_H
#include "TTSS_task.h"
#include "c_lib.h"
#include "../bsp/bsp_config.h"
#include "msp_uart1.h"
#include "msp_uartN.h"
///#include "asp_para.h"
///#include "app_weight.h"
////#include "asp_adc.h"
extern void L4_iap_2_reg(void);
void L4_print_iap(TS_weight_SPara_ *s);
u8 L4_reg_2_iap(void);
#endif // #ifndef _APP_TASK_ADC_H