📄 lib_tools.h
字号:
//*----------------------------------------------------------------------------
//* ATMEL Microcontroller Software Support - ROUSSET -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name : tools.c
//* Object : tools for get triminal information
//* Prototyping File.
//* 1.0 29/08/00 JPP : Creation
//*----------------------------------------------------------------------------
#ifndef lib_tools_h
#define lib_tools_h
#include "parts/m55800/lib_m55800.h"
#include "drivers/com/com.h"
/* Structure def */
typedef struct
{
const TCDesc *TC_dac0;
int trig_selection_dac0;
const TCDesc *TC_dac1;
int trig_selection_dac1;
const TCDesc *TC_adc0;
int trig_selection_adc0;
const TCDesc *TC_adc1;
int trig_selection_adc1;
} manage_timer ;
typedef struct
{
u_int echo;
u_int cmpt;
u_int nb_read;
u_int read;
u_int moy;
u_int min;
u_int max;
} GetTestValue ;
extern GetTestValue timer_interrup;
//* Global Variable
extern char message[512];
extern ComDesc COM;
extern manage_timer timer_base;
extern void get_timer_manage( void);
extern void print_timer_manage( void);
/* Function Prototyping */
//* ADC Tools
extern void print_adc_mode(int adc_mode,int adc_channel);
extern void get_adc_mode( int *adc_mode,int *adc_channel );
//* Timer tools
extern void get_timer_mode( int *tioc, int *tc_div );
extern void print_timer_mode(int tioc,int tc_div);
#endif /* lib_tools_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -