Functions | |
const bool | Ccmd (di_serial_io &conn, const u_int8_t code=0x3F) |
Channels to scan. | |
const bool | Dcmd (di_serial_io &conn, const u_int8_t code=0) |
Digital channel. | |
const bool | Ncmd (di_serial_io &conn, char *sn) |
Get serial. | |
const bool | Scmd (di_serial_io &conn, const u_int8_t code=0) |
Start/Stop acquisition. |
const bool Ccmd | ( | di_serial_io & | conn, |
const u_int8_t | code | ||
) |
Channels 0000 to 1111. Each bit represents the physical channel to enable.
Dec. value - channel
1 - analog channel 1
2 - analog channel 2
4 - analog channel 3
8 - analog channel 4
add together to get any combination of channels
OR
each bit is a channel: 4 (left) to 1 (right) using above scheme
channel 1, binary: 0001 (decimal: 1)
channel 2,3 binary: 0110 (decimal: 6)
conn | Serial connection. |
code | The channel code to send (integer). |
Definition at line 79 of file di194_commands.cpp.
const bool Dcmd | ( | di_serial_io & | conn, |
const u_int8_t | code | ||
) |
Code values:
0 = Output square wave on digital channels.
1 = Input digital channels.
conn | Serial connection. |
code | The digital channel code to send (integer). |
Definition at line 104 of file di194_commands.cpp.
const bool Ncmd | ( | di_serial_io & | conn, |
char * | sn | ||
) |
conn | Serial connection. |
sn | Pointer to an array that will hold the serial number. |
Definition at line 43 of file di194_commands.cpp.
const bool Scmd | ( | di_serial_io & | conn, |
const u_int8_t | code | ||
) |
Data aqcuisition Start/Stop.
Start = 1.
Stop = 0.
conn | Serial connection. |
code | The code (integer). |
Definition at line 129 of file di194_commands.cpp.