oscilloscope/User/OSC/OSC.h

46 lines
1.3 KiB
C
Raw Normal View History

2020-10-25 23:29:08 +08:00
#ifndef __OSC_H
#define __OSC_H
#include "rtthread.h"
2020-10-25 23:29:08 +08:00
#include "stm32f10x_it.h"
2020-10-27 21:35:53 +08:00
//<2F><><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>
extern rt_mq_t setting_data_queue;
2020-10-26 23:40:11 +08:00
extern rt_mq_t getwave_status_queue;
2020-10-25 23:29:08 +08:00
2020-12-01 20:49:52 +08:00
//<2F>߳<EFBFBD>
extern rt_thread_t GetWave_thread;
2020-10-27 21:35:53 +08:00
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2020-12-15 16:43:05 +08:00
extern int8_t SamplStatusNrb;
extern int8_t TriggerModeNrb;
extern int8_t SamplingModeNrb;
2020-12-17 19:58:57 +08:00
extern char* CurSamplStatus; //<2F><><EFBFBD><EFBFBD>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4><CCAC>0<EFBFBD><30>ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><DAB2><EFBFBD>
extern float CurTriggerValue; //<2F><><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
extern char* CurTriggerMode; //<2F><><EFBFBD><EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ<C4A3><CABD>0<EFBFBD><30><EFBFBD>½<EFBFBD><C2BD>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>½<EFBFBD><C2BD>ش<EFBFBD><D8B4><EFBFBD>
extern char* CurSamplingMode; //<2F><><EFBFBD><EFBFBD>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ<C4A3><CABD>0<EFBFBD><30><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
extern uint32_t CurTimePerDiv; //<2F><><EFBFBD><EFBFBD>4<EFBFBD><34>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2020-10-27 21:35:53 +08:00
//Ҫ<><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>Ϣ
extern __IO uint16_t ADC_ConvertedValue[];//ADC<44>ɼ<EFBFBD><C9BC><EFBFBD><EFBFBD><EFBFBD>
extern double CurWaveFrq;//<2F><><EFBFBD><EFBFBD>Ƶ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD>λkHz
2020-10-27 21:35:53 +08:00
extern uint32_t TimePerDiv_Group[];
extern uint8_t TimePerDivOderNbr;
extern int8_t TimePerDivOder;//<2F><>ǰÿ<C7B0><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2020-12-17 19:58:57 +08:00
extern char* SamplStatus[];
2020-10-25 23:29:08 +08:00
2020-12-20 10:38:04 +08:00
extern FlagStatus StopSample;
2020-10-25 23:29:08 +08:00
2020-12-17 19:58:57 +08:00
void Setting_Inf_Update(uint8_t CurSetItem);
2020-12-13 22:16:54 +08:00
void PlotBlackground(void);
void CalculateFrequency(void);
2020-10-25 23:29:08 +08:00
void PlotWave(void* parameter);
void Init(void);
void Run(void);
#endif /* __OSC_H */