lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /**
|
| 2 | *
|
| 3 | * @file AudioExport.h
|
| 4 | * @brief
|
| 5 | * This file is part of ZCAT.
|
| 6 | * ZCAT¹¤¾ßÒôƵÊý¾Ýµ¼³öÄ£¿é½Ó¿Ú¶¨Òå
|
| 7 | *
|
| 8 | * @details
|
| 9 | * @author Tools Team.
|
| 10 | * @email
|
| 11 | * @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
|
| 12 | * @warning
|
| 13 | * @date 2019/02/02
|
| 14 | * @version 1.1
|
| 15 | * @pre
|
| 16 | * @post
|
| 17 | *
|
| 18 | * @par
|
| 19 | * Change History :
|
| 20 | * ---------------------------------------------------------------------------
|
| 21 | * date version author description
|
| 22 | * ---------------------------------------------------------------------------
|
| 23 | * 2016/12/13 1.0 hou.bing Create file
|
| 24 | * 2019/02/02 1.1 jiang.fenglin ÐÞ¸Ä×¢ÊÍ·½Ê½Îªdoxygen
|
| 25 | * ---------------------------------------------------------------------------
|
| 26 | *
|
| 27 | *
|
| 28 | */
|
| 29 |
|
| 30 | #ifndef AUDIO_EXPORT_H
|
| 31 | #define AUDIO_EXPORT_H
|
| 32 |
|
| 33 | typedef struct
|
| 34 | {
|
| 35 | UINT32 rxIn_Addr;
|
| 36 | UINT32 rxOut_Addr;
|
| 37 | UINT32 txIn_Addr;
|
| 38 | UINT32 txOut_Addr;
|
| 39 | UINT32 rxIn_Len;
|
| 40 | UINT32 rxOut_Len;
|
| 41 | UINT32 txIn_Len;
|
| 42 | UINT32 txOut_Len;
|
| 43 | }T_ZCAT_AUDIO_MEM_PARAM;
|
| 44 |
|
| 45 |
|
| 46 | typedef enum
|
| 47 | {
|
| 48 | ZCAT_AUDIO_PS_BASE = 0,
|
| 49 | ZCAT_AUDIO_PS_DL = 1,
|
| 50 | ZCAT_AUDIO_PS_UL = 2,
|
| 51 | ZCAT_AUDIO_PS_SYNC = 3,
|
| 52 | ZCAT_AUDIO_PS_TMP = 4,
|
| 53 | ZCAT_AUDIO_PS_END = 10,
|
| 54 |
|
| 55 | ZCAT_AUDOI_DRV_BASE = 10,
|
| 56 | ZCAT_AUDIO_DRV_RXIN = 11,
|
| 57 | ZCAT_AUDIO_DRV_RXOUT = 12,
|
| 58 | ZCAT_AUDIO_DRV_TXIN = 13,
|
| 59 | ZCAT_AUDIO_DRV_TXOUT = 14,
|
| 60 | ZCAT_AUDIO_DRV_END = 20
|
| 61 |
|
| 62 | } T_ZCAT_AUDIO_MEM_TYPE;
|
| 63 |
|
| 64 |
|
| 65 | /**
|
| 66 | * @brief ÒôƵÊý¾Ýµ¼³ö´¦Àíº¯Êý
|
| 67 | * @param[in] buf »º´æÖ¸Õë
|
| 68 | * @param[in] buf »º´æ³¤¶È
|
| 69 | * @return void
|
| 70 | * @note
|
| 71 | * @see
|
| 72 | */
|
| 73 | VOID zCatAgt_Audio_Export_ProcessMsg(VOID *buf, UINT32 len);
|
| 74 |
|
| 75 | /**
|
| 76 | * @brief ÒôƵÊý¾Ýµ¼³ö×¢²áº¯Êý
|
| 77 | * @param[in] type ÀàÐÍ
|
| 78 | * @param[in] size ´óС
|
| 79 | * @param[in] addr µØÖ·
|
| 80 | * @return ³É¹¦·µ»ØZOSS_SUCCESS, ·ñÔò·µ»ØZOSS_ERROR
|
| 81 | * @note
|
| 82 | * @see
|
| 83 | */
|
| 84 | UINT32 zCatAgt_Audio_Reg(UINT32 type, UINT32 size, UINT32 addr);
|
| 85 |
|
| 86 | /**
|
| 87 | * @brief ÒôƵÊý¾Ýµ¼³ö³õʼ»¯
|
| 88 | * @param[in] void
|
| 89 | * @return ³É¹¦·µ»ØZOSS_SUCCESS, ·ñÔò·µ»ØZOSS_ERROR
|
| 90 | * @note
|
| 91 | * @see
|
| 92 | */
|
| 93 | UINT32 zCatAgt_Audio_Export_Init(VOID);
|
| 94 |
|
| 95 | /**
|
| 96 | * @brief ÉèÖÃÒôƵÎļþ²ÎÊý \n
|
| 97 | ÔÚÔÓй̶¨µÄÒôƵÎļþµØÖ·»ù´¡ÉÏÐ޸ģ¬Ö§³Ö¶¯Ì¬ÉêÇëµÄÒôƵÎļþµØÖ·
|
| 98 | * @param[in] ptParam ÒôƵÎļþ²ÎÊý
|
| 99 | * @return void
|
| 100 | * @note
|
| 101 | * @see
|
| 102 | */
|
| 103 | VOID zCatAgt_SetAudioFileInfo(T_ZCAT_AUDIO_MEM_PARAM* ptParam);
|
| 104 |
|
| 105 | #endif
|