| /** |
| * @file flags_api.h |
| * @brief flags·ÖÇø½Ó¿Ú |
| * |
| * Copyright (C) 2023 Sanechips Technology Co., Ltd. |
| * @author |
| * @ingroup |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 as |
| * published by the Free Software Foundation. £¨±ØÑ¡£ºGPLv2 Licence£© |
| * |
| */ |
| |
| |
| #ifndef FLAGS_API_H |
| #define FLAGS_API_H |
| |
| |
| /******************************************************************************* |
| * Include header files * |
| ******************************************************************************/ |
| #include "pub_flags.h" |
| |
| |
| /******************************************************************************* |
| * Macro definitions * |
| ******************************************************************************/ |
| |
| |
| /******************************************************************************* |
| * Type definitions * |
| ******************************************************************************/ |
| |
| |
| /******************************************************************************* |
| * Global variable declarations * |
| ******************************************************************************/ |
| |
| |
| /******************************************************************************* |
| * Global function declarations * |
| ******************************************************************************/ |
| /** |
| * @brief ³õʼ»¯flags·ÖÇø |
| * @param[out] p_flags_info flags³õʼ»¯Êý¾Ý |
| * @return 0 ³õʼ»¯³É¹¦, -1 ³õʼ»¯Ê§°Ü |
| * @note |
| */ |
| int flags_init(); |
| |
| |
| /** |
| * @brief »ñÈ¡flags·ÖÇøÄÚÈÝ |
| * @param[out] p_flags_info flags·ÖÇøÄÚÈÝ |
| * @return 0 »ñÈ¡³É¹¦, -1 »ñȡʧ°Ü |
| * @note |
| */ |
| int flags_get(T_FLAGS_INFO *p_flags_info); |
| |
| |
| /** |
| * @brief ÉèÖÃflags·ÖÇøÄÚÈÝ |
| * @param[out] p_flags_info flags·ÖÇøÄÚÈÝ |
| * @return 0 ÉèÖóɹ¦, -1 ÉèÖÃʧ°Ü |
| * @note |
| */ |
| int flags_set(T_FLAGS_INFO *p_flags_info); |
| |
| |
| /** |
| * @brief »ñÈ¡flags·ÖÇøÖÐubifs״̬ |
| * @param[out] status ubifs״̬ |
| * @return 0 »ñÈ¡³É¹¦, -1 »ñȡʧ°Ü |
| * @note |
| */ |
| int flags_get_ubifs_status(T_UBIFS_STATUS *p_ubifs_status); |
| |
| |
| /** |
| * @brief ÉèÖÃflags·ÖÇøÖÐubifs״̬ |
| * @param[in] status ubifs״̬ |
| * @return 0 ÉèÖóɹ¦, -1 ÉèÖÃʧ°Ü |
| * @note |
| */ |
| int flags_set_ubifs_status(T_UBIFS_STATUS *p_ubifs_status); |
| |
| |
| /** |
| * @brief »ñÈ¡µ±Ç°ÏµÍ³ |
| * @return µ±Ç°ÔËÐÐϵͳ |
| * @note |
| */ |
| int flags_get_current_system(); |
| |
| |
| #endif // FLAGS_API_H |
| |