/** ********************************************************************************************************* * Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved. ********************************************************************************************************* * @file ancs.h * @brief ancs * @details ancs * @author ranhui * @date 2015-03-27 * @version v0.1 * ********************************************************************************************************* */ #ifndef _ANCS_H__ #define _ANCS_H__ #ifdef __cplusplus extern "C" { #endif /*============================================================================* * Header Files *============================================================================*/ #include /** @addtogroup PERIPH_ANCS * @{ */ /*============================================================================* * Macros *============================================================================*/ /** @defgroup PERIPH_ANCS_Exported_Macros ANCS Exported Macros * @{ */ #define ANCS_MAX_ATTR_LEN 256 //!< Max ancs attribute length #if F_BT_ANCS_GET_APP_ATTR #define ANCS_APP_IDENTIFIER_MAX_LEN 30 //!< Max app IDENTIFIER length #endif #define ANCS_MSG_QUEUE_NUM 5 //!< ANCS message queue size /** @brief ANCS event flag */ #define NS_EVENT_FLAG_SILENT (1 << 0) #define NS_EVENT_FLAG_IMPORTANT (1 << 1) #define NS_EVENT_FLAG_PRE_EXISTING (1 << 2) #define NS_EVENT_FLAG_POSITIVE_ACTION (1 << 3) //!