API/iMONDisplayAPI.h
author sl
Sat, 15 Mar 2014 13:03:01 +0100
changeset 12 2f70b4447d70
permissions -rw-r--r--
Upgrade solution from Express to VS2012
StephaneLenclud@9
     1
#ifndef __IMON_DISPLAY_API_H__
StephaneLenclud@9
     2
#define __IMON_DISPLAY_API_H__
StephaneLenclud@9
     3
StephaneLenclud@9
     4
////////////////////////////////////
StephaneLenclud@9
     5
//	includes
StephaneLenclud@9
     6
/** iMONDisplayDefines.h
StephaneLenclud@9
     7
This header file defines several enumerations. Open this file and check the definition and usage of enumerations and structures*/
StephaneLenclud@9
     8
#include "iMONDisplayDefines.h"
StephaneLenclud@9
     9
StephaneLenclud@9
    10
#ifdef IMON_DISPLAY_API_EXPORT
StephaneLenclud@9
    11
#define IMONDSPAPI __declspec(dllexport)
StephaneLenclud@9
    12
#else
StephaneLenclud@9
    13
#define IMONDSPAPI __declspec(dllimport)
StephaneLenclud@9
    14
#endif
StephaneLenclud@9
    15
StephaneLenclud@9
    16
#ifdef __cplusplus
StephaneLenclud@9
    17
