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_WriteKPortConfig (int regAdd, int regValue, int usbDevice) |
Allow to write a register of the Port Expander (MCP23S17) used for PORT A and B. More... | |
CTYPE int DLL | SE_ReadKPortConfig (int regAdd, int usbDevice) |
Allow to read a register of the Port Expander (MCP23S17) used for PORT A and B. More... | |
CTYPE int DLL | SE_SetPortDirection (int port, int bit7, int bit6, int bit5, int bit4, int bit3, int bit2, int bit1, int bit0, int usbDevice) |
Allow to set direction (Input or Output) of the selected port. More... | |
CTYPE int DLL | SE_WritePort (int portAddress, int portValue, int usbDevice) |
Allow to write on the selected port. More... | |
CTYPE int DLL | SE_SetPortBit (int portAddress, int bit, int usbDevice) |
Allow to set a bit on the selected port. More... | |
CTYPE int DLL | SE_ClrPortBit (int portAddress, int bit, int usbDevice) |
Allow to clear a bit on the selected port. More... | |
CTYPE int DLL | SE_ReadPort (int portAddress, int usbDevice) |
Allow to read of the selected port. More... | |
CTYPE int DLL | SE_PortPulse (int port, int initialValue, int finalValue, int pulseWidth, int timeBase, int usbDevice) |
Generate a pulse on the specified port. More... | |
CTYPE int DLL | SE_CheckPortBit (int port, int bit, int usbDevice) |
Check a bit of the opto-coupled port. More... | |
CTYPE int DLL | SE_PwmOptoCoupledPowerPort (int bitSelect, int enable, int lowWidth, int highWidth, int usbDevice) |
Start (or stop) a PWM the optically decoupled power port. More... | |
CTYPE int DLL | SE_AuxPower (int pwrCtrl, int usbDevice) |
Turn on/off the power on Y4.16, maximum allowed current is 50mA. More... | |
Basic functions used to read or write all available ports.
int SE_AuxPower | ( | int | pwrCtrl, |
int | usbDevice | ||
) |
Turn on/off the power on Y4.16, maximum allowed current is 50mA.
pwrCtrl | 0 = Turn off, 1 = Turn on. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 470 of file sestilio.cpp.
int SE_CheckPortBit | ( | int | port, |
int | bit, | ||
int | usbDevice | ||
) |
Check a bit of the opto-coupled port.
port | Port selection. 0 = P4, 1 = P5, 2 = PA, 3 = PB, 4 = Opto-Coupled input. Port Identification Number |
bit | Bit selection 0-7 |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 409 of file sestilio.cpp.
int SE_ClrPortBit | ( | int | portAddress, |
int | bit, | ||
int | usbDevice | ||
) |
Allow to clear a bit on the selected port.
portAddress | Port selection. 0 = P4, 1 = P5, 2 = PA, 3 = PB, 4 = Opto-Coupled output. Port Identification Number |
bit | Bit to set 0-7. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 384 of file sestilio.cpp.
int SE_PortPulse | ( | int | port, |
int | initialValue, | ||
int | finalValue, | ||
int | pulseWidth, | ||
int | timeBase, | ||
int | usbDevice | ||
) |
Generate a pulse on the specified port.
port | Port selection. 0 = P4, 1 = P5, 2 = PA, 3 = PB, 4 = Opto-Coupled output, 5 = Opto-Coupled power output. Port Identification Number |
initialValue | Contents of the port for the pulse activity. |
finalValue | Contents of the port at the end of activity. |
pulseWidth | Pulse duration in time base unit. |
timeBase | Time base. 0 = 40.816ns, 1 = 1uS, 2 = 1ms. Time base unit |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 402 of file sestilio.cpp.
int SE_PwmOptoCoupledPowerPort | ( | int | bit, |
int | enable, | ||
int | lowWidth, | ||
int | highWidth, | ||
int | usbDevice | ||
) |
Start (or stop) a PWM the optically decoupled power port.
bit | Bit selection 0-3. |
enable | Enable (1) or disable (0) the PWM. |
lowWidth | Low level duration. |
highWidth | High level duration. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 463 of file sestilio.cpp.
int SE_ReadKPortConfig | ( | int | regAdd, |
int | usbDevice | ||
) |
Allow to read a register of the Port Expander (MCP23S17) used for PORT A and B.
regAdd | Register address. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 344 of file sestilio.cpp.
int SE_ReadPort | ( | int | portAddress, |
int | usbDevice | ||
) |
Allow to read of the selected port.
portAddress | Port selection. 0 = P4, 1 = P5, 2 = PA, 3 = PB, 4 = Opto-Coupled input, 5 = Opto-Power. Port Identification Number |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 395 of file sestilio.cpp.
int SE_SetPortBit | ( | int | portAddress, |
int | bit, | ||
int | usbDevice | ||
) |
Allow to set a bit on the selected port.
portAddress | Port selection. 0 = P4, 1 = P5, 2 = PA, 3 = PB, 4 = Opto-Coupled output. Port Identification Number |
bit | Bit to set 0-7. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 373 of file sestilio.cpp.
int SE_SetPortDirection | ( | int | port, |
int | bit7, | ||
int | bit6, | ||
int | bit5, | ||
int | bit4, | ||
int | bit3, | ||
int | bit2, | ||
int | bit1, | ||
int | bit0, | ||
int | usbDevice | ||
) |
Allow to set direction (Input or Output) of the selected port.
port | Port selection. 0 = P4, 1 = P5, 2 = PA, 3 = PB. Port Identification Number |
bit7 | 0 = Input, 1 = Output. Port Direction Controls |
bit6 | 0 = Input, 1 = Output. Port Direction Controls |
bit5 | 0 = Input, 1 = Output. Port Direction Controls |
bit4 | 0 = Input, 1 = Output. Port Direction Controls |
bit3 | 0 = Input, 1 = Output. Port Direction Controls |
bit2 | 0 = Input, 1 = Output. Port Direction Controls |
bit1 | 0 = Input, 1 = Output. Port Direction Controls |
bit0 | 0 = Input, 1 = Output. Port Direction Controls |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 351 of file sestilio.cpp.
int SE_WriteKPortConfig | ( | int | regAdd, |
int | regValue, | ||
int | usbDevice | ||
) |
Allow to write a register of the Port Expander (MCP23S17) used for PORT A and B.
regAdd | Register address. |
regValue | Value to load in the register. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 337 of file sestilio.cpp.
int SE_WritePort | ( | int | portAddress, |
int | portValue, | ||
int | usbDevice | ||
) |
Allow to write on the selected port.
portAddress | Port selection. 0 = P4, 1 = P5, 2 = PA, 3 = PB, 4 = Opto-Coupled output, 5 = Opto-Coupled power output. Port Identification Number |
portValue | Value to write on the selected port. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 366 of file sestilio.cpp.