/*
 * Copyright (c) 2021 Bestechnic (Shanghai) Co., Ltd. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef __RESOURCES_H__
#define __RESOURCES_H__
#include "plat_types.h"

typedef enum {
    AUD_ID_INVALID  = -1,
    AUD_ID_POWER_ON = 0x0,
    AUD_ID_POWER_OFF,
    AUD_ID_LANGUAGE_SWITCH,

    AUD_ID_NUM_0,
    AUD_ID_NUM_1,
    AUD_ID_NUM_2,
    AUD_ID_NUM_3,
    AUD_ID_NUM_4,
    AUD_ID_NUM_5,
    AUD_ID_NUM_6,
    AUD_ID_NUM_7,
    AUD_ID_NUM_8,
    AUD_ID_NUM_9,

    AUD_ID_BT_PAIR_ENABLE,
    AUD_ID_BT_PAIRING,
    AUD_ID_BT_PAIRING_SUC,
    AUD_ID_BT_PAIRING_FAIL,
    AUD_ID_BT_CALL_REFUSE,
    AUD_ID_BT_CALL_OVER,
    AUD_ID_BT_CALL_ANSWER,
    AUD_ID_BT_CALL_HUNG_UP,
    AUD_ID_BT_CALL_INCOMING_CALL,
    AUD_ID_BT_CALL_INCOMING_NUMBER,
    AUD_ID_BT_CHARGE_PLEASE,
    AUD_ID_BT_CHARGE_FINISH,
    AUD_ID_BT_CLEAR_SUCCESS,
    AUD_ID_BT_CLEAR_FAIL,
    AUD_ID_BT_CONNECTED,
    AUD_ID_BT_DIS_CONNECT,
    AUD_ID_BT_WARNING,
    AUDIO_ID_BT_ALEXA_START,
    AUDIO_ID_BT_ALEXA_STOP,
    AUDIO_ID_BT_GSOUND_MIC_OPEN,
    AUDIO_ID_BT_GSOUND_MIC_CLOSE,
    AUDIO_ID_BT_GSOUND_NC,
    AUDIO_ID_BT_MUTE,
    AUD_ID_RING_WARNING,
#ifdef __INTERACTION__
    AUD_ID_BT_FINDME,
#endif
    MAX_RECORD_NUM,
    AUD_ID_ENUM_BOTTOM = 0x1001,
} AUD_ID_ENUM;

enum ENUM_RESOURCE_ID
{
    RES_ENGLISH_ID = 0xFF00,
    RES_CHINESE_ID = 0xFF01,

    MAX_RES_LANGUAGE_ID
};

//typedef uint8_t UINT8;
//typedef uint16_t UINT16;
//typedef uint32_t UINT32;

void init_audio_resource(void* gResource);

UINT8* aud_get_reouce(AUD_ID_ENUM id, UINT32* leng, UINT16* type);

const char *aud_id2str(UINT16 aud_id);

extern UINT8 BIN_FILE[];

#endif//__RESOURCES_H__