extern "C" 
StephaneLenclud@9
    18
{
StephaneLenclud@9
    19
#endif	//__cplusplus
StephaneLenclud@9
    20
StephaneLenclud@9
    21
	/////////////////////////////////////
StephaneLenclud@9
    22
	/////	Interfaces
StephaneLenclud@9
    23
	/**DSPResult IMON_Display_Init(HWND hwndNoti, UINT uMsgNotification)
StephaneLenclud@9
    24
	@brief	This function should be called to use other functions in iMON Display API.\n 
StephaneLenclud@9
    25
				When the caller application calls this function, API tries to request Display Plug-in Mode to iMON.
StephaneLenclud@9
    26
	@param	[in] hwndNoti	API will send/post message to this handle.
StephaneLenclud@9
    27
	@param	[in] uMsgNotification	API will send/post message to hwndNoti with this message identifier.
StephaneLenclud@9
    28
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
    29
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_INVALIDARG or DSP_E_OUTOFMEMORY can be returned when error occurs.*/
StephaneLenclud@9
    30
	IMONDSPAPI DSPResult IMON_Display_Init(HWND hwndNoti, UINT uMsgNotification);
StephaneLenclud@9
    31
StephaneLenclud@9
    32
	/**DSPResult IMON_Display_Uninit()
StephaneLenclud@9
    33
	@brief	This function should be called when the caller application need not use this API any more.\n 
StephaneLenclud@9
    34
				If this function call is missed, iMON can't display other information.\n
StephaneLenclud@9
    35
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
    36
				DSP_SUCCEEDED will be returned if succeeded.*/
StephaneLenclud@9
    37
	IMONDSPAPI DSPResult IMON_Display_Uninit();
StephaneLenclud@9
    38
StephaneLenclud@9
    39
	/**DSPResult IMON_Display_IsInited()
StephaneLenclud@9
    40
	@brief	This function can be used when the caller application wants to know if API is initialized.\n 
StephaneLenclud@9
    41
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
    42
				If API is initialized, this call will return DSP_S_INITED. Otherwise DSP_S_NOT_INITED will be returned.*/
StephaneLenclud@9
    43
	IMONDSPAPI DSPResult IMON_Display_IsInited();
StephaneLenclud@9
    44
StephaneLenclud@9
    45
	/**DSPResult IMON_Display_IsPluginModeEnabled()
StephaneLenclud@9
    46
	@brief	This function can be used when the caller application wants to know if API can control iMON display.\n
StephaneLenclud@9
    47
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
    48
				If API can control iMON display, this call will return DSP_S_IN_PLUGIN_MODE. Otherwise DSP_S_NOT_IN_PLUGIN_MODE will be returned.*/
StephaneLenclud@9
    49
	IMONDSPAPI DSPResult IMON_Display_IsPluginModeEnabled();
StephaneLenclud@9
    50
StephaneLenclud@9
    51
StephaneLenclud@9
    52
	/**DSPResult IMON_Display_SetVfdText(LPCTSTR lpsz1stLine, LPCTSTR lpsz2ndLine)
StephaneLenclud@9
    53
	@brief	This function can be used when the caller application wants to display text data on VFD module.\n
StephaneLenclud@9
    54
	@param	[in] lpsz1stLine	This string data will be displayed on the 1st line of VFD module.\n
StephaneLenclud@9
    55
									It doesn't support multi-byte character and if string data is longer than 16 characters, it displays 16 characters from the first.\n
StephaneLenclud@9
    56
	@param	[in] lpsz2ndLine	This string data will be displayed on the 2nd line of VFD module.\n
StephaneLenclud@9
    57
									It doesn't support multi-byte character and if string data is longer than 16 characters, it displays 16 characters from the first.\n
StephaneLenclud@9
    58
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
    59
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_POINTER, DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
    60
	IMONDSPAPI DSPResult IMON_Display_SetVfdText(LPCTSTR lpsz1stLine, LPCTSTR lpsz2ndLine);
StephaneLenclud@9
    61
StephaneLenclud@9
    62
	/**DSPResult IMON_Display_SetVfdEqData(PDSPEQDATA pEqData)
StephaneLenclud@9
    63
	@brief	This function can be used when the caller application wants to display equalizer data on VFD module.\n
StephaneLenclud@9
    64
	@param	[in] pEqData	Pointer of DSPEQDATA structure. The caller application should fill this structure with the equalizer data for 16 bands.\n
StephaneLenclud@9
    65
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
    66
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_POINTER, DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
    67
	IMONDSPAPI DSPResult IMON_Display_SetVfdEqData(PDSPEQDATA pEqData);
StephaneLenclud@9
    68
StephaneLenclud@9
    69
StephaneLenclud@9
    70
	/**DSPResult IMON_Display_SetLcdText(LPCTSTR lpszText)
StephaneLenclud@9
    71
	@brief	This function can be used when the caller application wants to display text data on LCD module.\n
StephaneLenclud@9
    72
	@param	[in] lpszText	This string data will be displayed on the LCD module.\n
StephaneLenclud@9
    73
									It supports multi-byte character and if string data is longer than display area, it will start to scroll.\n
StephaneLenclud@9
    74
									When text scrolling is finished, API will notify it with DSPNotifyCode enumeration value, DSPNM_LCD_TEXT_SCROLL_DONE.\n
StephaneLenclud@9
    75
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
    76
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_POINTER, DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
    77
	IMONDSPAPI DSPResult IMON_Display_SetLcdText(LPCTSTR lpszText);
StephaneLenclud@9
    78
StephaneLenclud@9
    79
	/**DSPResult IMON_Display_SetLcdEqData(PDSPEQDATA pEqDataL, PDSPEQDATA pEqDataR)
StephaneLenclud@9
    80
	@brief	This function can be used when the caller application wants to display equalizer data on LCD module.\n
StephaneLenclud@9
    81
	@param	[in] pEqDataL    Pointer of DSPEQDATA structure. This parameter represents equalizer data of left channel.\n
StephaneLenclud@9
    82
								 The caller application should fill this structure with the equalizer data of left channel for 16 bands.\n
StephaneLenclud@9
    83
	@param	[in] pEqDataR    Pointer of DSPEQDATA structure. This parameter represents equalizer data of right channel.\n
StephaneLenclud@9
    84
								 The caller application should fill this structure with the equalizer data of right channel for 16 bands.\n
StephaneLenclud@9
    85
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
    86
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_POINTER, DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
    87
	IMONDSPAPI DSPResult IMON_Display_SetLcdEqData(PDSPEQDATA pEqDataL, PDSPEQDATA pEqDataR);
StephaneLenclud@9
    88
StephaneLenclud@9
    89
StephaneLenclud@9
    90
	/**DSPResult IMON_Display_SetLcdAllIcons(BOOL bOn)
StephaneLenclud@9
    91
	@brief	This function can be used when the caller application wants to turn on/off all icons on LCD module.\n
StephaneLenclud@9
    92
	@param	[in] bOn    If this value is TRUE, iMON will turn on all icons. Otherwise, iMON will turn off all icons.\n
StephaneLenclud@9
    93
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
    94
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
    95
	IMONDSPAPI DSPResult IMON_Display_SetLcdAllIcons(BOOL bOn);
StephaneLenclud@9
    96
StephaneLenclud@9
    97
	/**DSPResult IMON_Display_SetLcdOrangeIcon(BYTE btIconData1, BYTE btIconData2)
StephaneLenclud@9
    98
	@brief	This function can be used when the caller application wants to turn on/off orange shaped disk icons on the upper left part of LCD module.\n
StephaneLenclud@9
    99
				Disk icons consist of 8 pieces of orange and orange peel.\n
StephaneLenclud@9
   100
	@param	[in] btIconData1    Each bit represents one of icons shaped the piece of orange.\n
StephaneLenclud@9
   101
									MSB is used for the piece placed on top and the remaining bits are for the piece placed in CCW from top.\n
StephaneLenclud@9
   102
	@param	[in] btIconData2    MSB represents the orange peel shaped icon. Other bits are not used.\n
StephaneLenclud@9
   103
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
   104
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
   105
	IMONDSPAPI DSPResult IMON_Display_SetLcdOrangeIcon(BYTE btIconData1, BYTE btIconData2);
StephaneLenclud@9
   106
StephaneLenclud@9
   107
	/**DSPResult IMON_Display_SetLcdMediaTypeIcon(BYTE btIconData)
StephaneLenclud@9
   108
	@brief	This function can be used when the caller application wants to turn on/off media type icons on the upper part of LCD module.\n
StephaneLenclud@9
   109
	@param	[in] btIconData    Each bit represents one of media type icons. From MSB each bit represents MUSIC, MOVIE, PHOTO, CD/DVD, TV, WEBCASTING and NEWS/WEATHER icon.\n
StephaneLenclud@9
   110
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
   111
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
   112
	IMONDSPAPI DSPResult IMON_Display_SetLcdMediaTypeIcon(BYTE btIconData);
StephaneLenclud@9
   113
StephaneLenclud@9
   114
	/**DSPResult IMON_Display_SetLcdSpeakerIcon(BYTE btIconData1, BYTE btIconData2)
StephaneLenclud@9
   115
	@brief	This function can be used when the caller application wants to turn on/off speaker icons on the upper right part of LCD module.\n
StephaneLenclud@9
   116
	@param	[in] btIconData1    Each bit represents one of speaker icons.\nFrom MSB each bit represents L, C, R, SL, LFE, SR, RL and SPDIF icon.
StephaneLenclud@9
   117
	@param	[in] btIconData2    MSB represents RR icon. Other bits are not used.\n
StephaneLenclud@9
   118
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
   119
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
   120
	IMONDSPAPI DSPResult IMON_Display_SetLcdSpeakerIcon(BYTE btIconData1, BYTE btIconData2);
StephaneLenclud@9
   121
StephaneLenclud@9
   122
	/**DSPResult IMON_Display_SetLcdVideoCodecIcon(BYTE btIconData)
StephaneLenclud@9
   123
	@brief	This function can be used when the caller application wants to turn on/off codec icons for video file on the lower part of LCD module.\n
StephaneLenclud@9
   124
	@param	[in] btIconData    Each bit represents one of video codec icons. From MSB each bit represents MPG, DIVX, XVID, WMV, MPG, AC3, DTS and WMA icon.\n
StephaneLenclud@9
   125
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
   126
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
   127
	IMONDSPAPI DSPResult IMON_Display_SetLcdVideoCodecIcon(BYTE btIconData);
StephaneLenclud@9
   128
StephaneLenclud@9
   129
	/**DSPResult IMON_Display_SetLcdAudioCodecIcon(BYTE btIconData)
StephaneLenclud@9
   130
	@brief	This function can be used when the caller application wants to turn on/off codec icons for audio file on the lower part of LCD module.\n
StephaneLenclud@9
   131
	@param	[in] btIconData    Each bit represents one of audio codec icons. From MSB each bit represents MP3, OGG, WMA and WAV icon.\n
StephaneLenclud@9
   132
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
   133
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
   134
	IMONDSPAPI DSPResult IMON_Display_SetLcdAudioCodecIcon(BYTE btIconData);
StephaneLenclud@9
   135
StephaneLenclud@9
   136
	/**DSPResult IMON_Display_SetLcdAspectRatioIcon(BYTE btIconData)
StephaneLenclud@9
   137
	@brief	This function can be used when the caller application wants to turn on/off aspect ratio icons on the lower right part of LCD module.\n
StephaneLenclud@9
   138
	@param	[in] btIconData    Each bit represents one of aspect ratio icons. From MSB each bit represents SRC, FIT, TV, HDTV, SCR1 and SCR2 icon.\n
StephaneLenclud@9
   139
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
   140
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
   141
	IMONDSPAPI DSPResult IMON_Display_SetLcdAspectRatioIcon(BYTE btIconData);
StephaneLenclud@9
   142
StephaneLenclud@9
   143
	/**DSPResult IMON_Display_SetLcdEtcIcon(BYTE btIconData)
StephaneLenclud@9
   144
	@brief	This function can be used when the caller application wants to turn on/off icons on the lower left part of LCD module.\n
StephaneLenclud@9
   145
	@param	[in] btIconData    Each bit represents icon. From MSB each bit represents REPEAT, SHUFFLE, ALARM, REC, VOL and TIME icon.\n
StephaneLenclud@9
   146
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
   147
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
   148
	IMONDSPAPI DSPResult IMON_Display_SetLcdEtcIcon(BYTE btIconData);
StephaneLenclud@9
   149
StephaneLenclud@9
   150
	/**DSPResult IMON_Display_SetLcdProgress(int nCurPos, int nTotal)
StephaneLenclud@9
   151
	@brief	This function can be used when the caller application wants to display progress bar on the upper and lower left part of text area of LCD module.\n
StephaneLenclud@9
   152
	@param	[in] nCurPos   It represents the current position of progress bar.\n
StephaneLenclud@9
   153
	@param	[in] nTotal    It represents the total length of progress bar.\n
StephaneLenclud@9
   154
	@return	This function will return one of DSPResult enumeration value.\n
StephaneLenclud@9
   155
				DSP_SUCCEEDED will be returned if succeeded. DSP_E_NOT_INITED or DSP_E_FAIL can be returned if failed.*/
StephaneLenclud@9
   156
	IMONDSPAPI DSPResult IMON_Display_SetLcdProgress(int nCurPos, int nTotal);
StephaneLenclud@9
   157
StephaneLenclud@9
   158
#ifdef __cplusplus
StephaneLenclud@9
   159
}
StephaneLenclud@9
   160
#endif	//__cplusplus
StephaneLenclud@9
   161
StephaneLenclud@9
   162
#endif	//__IMON_DISPLAY_API_H__