MedBldc_XiongrChange/Hyt2/APP/Common/ptz_global_variable.h

32 lines
944 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __PTZ_GLOBAL_VARIABLE_H_
#define __PTZ_GLOBAL_VARIABLE_H_
#include "service_areascan.h"
#include "service_presetbitscan.h"
#include "bsp_os.h"
#include "sock_utils.h"
#include "ptz_type_select.h"
#include "ptz_header_file.h"
#include "gd32f4xx.h"
#include "pdebug.h"
#define UNSIGNED_INT_MAX_VALUE 0xffffff00 //<2F><>Ϊ<EFBFBD>涨unsigned int <20><><EFBFBD>ݱ<EFBFBD>ʾ<EFBFBD><CABE><EFBFBD>ֵ
#define PHOTO_POWER_PHOTO_ON gpio_bit_set(GPIOE, GPIO_PIN_2)
#define PHOTO_POWER_PHOTO_OFF gpio_bit_reset(GPIOE, GPIO_PIN_2)
#define FARIR_POWER_FARIR_ON gpio_bit_set(GPIOE, GPIO_PIN_3)
#define FARIR_POWER_FARIR_OFF gpio_bit_reset(GPIOE, GPIO_PIN_3)
extern unsigned char g_program_version_number[50];
extern unsigned char g_ptz_type[60];
void ptz_return_clear();
void ptz_aux_switch_init();
void ptz_send_program_version_number(char dev);
void ptz_send_ptz_type(char dev);
char aux_switch_cfg_read();
char aux_switch_cfg_save();
#endif