#ifndef __DEVICE_AUXSWITCH_H_
#define __DEVICE_AUXSWITCH_H_
#include "gd32f4xx.h"
///云台护罩电源管理
//相机电源

#define PTZ_POWER_PHOTO_PORT        GPIOE//可见光相机
#define PTZ_POWER_PHOTO_PIN         3
#define PHOTO_POWER_PHOTO_ON        (gpio_bit_set(GPIOE, 2))
#define PHOTO_POWER_PHOTO_OFF       (gpio_bit_reset(GPIOE, 2))

#define PTZ_POWER_FARIR_PORT        GPIOE//远红外相机
#define PTZ_POWER_FARIR_PIN         2
#define FARIR_POWER_FARIR_ON        (gpio_bit_set(GPIOE, 3))
#define FARIR_POWER_FARIR_OFF       (gpio_bit_reset(GPIOE, 3))


#define POWER_ON                1  //电源打开
#define POWER_OFF               0  //电源关闭

void init_auxswitch_module();
void ptz_aux_switch(unsigned char SwitchNum, unsigned char Power);


#endif