/*******************************************************************************
* 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   : main_thread.h
* Description :This module is header for main process.
*******************************************************************************/
#ifndef MAIN_THREAD_H
#define MAIN_THREAD_MAN_H

/******************************************************************************
Includes   <System Includes> , "Project Includes"
******************************************************************************/

#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */


/******************************************************************************
Typedef definitions
******************************************************************************/


/******************************************************************************
Macro definitions
******************************************************************************/
/* ==== EVENT ==== */
#define MAIN_EVENT_ERR          ((uint32_t)0UL)
#define MAIN_EVENT_OPEN         ((uint32_t)1UL)
#define MAIN_EVENT_PLAY         ((uint32_t)2UL)
#define MAIN_EVENT_STOP         ((uint32_t)3UL)
#define MAIN_EVENT_PAUSE        ((uint32_t)4UL)
#define MAIN_EVENT_END          ((uint32_t)5UL)
#define MAIN_EVENT_TOP          ((uint32_t)6UL)
#define MAIN_EVENT_SPLAY        ((uint32_t)7UL)
#define MAIN_EVENT_SSTOP        ((uint32_t)8UL)
#define MAIN_EVENT_SPAUSE       ((uint32_t)9UL)
#define MAIN_EVENT_STUP         ((uint32_t)10UL)
#define MAIN_EVENT_STDWN        ((uint32_t)11UL)
#define MAIN_EVENT_MAX          ((uint32_t)13UL)
#define MAIN_EVENT_NONE         ((uint32_t)14UL)

/******************************************************************************
Variable Externs
******************************************************************************/


/******************************************************************************
Functions Prototypes
******************************************************************************/
/* ==== API Function ==== */
int32_t MAIN_SndMsg (uint32_t event, int32_t detail, uint32_t param);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* MAIN_THREAD_H */

/* End of File */
