#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 //��Ϊ�涨unsigned int ���ݱ�ʾ���ֵ


#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