SIde-Channel Analysis toolKit (SICAK)
Software toolkit for side-channel analysis
Public Member Functions | Protected Attributes | List of all members

Serial port interface (Win32/Posix) SICAK CharDevice plugin. More...

#include <serialport.h>

Inheritance diagram for SerialPort:
Inheritance graph
Collaboration diagram for SerialPort:
Collaboration graph

Public Member Functions

virtual QString getPluginName () override
 Plugin name.
 
virtual QString getPluginInfo () override
 Plugin info.
 
virtual void init (const char *filename, int baudrate=9600, int parity=0, int stopBits=1) override
 Initializes the serial port, on Win32 e.g. filename=COM2, on Posix e.g. filename=/dev/ttyUSB0, parity: 0=none, 1=odd, 2=even.
 
virtual void deInit () override
 Deinitialize the plugin.
 
virtual QString queryDevices () override
 Query available devices/filenames.
 
virtual void setTimeout (int ms=5000) override
 Set communication timeout of the character device, in milliseconds, default 5s.
 
virtual size_t send (const VectorType< uint8_t > &data) override
 Sends out the VectorType.
 
virtual size_t receive (VectorType< uint8_t > &data) override
 Fills the given VectorType.
 
virtual size_t send (const VectorType< uint8_t > &data, size_t len) override
 Sends out the specified amount of bytes from VectorType.
 
virtual size_t receive (VectorType< uint8_t > &data, size_t len) override
 Receives the specified amount of bytes and saves them in given VectorType.
 
virtual size_t send (const uint8_t *buffer, size_t len) override
 Sends out the specified amount of data from buffer.
 
virtual size_t receive (uint8_t *buffer, size_t len) override
 Receives the specified amount of data into the buffer.
 

Protected Attributes

int m_osHandle
 
bool m_opened
 

Additional Inherited Members

Detailed Description

Serial port interface (Win32/Posix) SICAK CharDevice plugin.


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