| /** |
| * @file : gsw_usb_interface.h |
| * @brief : sdk interface |
| * @date : 2024-09-11 |
| * @author : liugang |
| * @version : v1.0 |
| * @copyright Copyright(C) 2024,Gosuncnwelink |
| */ |
| #ifndef __GSW_USB_INTERFACE__H__ |
| #define __GSW_USB_INTERFACE__H__ |
| |
| /*********************************************************************************************/ |
| #include <stdio.h> |
| #include <stdlib.h> |
| #include <string.h> |
| #include <unistd.h> |
| #include <pthread.h> |
| #include <stddef.h> |
| #include "gsw_hal_errcode.h" |
| |
| typedef enum |
| { |
| EN_GSW_USB_SWITCH_CLOSE=0, |
| EN_GSW_USB_SWITCH_OPEN, |
| EN_GSW_USB_SWITCH_MAX |
| }EN_GSW_USB_SWITCH_TYPE; |
| |
| /** |
| * @brief permanent switch usb |
| * @param [in] type switch status |
| * @retval 0: success |
| * @retval other: fail |
| */ |
| int gsw_usb_permanent_switch(EN_GSW_USB_SWITCH_TYPE type); |
| |
| /** |
| * @brief temporary switch usb |
| * @param [in] type switch status |
| * @retval 0: success |
| * @retval other: fail |
| */ |
| int gsw_usb_temporary_switch(EN_GSW_USB_SWITCH_TYPE type); |
| |
| #endif //__GSW_USB_INTERFACE__H__ |