StephaneLenclud@9: #ifndef __IMON_DISPLAY_API_DEFINES_H__ StephaneLenclud@9: #define __IMON_DISPLAY_API_DEFINES_H__ StephaneLenclud@9: StephaneLenclud@9: ////////////////////////////////////////////////// StephaneLenclud@9: ////////////////////////////////////////////////// StephaneLenclud@9: // Enumerations StephaneLenclud@9: StephaneLenclud@9: /**DSPResult StephaneLenclud@9: @brief These enumeration values represent the returned result for iMON Display API function calls.\n StephaneLenclud@9: All iMON Display API function calls return one of this result values.\n StephaneLenclud@9: For meaning of each result, refer the comment of each line below*/ StephaneLenclud@9: enum DSPResult StephaneLenclud@9: { StephaneLenclud@9: DSP_SUCCEEDED = 0, //// Function Call Succeeded Without Error StephaneLenclud@9: DSP_E_FAIL, //// Unspecified Failure StephaneLenclud@9: DSP_E_OUTOFMEMORY, //// Failed to Allocate Necessary Memory StephaneLenclud@9: DSP_E_INVALIDARG, //// One or More Arguments Are Not Valid StephaneLenclud@9: DSP_E_NOT_INITED, //// API is Not Initialized StephaneLenclud@9: DSP_E_POINTER, //// Pointer is Not Valid StephaneLenclud@9: StephaneLenclud@9: DSP_S_INITED = 0x1000, //// API is Initialized StephaneLenclud@9: DSP_S_NOT_INITED, //// API is Not Initialized StephaneLenclud@9: DSP_S_IN_PLUGIN_MODE, //// API Can Control iMON Display (Display Plug-in Mode) StephaneLenclud@9: DSP_S_NOT_IN_PLUGIN_MODE, //// API Can't Control iMON Display StephaneLenclud@9: }; StephaneLenclud@9: StephaneLenclud@9: StephaneLenclud@9: /**DSPNInitResult StephaneLenclud@9: @brief These enumeration values represent the result status for requesting Display Plug-in Mode to iMON.\n StephaneLenclud@9: iMON Display API notifies one of this result values to the caller application after requesting Display Plug-in Mode to iMON.\n StephaneLenclud@9: For more information, refer the comment of each line below*/ StephaneLenclud@9: enum DSPNInitResult StephaneLenclud@9: { StephaneLenclud@9: DSPN_SUCCEEDED = 0, //// Display Plug-in Mode is Initialized Successfully StephaneLenclud@9: DSPN_ERR_IN_USED = 0x0100, //// Display Plug-in is Already Used by Other Application StephaneLenclud@9: DSPN_ERR_HW_DISCONNECTED, //// iMON HW is Not Connected StephaneLenclud@9: DSPN_ERR_NOT_SUPPORTED_HW, //// The Connected iMON HW doesn't Support Display Plug-in StephaneLenclud@9: DSPN_ERR_PLUGIN_DISABLED, //// Display Plug-in Mode Option is Disabled StephaneLenclud@9: DSPN_ERR_IMON_NO_REPLY, //// The Latest iMON is Not Installed or iMON Not Running StephaneLenclud@9: DSPN_ERR_UNKNOWN = 0x0200, //// Unknown Failure StephaneLenclud@9: }; StephaneLenclud@9: StephaneLenclud@9: StephaneLenclud@9: /**DSPType StephaneLenclud@9: @brief These enumeration values represent display type.\n StephaneLenclud@9: Currently iMON Display API supports VFD and LCD products.*/ StephaneLenclud@9: enum DSPType StephaneLenclud@9: { StephaneLenclud@9: DSPN_DSP_NONE = 0, StephaneLenclud@9: DSPN_DSP_VFD = 0x01, //// VFD products StephaneLenclud@9: DSPN_DSP_LCD = 0x02, //// LCD products StephaneLenclud@9: }; StephaneLenclud@9: StephaneLenclud@9: StephaneLenclud@9: /**DSPNotifyCode StephaneLenclud@9: @brief These enumeration values represent the notification codes.\n StephaneLenclud@9: iMON Display API will send or post message to the caller application.\n StephaneLenclud@9: The caller application should assign the message and the winodw handle to receivce message with IMON_Display_Init fucntion.\n StephaneLenclud@9: These enumeration values are used with WPARAM parameter of the message.\n StephaneLenclud@9: For more information, see the explanation of each notification code below*/ StephaneLenclud@9: enum DSPNotifyCode StephaneLenclud@9: { StephaneLenclud@9: /**DSPNM_PLUGIN_SUCCEED StephaneLenclud@9: @brief When API succeeds to get the control for the display, API will post caller-specified message with DSPNM_PLUGIN_SUCCEED as WPARAM parameter.\n StephaneLenclud@9: LPARAM represents DSPType. This value can be 0x01 (VFD), 0x02 (LCD) or 0x03 (VFD+LCD).*/ StephaneLenclud@9: DSPNM_PLUGIN_SUCCEED = 0, StephaneLenclud@9: StephaneLenclud@9: /**DSPNM_PLUGIN_FAILED StephaneLenclud@9: @brief When API fails to get the control for the display, API will post caller-specified message with DSPNM_PLUGIN_FAILED as WPARAM parameter.\n StephaneLenclud@9: LPARAM represents error code with DSPNResult.*/ StephaneLenclud@9: DSPNM_PLUGIN_FAILED, StephaneLenclud@9: StephaneLenclud@9: /**DSPNM_IMON_RESTARTED StephaneLenclud@9: @brief When iMON starts, API will post caller-specified message with DSPNM_IMON_RESTARTED as WPARAM parameter.\n StephaneLenclud@9: LPARAM represents DSPType. This value can be 0 (No Display), 0x01 (VFD), 0x02 (LCD) or 0x03 (VFD+LCD).*/ StephaneLenclud@9: DSPNM_IMON_RESTARTED, StephaneLenclud@9: StephaneLenclud@9: /**DSPNM_IMON_CLOSED StephaneLenclud@9: @brief When iMON closed, API will post caller-specified message with DSPNM_IMON_CLOSED as WPARAM parameter.\n StephaneLenclud@9: LPARAM is not used.*/ StephaneLenclud@9: DSPNM_IMON_CLOSED, StephaneLenclud@9: StephaneLenclud@9: /**DSPNM_HW_CONNECTED StephaneLenclud@9: @brief When iMON HW newly connected, API will post caller-specified message with DSPNM_HW_CONNECTED as WPARAM parameter.\n StephaneLenclud@9: LPARAM represents DSPType. This value can be 0 (No Display), 0x01 (VFD), 0x02 (LCD) or 0x03 (VFD+LCD).*/ StephaneLenclud@9: DSPNM_HW_CONNECTED, StephaneLenclud@9: StephaneLenclud@9: /**DSPNM_HW_DISCONNECTED StephaneLenclud@9: @brief When iMON HW disconnected, API will post caller-specified message with DSPNM_HW_DISCONNECTED as WPARAM parameter.\n StephaneLenclud@9: LPARAM is DSPNResult value, DSPN_ERR_HW_DISCONNECTED.*/ StephaneLenclud@9: DSPNM_HW_DISCONNECTED, StephaneLenclud@9: StephaneLenclud@9: StephaneLenclud@9: /**DSPNM_LCD_TEXT_SCROLL_DONE StephaneLenclud@9: @brief When iMON LCD finishes scrolling Text, API will post caller-specified message with DSPNM_LCD_TEXT_SCROLL_DONE as WPARAM parameter.\n StephaneLenclud@9: The caller application may need to know when text scroll is finished, for sending next text.\n StephaneLenclud@9: LPARAM is not used.*/ StephaneLenclud@9: DSPNM_LCD_TEXT_SCROLL_DONE = 0x1000, StephaneLenclud@9: }; StephaneLenclud@9: StephaneLenclud@9: ////////////////////////////////////////////////// StephaneLenclud@9: ////////////////////////////////////////////////// StephaneLenclud@9: // Structure StephaneLenclud@9: StephaneLenclud@9: /**DspEqData StephaneLenclud@9: @brief This structure contains Equalizer data for 16 bands. StephaneLenclud@9: @param BandData It represents Equalizer data for 16 bands. Its range is from 0 to 100.*/ StephaneLenclud@9: typedef struct DspEqData StephaneLenclud@9: { StephaneLenclud@9: int BandData[16]; StephaneLenclud@9: StephaneLenclud@9: } DSPEQDATA, *PDSPEQDATA; StephaneLenclud@9: StephaneLenclud@9: #endif //__IMON_DISPLAY_API_DEFINES_H__