SESTILIO  3.0.2
C Library for SESTILIO a smart A/D and D/A interface on USB 2.0
Low level commands

Functions

CTYPE const char DLL_P SE_ReadData (const char *command, int rxed, int usbDevice)
 Send a command and get it's relative answer as character string. More...
 
CTYPE long DLL SE_ReadDataNumber (const char *command, int rxed, int usbDevice)
 Send a command and get it's relative answer as long. More...
 
CTYPE const char DLL_P SE_ReadDataBinary (const char *command, int rxed, int usbDevice)
 Send a command and get it's relative answer as a buffer of bytes. More...
 
CTYPE int DLL SE_ReadDataBinaryExt (const char *command, char *outBuf, int rxed, int usbDevice)
 Send a command and get it's relative answer to store in a buffer specified as parameter. More...
 
CTYPE int DLL SE_WriteDataBinary (const char *command, const char *buffer, unsigned length, int usbDevice)
 Send a specified command and it's buffer of parameters. More...
 
CTYPE int DLL SE_Command (const char *command, int usbDevice)
 Send a specified command without any parameters. More...
 
CTYPE void DLL SE_CommandDeaf (const char *command, int usbDevice)
 Send a specified command without any parameters and without wait ACK from SESTILIO. More...
 
CTYPE int DLL SE_CheckAck (int usbDevice)
 Check if an ACK is received from SESTILIO. More...
 

Detailed Description

Functions used by library itself for send and receive data to/from SESTILIO.

Function Documentation

◆ SE_CheckAck()

int SE_CheckAck ( int  usbDevice)

Check if an ACK is received from SESTILIO.

Parameters
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_ReadData, SE_ReadDataNumber, SE_ReadDataBinary, SE_Command.
Returns
Operation status. Operation Status

Definition at line 178 of file sestilio.cpp.

◆ SE_Command()

int SE_Command ( const char *  command,
int  usbDevice 
)

Send a specified command without any parameters.

Parameters
commandCommand to send.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_ReadData, SE_ReadDataNumber, SE_ReadDataBinary, SE_Command.
Returns
Operation status. Operation Status

Definition at line 153 of file sestilio.cpp.

◆ SE_CommandDeaf()

void SE_CommandDeaf ( const char *  command,
int  usbDevice 
)

Send a specified command without any parameters and without wait ACK from SESTILIO.

Parameters
commandCommand to send.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_ReadData, SE_ReadDataNumber, SE_ReadDataBinary, SE_Command.
Returns
Operation status. Operation Status

Definition at line 169 of file sestilio.cpp.

◆ SE_ReadData()

const char * SE_ReadData ( const char *  command,
int  rxed,
int  usbDevice 
)

Send a command and get it's relative answer as character string.

Parameters
commandCommand to send.
rxedNumber of character to receive from the command.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_ReadDataNumber, SE_ReadDataBinary, SE_WriteDataBinary, SE_Command.
Returns
A pointer to the received string, or a pointer with value of zero if an error is occurred.

Definition at line 58 of file sestilio.cpp.

◆ SE_ReadDataBinary()

const char * SE_ReadDataBinary ( const char *  command,
int  rxed,
int  usbDevice 
)

Send a command and get it's relative answer as a buffer of bytes.

Parameters
commandCommand to send.
rxedNumber of bytes to receive from the command.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_ReadData, SE_ReadDataNumber, SE_WriteDataBinary, SE_Command.
Returns
The buffer of received data.

Definition at line 90 of file sestilio.cpp.

◆ SE_ReadDataBinaryExt()

int SE_ReadDataBinaryExt ( const char *  command,
char *  outBuf,
int  rxed,
int  usbDevice 
)

Send a command and get it's relative answer to store in a buffer specified as parameter.

Parameters
commandCommand to send.
outBufOutput buffer.
rxedNumber of bytes to receive from the command.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_ReadData, SE_ReadDataNumber, SE_WriteDataBinary, SE_Command.
Returns
Operation status. Operation Status

Definition at line 115 of file sestilio.cpp.

◆ SE_ReadDataNumber()

long SE_ReadDataNumber ( const char *  command,
int  rxed,
int  usbDevice 
)

Send a command and get it's relative answer as long.

Parameters
commandCommand to send.
rxedNumber of digits to receive from the command.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_ReadData, SE_ReadDataBinary, SE_WriteDataBinary, SE_Command.
Returns
The received number.

Definition at line 145 of file sestilio.cpp.

◆ SE_WriteDataBinary()

int SE_WriteDataBinary ( const char *  command,
const char *  buffer,
unsigned  length,
int  usbDevice 
)

Send a specified command and it's buffer of parameters.

Parameters
commandCommand to send.
bufferParameters buffer.
lengthNumber of parameters to send.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_ReadData, SE_ReadDataNumber, SE_ReadDataBinary, SE_Command.
Returns
Operation status. Operation Status

Definition at line 130 of file sestilio.cpp.