MIDAS
Loading...
Searching...
No Matches
rpi_temp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

INT rpi_temp (INT cmd,...)
 

Function Documentation

◆ rpi_temp()

INT rpi_temp ( INT  cmd,
  ... 
)

Definition at line 134 of file rpi_temp.c.

135{
137 HNDLE hKey;
139 float *pvalue;
140 void *info;
141
142 va_start(argptr, cmd);
144
145 switch (cmd) {
146 case CMD_INIT:
148 info = va_arg(argptr, void *);
150 break;
151
152 case CMD_EXIT:
153 info = va_arg(argptr, void *);
155 break;
156
157 case CMD_GET:
158 info = va_arg(argptr, void *);
160 pvalue = va_arg(argptr, float *);
162 break;
163
164 default:
165 break;
166 }
167
168 va_end(argptr);
169
170 return status;
171}
#define FE_SUCCESS
Definition midas.h:717
#define CMD_INIT
Definition midas.h:762
#define CMD_GET
Definition midas.h:787
#define CMD_EXIT
Definition midas.h:763
void ** info
Definition fesimdaq.cxx:41
INT channel
HNDLE hKey
INT HNDLE
Definition midas.h:132
int INT
Definition midas.h:129
DWORD status
Definition odbhist.cxx:39
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
Definition rmidas.h:24
INT rpi_temp_get(RPI_TEMP_INFO *info, INT channel, float *pvalue)
Definition rpi_temp.c:100
INT rpi_temp_init(HNDLE hkey, void **pinfo)
Definition rpi_temp.c:49
INT rpi_temp_exit(RPI_TEMP_INFO *info)
Definition rpi_temp.c:88
Here is the call graph for this function: