/** ******************************************************************** * @file dji_widget_states_manager.h * @version V1.0.0 * @date 2020/11/26 * @brief This is the header file for "dji_widget_manager.h", defining the structure and * (exported) function prototypes. * * @copyright (c) 2021 DJI. All rights reserved. * * All information contained herein is, and remains, the property of DJI. * The intellectual and technical concepts contained herein are proprietary * to DJI and may be covered by U.S. and foreign patents, patents in process, * and protected by trade secret or copyright law. Dissemination of this * information, including but not limited to data and other proprietary * material(s) incorporated within the information, in any form, is strictly * prohibited without the express written consent of DJI. * * If you receive this source code without DJI’s authorization, you may not * further disseminate the information, and you must immediately remove the * source code and notify DJI of its removal. DJI reserves the right to pursue * legal actions against you for any loss(es) or damage(s) caused by your * failure to do so. * ********************************************************************* */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef DJI_WIDGET_STATES_MANNAGER_H #define DJI_WIDGET_STATES_MANNAGER_H /* Includes ------------------------------------------------------------------*/ #include "dji_typedef.h" #include "dji_widget.h" #include "dji_camera_manager.h" // #include "downloader/dji_download_file.h" #ifdef __cplusplus extern "C" { #endif /* Exported constants --------------------------------------------------------*/ #define WIDGET_MANAGER_MAX_FILE_NAME_LEN 32 #define WIDGET_MANAGER_MAX_FILE_PATH_LEN 128 /* Exported types ------------------------------------------------------------*/ /** * @brief Speaker system states. */ typedef enum { DJI_WIDGET_MGR_SPEAKER_SYSTEM_STATE_IDEL = 0, DJI_WIDGET_MGR_SPEAKER_SYSTEM_STATE_IN_TRANSMISSION = 1, DJI_WIDGET_MGR_SPEAKER_SYSTEM_STATE_PLAYING = 2, DJI_WIDGET_MGR_SPEAKER_SYSTEM_STATE_EXCEPTION = 3, DJI_WIDGET_MGR_SPEAKER_SYSTEM_STATE_IN_TTS_CONVERSION = 4, } E_DjiWidgetManagerSpeakerStates; /** * @brief Speaker parameters. */ typedef enum { DJI_WIDGET_MGR_SPEAKER_PARAM_WORK_MODE = 0, /*!< The working mode fo the speaker */ DJI_WIDGET_MGR_SPEAKER_PARAM_PALY_ACTION = 1, /*!< The playing action of the speaker */ DJI_WIDGET_MGR_SPEAKER_PARAM_VOLUME = 2, /*!< The volume action of the speaker */ DJI_WIDGET_MGR_SPEAKER_PARAM_PLAY_MODE = 3, /*!< The playing mode of the speaker */ DJI_WIDGET_MGR_SPEAKER_PARAM_PLAY_FILE_NAME = 4, /*!