MIDAS
Loading...
Searching...
No Matches
rpi_led.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_led (INT cmd,...)
 

Function Documentation

◆ rpi_led()

INT rpi_led ( INT  cmd,
  ... 
)

Definition at line 143 of file rpi_led.c.

144{
146 HNDLE hKey;
148 float *pvalue;
149 double value;
150 void *info;
151
152 va_start(argptr, cmd);
154
155 switch (cmd) {
156 case CMD_INIT:
158 info = va_arg(argptr, void *);
160 break;
161
162 case CMD_EXIT:
163 info = va_arg(argptr, void *);
165 break;
166
167 case CMD_SET:
168 info = va_arg(argptr, void *);
170 value = va_arg(argptr, double);
172 break;
173
174 case CMD_GET:
175 info = va_arg(argptr, void *);
177 pvalue = va_arg(argptr, float *);
179 break;
180
181 default:
182 break;
183 }
184
185 va_end(argptr);
186
187 return status;
188}
#define FE_SUCCESS
Definition midas.h:717
#define CMD_INIT
Definition midas.h:762
#define CMD_GET
Definition midas.h:787
#define CMD_SET
Definition midas.h:777
#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
double value[100]
Definition odbhist.cxx:42
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_led_init(HNDLE hkey, void **pinfo)
Definition rpi_led.c:44
INT rpi_led_exit(RPI_LED_INFO *info)
Definition rpi_led.c:90
INT rpi_led_set(RPI_LED_INFO *info, INT channel, double value)
Definition rpi_led.c:106
INT rpi_led_get(RPI_LED_INFO *info, INT channel, float *pvalue)
Definition rpi_led.c:124
Here is the call graph for this function: