ControlAPI::ThousliteController Class Reference

controller for Thouslite devices More...

#include <thouslite_controller.h>

Inheritance diagram for ControlAPI::ThousliteController:

Public Attributes

int baudrate = 115200
 The baudrate to connect to the controller (9600 for older models, 115200 for newer touch screen controller) only used with apiMajorVersion = 2 More...
 
int apiMajorVersion = 1
 The Api version (1 or 2) to use when communicating with the thouslite, default is 1 (older models) More...
 
- Public Attributes inherited from ControlAPI::DeviceController
std::string alias
 Alias of the controller.
 
std::string port
 port for connecting, if the device is a serial device this can be "COM3" or "/dev/tty.***"
 

Friends

class ThousliteDeviceInfo
 

Additional Inherited Members

- Public Member Functions inherited from ControlAPI::HardwareDeviceController
virtual std::string className () override
 
- Public Member Functions inherited from ControlAPI::DeviceController
virtual bool checkCommandPackage (int deviceId, DeviceCommandPackage *package)
 check validity of command package
 
void addDeviceInfo (DeviceInfo *dev)
 Add a device to the controller. More...
 
void removeDeviceInfo (DeviceInfo *dev)
 Remove an already added device.
 
void setDisconnectCallback (std::function< void(bool)> callback)
 set a disconnected callback function to be called when the controller is disconnected.
 
bool isConnected ()
 returns true if the controller is currently connected.
 
int apiId ()
 the assigned Api Id of the controller
 
void setSimulated (bool simulated)
 set the simulated flag on the controller - simulated controllers can simulate interaction with attached devices. can only be set before the controller is initialized. More...
 
bool isSimulated ()
 return if the controller is simulated. More...
 
- Public Member Functions inherited from ControlAPI::LoggerFunctionality
std::shared_ptr< spdlog::logger > getLogger ()
 
std::string loggerName ()
 
- Static Public Member Functions inherited from ControlAPI::HardwareDeviceController
static std::string staticClassName ()
 
- Static Public Member Functions inherited from ControlAPI::DeviceController
static std::string staticClassName ()
 
- Static Public Member Functions inherited from ControlAPI::LoggerFunctionality
static std::string staticClassName ()
 
- Protected Attributes inherited from ControlAPI::LoggerFunctionality
std::shared_ptr< spdlog::logger > logger
 
ControlSystem * controlSystem = nullptr
 

Detailed Description

controller for Thouslite devices

Member Data Documentation

◆ apiMajorVersion

int ControlAPI::ThousliteController::apiMajorVersion = 1

The Api version (1 or 2) to use when communicating with the thouslite, default is 1 (older models)

◆ baudrate

int ControlAPI::ThousliteController::baudrate = 115200

The baudrate to connect to the controller (9600 for older models, 115200 for newer touch screen controller) only used with apiMajorVersion = 2


The documentation for this class was generated from the following file: