Rev 307 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 307 | Rev 328 | ||
---|---|---|---|
Line 261... | Line 261... | ||
261 | 261 | ||
262 | #define VME_D8 0x1 |
262 | #define VME_D8 0x1 |
263 | #define VME_D16 0x2 |
263 | #define VME_D16 0x2 |
264 | #define VME_D32 0x4 |
264 | #define VME_D32 0x4 |
265 | #endif |
265 | #endif |
- | 266 | ||
- | 267 | ||
- | 268 | short WIENER_VMUSB_VME_DGG( |
|
- | 269 | ||
- | 270 | unsigned short channel, |
|
- | 271 | unsigned short trigger, |
|
- | 272 | unsigned short output, |
|
- | 273 | long delay, |
|
- | 274 | unsigned short gate, |
|
- | 275 | unsigned short invert, |
|
- | 276 | unsigned short latch |
|
- | 277 | ){ |
|
- | 278 | ||
- | 279 | if (!WUSB_udev) return -222; |
|
- | 280 | VME_DGG(WUSB_udev, channel, trigger, output, delay, gate, invert, latch); |
|
- | 281 | return 0; |
|
- | 282 | } |
|
- | 283 | ||
- | 284 | ||
- | 285 | ||
- | 286 | short WIENER_VMUSB_VME_Output_settings( |
|
- | 287 | ||
- | 288 | unsigned short channel, |
|
- | 289 | unsigned short code, |
|
- | 290 | unsigned short invert, |
|
- | 291 | unsigned short latch |
|
- | 292 | ){ |
|
- | 293 | ||
- | 294 | if (!WUSB_udev) return -222; |
|
- | 295 | return VME_Output_settings(WUSB_udev, channel, code, invert, latch); |
|
- | 296 | } |
|
- | 297 | ||
- | 298 | short WIENER_VMUSB_register_write( short RegAddr, long RegData){ |
|
- | 299 | if (!WUSB_udev) return -222; |
|
- | 300 | return xxusb_register_write( WUSB_udev, RegAddr, RegData); |
|
- | 301 | } |
|
266 | 302 | ||
267 | 303 | ||
268 | short __stdcall WIENER_VMUSB_VME_R( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data) { |
304 | short __stdcall WIENER_VMUSB_VME_R( uint16_t AM, uint16_t DW, uint32_t VME_Address, uint32_t *Data) { |
269 | int nb=0; |
305 | int nb=0; |
270 | if (!WUSB_udev) return -222; |
306 | if (!WUSB_udev) return -222; |