Function Reference
35
CanCloseDriver(handle);
CanGetLedStatus()
Purpose
Get the LED status of cPCI-7841 and PM-
7841
Prototype
C/C++
BYTE CanGetLedStatus (int card, int
index);
Parameters
card : card number
Index : index of LED
Return Value
status of Led
Remarks
Get the status of Led
This function supports the cPCI-7841 and
PM-7841.
See Also
CanSetLEDStatus()
Usage
C/C++
#include “pci7841.h
int handle = CanOpenDriver(0, 0);//open the port
0 of card 0
….
BYTE flag = CanGetLedStatus(0, 0);;
CanCloseDriver(handle);
CanSetLedStatus()
Purpose
Set the Led Status of cPCI-7841
Prototype
C/C++
void CanSetLedStatus(int card, int index,
int flashMode);
Parameters
card : card number
Index : index of Led
flashMode :
Value Function
0
Led Off
1
Led On
Value Function
Содержание NuCOM cPCI-7841
Страница 4: ......
Страница 14: ...6 Introduction ...