hong.liu | cd37079 | 2025-05-28 06:29:19 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @file : gsw_usb_interface.h |
| 3 | * @brief : sdk interface |
| 4 | * @date : 2024-09-11 |
| 5 | * @author : liugang |
| 6 | * @version : v1.0 |
| 7 | * @copyright Copyright(C) 2024,Gosuncnwelink |
| 8 | */ |
| 9 | #ifndef __GSW_USB_INTERFACE__H__ |
| 10 | #define __GSW_USB_INTERFACE__H__ |
| 11 | |
| 12 | /*********************************************************************************************/ |
| 13 | #include <stdio.h> |
| 14 | #include <stdlib.h> |
| 15 | #include <string.h> |
| 16 | #include <unistd.h> |
| 17 | #include <pthread.h> |
| 18 | #include <stddef.h> |
| 19 | #include "gsw_hal_errcode.h" |
| 20 | |
| 21 | typedef enum |
| 22 | { |
| 23 | EN_GSW_USB_SWITCH_CLOSE=0, |
| 24 | EN_GSW_USB_SWITCH_OPEN, |
| 25 | EN_GSW_USB_SWITCH_MAX |
| 26 | }EN_GSW_USB_SWITCH_TYPE; |
| 27 | |
| 28 | /** |
| 29 | * @brief permanent switch usb |
| 30 | * @param [in] type switch status |
| 31 | * @retval 0: success |
| 32 | * @retval other: fail |
| 33 | */ |
| 34 | int gsw_usb_permanent_switch(EN_GSW_USB_SWITCH_TYPE type); |
| 35 | |
| 36 | /** |
| 37 | * @brief temporary switch usb |
| 38 | * @param [in] type switch status |
| 39 | * @retval 0: success |
| 40 | * @retval other: fail |
| 41 | */ |
| 42 | int gsw_usb_temporary_switch(EN_GSW_USB_SWITCH_TYPE type); |
| 43 | |
| 44 | #endif //__GSW_USB_INTERFACE__H__ |