blob: f12541969b278916fd35bfc5ccc1a692f292d2fe [file] [log] [blame]
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#define GSW_HAL_SUCCESS 0
#define GSW_HAL_FAIL -1 //表示失败
typedef enum{
EN_GSW_USB_SWITCH_CLOSE=0,
EN_GSW_USB_SWITCH_OPEN,
EN_GSW_USB_SWITCH_MAX,
}EN_GSW_USB_SWITCH_TYPE;
/**
* @brief Power failure Save usb switch
* @param [in] EN_GSW_USB_SWITCH_TYPE type:open or close type
* @retval GSW_HAL_SUCCESS is success\other is fail
*/
int32_t gsw_usb_permanent_switch(EN_GSW_USB_SWITCH_TYPE type);
/**
* @brief usb switch is not saved after power failure
* @param [in] EN_GSW_USB_SWITCH_TYPE type:open or close type
* @retval GSW_HAL_SUCCESS is success\other is fail
*/
int32_t gsw_usb_tempporary_switch(EN_GSW_USB_SWITCH_TYPE type);