6 #include "vn/xplat/serialport.h"
11 #if defined __linux__ || defined __CYGWIN__
12 #define VnSearcher_findPorts VnSearcher_findPorts_LINUX
14 #define VnSearcher_findPorts VnSearcher_findPorts_WIN32
16 #error ERROR: System not yet supported in VnSearcher
21 #pragma warning(disable : 4820)
54 char* VnSearcher_getPortName(
VnPortInfo* portInfo);
62 int32_t VnSearcher_getPortBaud(
VnPortInfo* portInfo);
68 void VnSearcher_findPorts(
char*** portNames, int32_t* numPortsFound);
75 void VnSearcher_findPortBaud(
char* portName, int32_t* foundBaudrate);
82 void VnSearcher_findAllSensors(
VnPortInfo*** sensorsFound, int32_t* numSensors);
92 void VnSearcher_searchInputPorts(
char*** portsToCheck, int32_t numPortsToCheck,
VnPortInfo*** sensorsFound);
int32_t baud
Baud of the attached senosr, -1 for no sensor, -2 for error.
Definition: searcher.h:34
containing information about the port to be searched.
Definition: searcher.h:25
Provides access to a serial port.
Definition: serialport.h:48
char * portName
Contains the name of the port.
Definition: searcher.h:28
VnThread thread
VnThread object for callback purposes.
Definition: searcher.h:31
Structure for working with threads.
Definition: thread.h:40
VnSerialPort * port
VnSerialPort object to handle communication to the sensor.
Definition: searcher.h:40
size_t dataSize
size of the data array
Definition: searcher.h:37