SESTILIO
3.0.2
C Library for SESTILIO a smart A/D and D/A interface on USB 2.0
|
Functions | |
CTYPE int DLL | SE_EspiBusInit (int speed, int usbDevice) |
Init the SPI expansion bus. More... | |
CTYPE int DLL | SE_EspiRlInit (int board, int usbDevice) |
Init ESPI-RL board connected on SPI expansion bus. More... | |
CTYPE int DLL | SE_EspiOpInit (int board, int usbDevice) |
Init ESPI-OP board connected on SPI expansion bus. More... | |
CTYPE int DLL | SE_EspiRlWrite (int board, int value, int usbDevice) |
Write a value on the ESPI-RL board. More... | |
CTYPE int DLL | SE_EspiOpWrite (int board, int value, int usbDevice) |
Write a value on the ESPI-OP board. More... | |
CTYPE int DLL | SE_EspiRlRead (int board, int usbDevice) |
Read the set relay from the ESPI-RL board. More... | |
CTYPE int DLL | SE_EspiOpRead (int board, int usbDevice) |
Read the opto-coupled input from the ESPI-OP board. More... | |
CTYPE int DLL | SE_EspiOpOutRead (int board, int usbDevice) |
Read the status of the opto-coupled output port from the ESPI-OP board. More... | |
CTYPE int DLL | SE_EspiRlSet (int board, int relay, int ena, int usbDevice) |
Turn on or off a relay on the ESPI-RL board. More... | |
CTYPE int DLL | SE_EspiOpSet (int board, int opto, int ena, int usbDevice) |
Turn on or off an opto-coupled power output on the ESPI-OP board. More... | |
CTYPE int DLL | SE_LsrDrvSet (int board, double current, int usbDevice) |
Set the current for LSR-PWR1 board on ESPI bus. More... | |
CTYPE double DLL | SE_LsrDrvGet (int board, int usbDevice) |
Measure the current set on LSR-PWR1 board on ESPI bus. More... | |
Functions to control expansion board on SPI bus.
int SE_EspiBusInit | ( | int | speed, |
int | usbDevice | ||
) |
Init the SPI expansion bus.
speed | Clock selection: 0 = 12.5 MHz, 1 = 6.25 MHz, 2 = 4.08 MHz, 3 = 3.06 MHz, 4 = 2.45 MHz, 5 = 2.04 MHz, 6 = 1.75 MHz, 7 = 1.53 MHz, 8 = 1.36 MHz, 9 = 1.22 MHz. SPI clock |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 687 of file sestilio.cpp.
int SE_EspiOpInit | ( | int | board, |
int | usbDevice | ||
) |
Init ESPI-OP board connected on SPI expansion bus.
board | Board selection 0-7 |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 712 of file sestilio.cpp.
int SE_EspiOpOutRead | ( | int | board, |
int | usbDevice | ||
) |
Read the status of the opto-coupled output port from the ESPI-OP board.
board | Board selection 0-7 |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 780 of file sestilio.cpp.
int SE_EspiOpRead | ( | int | board, |
int | usbDevice | ||
) |
Read the opto-coupled input from the ESPI-OP board.
board | Board selection 0-7 |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 795 of file sestilio.cpp.
int SE_EspiOpSet | ( | int | board, |
int | opto, | ||
int | ena, | ||
int | usbDevice | ||
) |
Turn on or off an opto-coupled power output on the ESPI-OP board.
board | Board selection 0-7 |
opto | Control bit to turn on or off a related opto-coupled output. |
ena | Turn on (1) or off (0) selected bit. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 820 of file sestilio.cpp.
int SE_EspiOpWrite | ( | int | board, |
int | value, | ||
int | usbDevice | ||
) |
Write a value on the ESPI-OP board.
board | Board selection 0-7 |
value | Data to be written, each bit is a mirror of an opto-coupled output. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 751 of file sestilio.cpp.
int SE_EspiRlInit | ( | int | board, |
int | usbDevice | ||
) |
Init ESPI-RL board connected on SPI expansion bus.
board | Board selection 0-7 |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 692 of file sestilio.cpp.
int SE_EspiRlRead | ( | int | board, |
int | usbDevice | ||
) |
Read the set relay from the ESPI-RL board.
board | Board selection 0-7 |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 765 of file sestilio.cpp.
int SE_EspiRlSet | ( | int | board, |
int | bit, | ||
int | ena, | ||
int | usbDevice | ||
) |
Turn on or off a relay on the ESPI-RL board.
board | Board selection 0-7 |
bit | Control bit to turn on or off a relay. |
ena | Turn on (1) or off (0) selected bit. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 810 of file sestilio.cpp.
int SE_EspiRlWrite | ( | int | board, |
int | value, | ||
int | usbDevice | ||
) |
Write a value on the ESPI-RL board.
board | Board selection 0-7 |
value | Data to be written, each bit is a mirror of a relay. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 737 of file sestilio.cpp.
SE_LsrDrvGet | ( | int | board, |
int | usbDevice | ||
) |
Measure the current set on LSR-PWR1 board on ESPI bus.
board | Board selection 0-7 |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 841 of file sestilio.cpp.
int SE_LsrDrvSet | ( | int | board, |
double | current, | ||
int | usbDevice | ||
) |
Set the current for LSR-PWR1 board on ESPI bus.
board | Board selection 0-7 |
current | Value of current in ampere. Max value is 5A, min value is 0.0000763A |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 830 of file sestilio.cpp.