/*******************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas Electronics Corporation and is protected under
* all applicable laws, including copyright laws.
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
* Renesas reserves the right, without notice, to make changes to this software
* and to discontinue the availability of this software. By using this software,
* you agree to the additional terms and conditions found by accessing the
* following link:
* http://www.renesas.com/disclaimer
* Copyright (C) 2014 Renesas Electronics Corporation. All rights reserved.
*******************************************************************************/
/*******************************************************************************
* File Name    : usb_audio.h
* Device(s)    : RZ/A1H
* Tool-Chain   :
* OS           : None
* H/W Platform :
* Description  : RZ/A1H R7S72100 USB Sample Program
* Operation    :
* Limitations  :
*******************************************************************************/

/*******************************************************************************
Includes   <System Includes> , "Project Includes"
*******************************************************************************/
#include "usb_host_user.h"

/*******************************************************************************
Typedef definitions
*******************************************************************************/
typedef struct
{
    uint32_t event;
    int32_t  detail;
    uint32_t param1;
    uint32_t param2;
}msg_audio_out_t;

/*******************************************************************************
Macro definitions
*******************************************************************************/

/* User define */
#define STRM_OUT_SAMPLE_RATE        USB_USER_SAMPLE_RATE

#define AUDIO_START ((uint32_t)0x01UL)
#define AUDIO_STOP  ((uint32_t)0x02UL)
#define AUDIO_MUTE  ((uint32_t)0x03UL)
#define AUDIO_BUFF_FULL ((uint32_t)0x04UL)
#define AUDIO_END_MUSIC ((uint32_t)0x05UL)

#define MUTE_ON     ((uint32_t)0x01UL)
#define MUTE_OFF    ((uint32_t)0x02UL)

/*******************************************************************************
Imported global variables and functions (from other files)
*******************************************************************************/

/*******************************************************************************
Exported global variables and functions (to be accessed by other files)
*******************************************************************************/

/*******************************************************************************
Private global variables and functions
*******************************************************************************/
extern int32_t AOUT_CreateThread(void);
extern void AOUT_TerminateThread(void);
extern int32_t AOUT_Start(uint16_t devadr);
extern int32_t AOUT_Stop(void);
extern int32_t AOUT_Mute(void);
extern int32_t AOUT_Rel_Mute(void);
extern int32_t AOUT_Buff_Full(void);
extern int32_t AOUT_End_Music(void);

/* End of File */
