-
Notifications
You must be signed in to change notification settings - Fork 0
/
lumax.h
31 lines (25 loc) · 986 Bytes
/
lumax.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef LUMAX_H
#define LUMAX_H
#ifdef __cplusplus
extern "C" {
#endif
#define __stdcall
typedef struct
{
unsigned short Ch1, Ch2, Ch3, Ch4, Ch5, Ch6, Ch7, Ch8, TTL;
} TLumax_Point;
int Lumax_DongleCom(int PhysicalDevice, int Command, unsigned long Vendor_ID, unsigned long *DataOut, unsigned long *DataIn);
int Lumax_SetTTL(int Handle, int TTL);
int Lumax_StopFrame(int Handle);
int Lumax_SetDmxMode(int Handle, int NumOfTxChannels, int NumOfRxChannels);
int Lumax_SendDmx(int Handle, unsigned char *DmxBuffer, int Length);
int Lumax_ReceiveDmx(int Handle, unsigned char *DmxBuffer, int Length);
int Lumax_CloseDevice(int Handle);
int Lumax_OpenDevice(int PhysicalDevice, int Channel);
int Lumax_GetPhysicalDevices(void);
int Lumax_WaitForBuffer(int Handle, int Timeout, int *TimeToWait, int *BufferChanged);
int Lumax_SendFrame(int Handle, TLumax_Point *Points, int NumOfPoints, int ScanSpeed, int UpdateMode, int *TimeToWait);
#ifdef __cplusplus
}
#endif
#endif // LUMAX_H