DAS  3.1.6 - 18/09/2017
ISMMDLL.h
Go to the documentation of this file.
1 
2 #ifndef __ISMMDLL_H__
3 #define __ISMMDLL_H__
4 
5 // The following ifdef block is the standard way of creating macros which make exporting
6 // from a DLL simpler. All files within this DLL are compiled with the HWM_EXPORTS
7 // symbol defined on the command line. this symbol should not be defined on any project
8 // that uses this DLL. This way any other project whose source files include this file see
9 // ISMM_API functions as being imported from a DLL, wheras this DLL sees symbols
10 // defined with this macro as being exported.
11 
12 #ifdef __cplusplus
13 extern "C" { /* Assume C declarations for C++ */
14 #endif /* __cplusplus */
15 
16 #ifdef ISMM_EXPORTS
17 #define ISMM_API __declspec(dllexport)
18 #else
19 #define ISMM_API __declspec(dllimport)
20 #endif
21 
22 typedef struct _HWM_DATA {
23  ULONG FAN0;
24  ULONG FAN1;
25  ULONG FAN2;
26  ULONG FAN3;
27  ULONG FAN4;
42 
43 typedef struct _HWM_FAN_CNTRL {
44  UCHAR FanMode; // 0 for ON/OFF mode, 1 for SW mode, 2 for auto mode
45  UCHAR ModeData; // 0/1 for FanMode 0, 0..127 for FanMode 1
46  UCHAR FanOffTmpr; // fan off temperature
47  UCHAR FanStartTmpr; // fan start temperature
48  UCHAR FanFullTmpr; // fan full speed temperature
49  UCHAR FanStartPwm; // fan start PWM
50  UCHAR FanSlopePwm; // PWM slope
52 
53 typedef enum {
54  TYPE_FAN = 0,
58 
59 typedef enum {
60  FAN_OP_MODE_ONOFF = 0, // On-Off mode
61  FAN_OP_MODE_SW = 1, // controllable PWM
62  FAN_OP_MODE_AUTO = 2, // smart mode - automatic
64 
65 typedef enum {
69 
70 ISMM_API HANDLE ISMM_Open(void);
71 ISMM_API BOOL ISMM_Close(HANDLE hIsmm);
72 ISMM_API BOOL HWM_GetItemNodes(HANDLE hIsmm, WORD wItemType, LPWORD pwNodeCount);
73 ISMM_API BOOL HWM_GetItemDesc(HANDLE hIsmm, WORD wItemType, WORD wItemIndex,
74  LPWORD pcbDataSize, LPBYTE pData);
75 ISMM_API BOOL HWM_GetData(HANDLE hIsmm, PHWM_DATA pHwmData);
76 ISMM_API BOOL HWM_FanControl(HANDLE hIsmm, WORD wFanIndex,
77  PHWM_FAN_CNTRL pHwmFanCntrl);
78 
79 ISMM_API BOOL HWM_DbgGetReg(HANDLE hIsmm, UCHAR ucRegIndex, LPBYTE pRegData);
80 ISMM_API BOOL HWM_DbgSetReg(HANDLE hIsmm, UCHAR ucRegIndex, UCHAR ucRegData);
81 
82 ISMM_API BOOL DIO_GetConfig(HANDLE hIsmm, PWORD pwDioConfig);
83 ISMM_API BOOL DIO_GetInput(HANDLE hIsmm, PWORD pwDioData);
84 ISMM_API BOOL DIO_SetOutput(HANDLE hIsmm, WORD wDioData);
85 ISMM_API BOOL DIO_GetOutput(HANDLE hIsmm, PWORD pwDioData);
86 
87 ISMM_API BOOL DIO_GetCDInput(HANDLE hIsmm, PUCHAR pcDioCDData);
88 ISMM_API BOOL DIO_GetCDConfig(HANDLE hIsmm, PUCHAR pcDioCDData);
89 ISMM_API BOOL DIO_SetCDOutput(HANDLE hIsmm, UCHAR ucDioCDNum);
90 //ISMM_API BOOL DIO_SetCDOutputEx(HANDLE hIsmm, UCHAR ucDioCDNum, bool open);
91 ISMM_API BOOL DIO_SetSpecificSetting(HANDLE hIsmm, UCHAR ucMask);
92 
93 ISMM_API BOOL WDT_SetTimeout(HANDLE hIsmm, WORD wTimeout, WORD wTimeOption);
94 ISMM_API BOOL WDT_GetTimeoutOption(HANDLE hIsmm, PWORD pwTimeout, PWORD pwTimeOption);
95 ISMM_API BOOL WDT_Start(HANDLE hIsmm, BOOL bControlState);
96 ISMM_API BOOL WDT_Restart(HANDLE hIsmm);
97 
98 
99 #ifdef __cplusplus
100 } /* End of extern "C" { */
101 #endif /* __cplusplus */
102 
103 
104 
105 #endif // __ISMMDLL_H__
#define BOOL
Definition: DSCUD.H:100
ULONG FAN0
Definition: ISMMDLL.h:23
ISMM_API BOOL WDT_GetTimeoutOption(HANDLE hIsmm, PWORD pwTimeout, PWORD pwTimeOption)
FLOAT VIN7
Definition: ISMMDLL.h:35
ISMM_API BOOL DIO_SetCDOutput(HANDLE hIsmm, UCHAR ucDioCDNum)
ISMM_API BOOL HWM_GetItemNodes(HANDLE hIsmm, WORD wItemType, LPWORD pwNodeCount)
struct _HWM_FAN_CNTRL * PHWM_FAN_CNTRL
ISMM_API BOOL DIO_SetSpecificSetting(HANDLE hIsmm, UCHAR ucMask)
ITEM_TYPE_ENUM
Definition: ISMMDLL.h:53
ISMM_API BOOL DIO_GetCDInput(HANDLE hIsmm, PUCHAR pcDioCDData)
ISMM_API BOOL DIO_GetCDConfig(HANDLE hIsmm, PUCHAR pcDioCDData)
#define ISMM_API
Definition: ISMMDLL.h:19
ISMM_API BOOL HWM_DbgGetReg(HANDLE hIsmm, UCHAR ucRegIndex, LPBYTE pRegData)
UCHAR FanOffTmpr
Definition: ISMMDLL.h:46
UCHAR FanStartPwm
Definition: ISMMDLL.h:49
FLOAT VIN3
Definition: ISMMDLL.h:31
FLOAT TMPIN0
Definition: ISMMDLL.h:38
FLOAT VIN8
Definition: ISMMDLL.h:36
#define WORD
Definition: DSCUD.H:65
ULONG FAN2
Definition: ISMMDLL.h:25
FLOAT VIN6
Definition: ISMMDLL.h:34
FLOAT VIN1
Definition: ISMMDLL.h:29
FLOAT VIN4
Definition: ISMMDLL.h:32
UCHAR FanStartTmpr
Definition: ISMMDLL.h:47
ISMM_API BOOL WDT_SetTimeout(HANDLE hIsmm, WORD wTimeout, WORD wTimeOption)
UCHAR ModeData
Definition: ISMMDLL.h:45
ISMM_API BOOL ISMM_Close(HANDLE hIsmm)
ISMM_API BOOL DIO_GetInput(HANDLE hIsmm, PWORD pwDioData)
FAN_OP_MODE_ENUM
Definition: ISMMDLL.h:59
ULONG FAN3
Definition: ISMMDLL.h:26
ISMM_API BOOL DIO_GetConfig(HANDLE hIsmm, PWORD pwDioConfig)
ISMM_API BOOL HWM_GetItemDesc(HANDLE hIsmm, WORD wItemType, WORD wItemIndex, LPWORD pcbDataSize, LPBYTE pData)
FLOAT VIN9
Definition: ISMMDLL.h:37
ISMM_API BOOL HWM_GetData(HANDLE hIsmm, PHWM_DATA pHwmData)
FLOAT VIN5
Definition: ISMMDLL.h:33
ISMM_API BOOL WDT_Start(HANDLE hIsmm, BOOL bControlState)
struct _HWM_DATA HWM_DATA
FLOAT TMPIN1
Definition: ISMMDLL.h:39
FLOAT VIN2
Definition: ISMMDLL.h:30
struct _HWM_DATA * PHWM_DATA
#define FLOAT
Definition: DSCUD.H:90
ISMM_API BOOL HWM_FanControl(HANDLE hIsmm, WORD wFanIndex, PHWM_FAN_CNTRL pHwmFanCntrl)
ULONG FAN4
Definition: ISMMDLL.h:27
WDT_TIMEOPT_ENUM
Definition: ISMMDLL.h:65
ULONG FAN1
Definition: ISMMDLL.h:24
struct _HWM_FAN_CNTRL HWM_FAN_CNTRL
FLOAT TMPIN2
Definition: ISMMDLL.h:40
UCHAR FanSlopePwm
Definition: ISMMDLL.h:50
UCHAR FanMode
Definition: ISMMDLL.h:44
FLOAT VIN0
Definition: ISMMDLL.h:28
ISMM_API BOOL WDT_Restart(HANDLE hIsmm)
ISMM_API HANDLE ISMM_Open(void)
ISMM_API BOOL DIO_SetOutput(HANDLE hIsmm, WORD wDioData)
ISMM_API BOOL HWM_DbgSetReg(HANDLE hIsmm, UCHAR ucRegIndex, UCHAR ucRegData)
ISMM_API BOOL DIO_GetOutput(HANDLE hIsmm, PWORD pwDioData)
UCHAR FanFullTmpr
Definition: ISMMDLL.h:48
______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:44:08 for DAS - Rel. 3.1.6 - 18/09/2017.