SESTILIO  3.0.2
C Library for SESTILIO a smart A/D and D/A interface on USB 2.0
Bridge controls

Functions

CTYPE int DLL SE_BridgePulse (int bridge, int activation, int deactivation, int activationWidth, int deactivationWidth, int timeBase, int usbDevice)
 Generate a pulse on the specified bridge. More...
 
CTYPE int DLL SE_BridgeUntil (int bridge, int activation, int portId, int portBit, int bitTrue, int timeout, int usbDevice)
 Activate a specified bridge until a bit on specified port is true or forever. More...
 

Detailed Description

Functions for a full control of the two power bridges.

Function Documentation

◆ SE_BridgePulse()

int SE_BridgePulse ( int  bridge,
int  activation,
int  deactivation,
int  activationWidth,
int  deactivationWidth,
int  timeBase,
int  usbDevice 
)

Generate a pulse on the specified bridge.

Parameters
bridgeBridge selection: 0 Y15:2-3, 1 Y15:4-5, 2 Y16:2-3, 3 Y16:4-5, 4 Y15:2-3 BOOST, 5 Y15:4-5 BOOST, 6 Y16:2-3 BOOST, 7 Y16:4-5 BOOST. 4-7 select some channel but without the 7.5 ohm series resistor.
activationBridge config in first phase. Bridge configuration
deactivationBridge config on last phase. Bridge configuration
activationWidthPulse duration in time base unit in first phase.
deactivationWidthPulse duration in time base unit on last phase.
timeBaseTime base. 0 = 40.816ns, 1 = 1uS, 2 = 1ms. Time base unit
usbDeviceSpecify a SESTILIO USB identifier.
#include "sest.h"
if(SE_Open('0', 0) == SE_S_SUCCESS)
{
// Y15:4-5 Activate the bridge 1 for 100 ms and deactivate it for 10ms
}
Returns
Operation status. Operation Status

Definition at line 629 of file sestilio.cpp.

◆ SE_BridgeUntil()

int SE_BridgeUntil ( int  bridge,
int  activation,
int  portId,
int  portBit,
int  bitTrue,
int  timeout,
int  usbDevice 
)

Activate a specified bridge until a bit on specified port is true or forever.

Parameters
bridgeBridge selection: 0 Y15:2-3, 1 Y15:4-5, 2 Y16:2-3, 3 Y16:4-5, 4 Y15:2-3 BOOST, 5 Y15:4-5 BOOST, 6 Y16:2-3 BOOST, 7 Y16:4-5 BOOST, 8 Y15:2-3 OFF, 9 Y15:4-5 OFF, 10 Y16:2-3 OFF, 11 Y16:4-5 OFF. 4-7 select some channel but without the 7.5 ohm series resistor.
activationBridge config in first phase. Bridge configuration
portIdPort selection. 0 = P4, 1 = P5, 2 = PA, 3 = PB, 4 = Opto-Isolated, 5 = Active forever. Port Identification Number
portBitBit used for check of the selected port (0-7).
deactivationWidthPulse duration in time base unit on last phase.
bitTrueLogic level when the bit is considered true (0-1).
timeoutTimeout in steps of 10ms if the port check isn't verified.
usbDeviceSpecify a SESTILIO USB identifier.
#include "sest.h"
if(SE_Open('0', 0) == SE_S_SUCCESS)
{
// Y15:2-3 activate this motor until bit 0 on Opto-Isolated port
// is active (0) but with a maximum timeout of one second
}
Returns
Operation status. Operation Status

Definition at line 636 of file sestilio.cpp.