SIde-Channel Analysis toolKit (SICAK)
Software toolkit for side-channel analysis
|
Character device QT plugin interface. More...
#include <chardevice.h>
Public Member Functions | |
virtual QString | getPluginName ()=0 |
Plugin name. | |
virtual QString | getPluginInfo ()=0 |
Plugin info. | |
virtual void | init (const char *filename, int baudrate=9600, int parity=0, int stopBits=1)=0 |
Initialize the plugin with device given by filename, parity: 0=none,1=odd,2=even. | |
virtual void | deInit ()=0 |
Deinitialize the plugin. | |
virtual QString | queryDevices ()=0 |
Query available devices/filenames. | |
virtual void | setTimeout (int ms=5000)=0 |
Set communication timeout of the character device, in milliseconds, default 5s. | |
virtual size_t | send (const VectorType< uint8_t > &data)=0 |
Sends out the VectorType. | |
virtual size_t | receive (VectorType< uint8_t > &data)=0 |
Fills the given VectorType. | |
virtual size_t | send (const VectorType< uint8_t > &data, size_t len)=0 |
Sends out the specified amount of bytes from VectorType. | |
virtual size_t | receive (VectorType< uint8_t > &data, size_t len)=0 |
Receives the specified amount of bytes and saves them in given VectorType. | |
virtual size_t | send (const uint8_t *buffer, size_t len)=0 |
Sends out the specified amount of data from buffer. | |
virtual size_t | receive (uint8_t *buffer, size_t len)=0 |
Receives the specified amount of data into the buffer. | |
Character device QT plugin interface.