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.
57 lines
1.1 KiB
57 lines
1.1 KiB
//////////////////////////////////////////////////////////////////////////
|
|
/// COPYRIGHT NOTICE
|
|
/// Copyright (c) 2023, 传控科技
|
|
/// All rights reserved.
|
|
///
|
|
/// @file asp_gsensor.c
|
|
/// @brief asp_gsensor
|
|
///
|
|
///(本文件实现的功能的详述)
|
|
///
|
|
|
|
|
|
////20221217_213321 CCmodify new uart struct for road protocol
|
|
|
|
|
|
#ifndef _ASP_EXPARA_H_
|
|
#define _ASP_EXPARA_H_
|
|
#include "bsp_config.h"
|
|
#include "msp_uart1.h"
|
|
#include "msp_UART2.h"
|
|
#include "TTSS_task.h"
|
|
|
|
|
|
#define D_sample_adc_vbat 5
|
|
#define D_sample_adc_angle 6
|
|
#define D_sample_adc_pt 7
|
|
|
|
#define D_sample_adc_vref 15
|
|
|
|
|
|
#define D_sample_vbat_interval D_Tdelay_300ms
|
|
#define D_sample_angle_interval D_Tdelay_100ms///D_Tdelay_300ms
|
|
#define D_sample_pt_interval D_Tdelay_300ms
|
|
#define D_sample_vref_interval D_Tdelay_300ms
|
|
|
|
typedef struct
|
|
{
|
|
vU32 n;
|
|
u8 en;
|
|
vU16 val;
|
|
}TS_adcch_;
|
|
|
|
|
|
typedef struct
|
|
{
|
|
TS_adcch_ vref;////1.19
|
|
TS_adcch_ vbat;
|
|
TS_adcch_ pt;
|
|
TS_adcch_ angle;
|
|
|
|
}TS_EXPARA_;
|
|
extern TS_EXPARA_ ts_expara;
|
|
void L1_expara_sample(void);
|
|
void L1_expara_init(unsigned char onf);
|
|
|
|
#endif ///#ifndef _ASP_MOVE_H_
|
|
|
|
|