VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
vitroio::sdk::Transport_layer Class Reference

Virtual class providing interface for communication interfaces. More...

#include <transport_layer.h>

Inheritance diagram for vitroio::sdk::Transport_layer:

Public Member Functions

virtual int send (uint32_t parameterId, const IoVec *iov, int iovcnt)
 Function sends given data. More...
 
virtual uint32_t getTimestamp ()
 Function sends timestamp request and returns timestamp value. More...
 
void updateNodeId (uint32_t nodeId)
 Update node ID. More...
 
uint32_t nodeId ()
 Returns node ID. More...
 

Protected Member Functions

 Transport_layer (uint32_t nodeId)
 

Protected Attributes

uint32_t nodeId_
 

Detailed Description

Virtual class providing interface for communication interfaces.

the aim of this class is to provide interfaces for basic communication with other devices, for sending IoT Blocks.

Constructor & Destructor Documentation

◆ Transport_layer()

vitroio::sdk::Transport_layer::Transport_layer ( uint32_t  nodeId)
inlineprotected

Member Function Documentation

◆ getTimestamp()

virtual uint32_t vitroio::sdk::Transport_layer::getTimestamp ( )
virtual

Function sends timestamp request and returns timestamp value.

Returns
uint32_t Received timestamp

Reimplemented in vitroio::sdk::Can_layer.

◆ nodeId()

uint32_t vitroio::sdk::Transport_layer::nodeId ( )
inline

Returns node ID.

Returns
uint32_t node ID
Here is the caller graph for this function:

◆ send()

virtual int vitroio::sdk::Transport_layer::send ( uint32_t  parameterId,
const IoVec iov,
int  iovcnt 
)
virtual

Function sends given data.

Parameters
parameterIdId of parameter sent
iovPointer to first IoVec with data to be sent IoVec
iovcntCount of IoVects to read
Returns
int Status of sending

Reimplemented in vitroio::sdk::Can_layer.

◆ updateNodeId()

void vitroio::sdk::Transport_layer::updateNodeId ( uint32_t  nodeId)
inline

Update node ID.

Parameters
nodeIdNew ID value
Here is the call graph for this function:

Member Data Documentation

◆ nodeId_

uint32_t vitroio::sdk::Transport_layer::nodeId_
protected