Public Member Functions | Private Member Functions | Private Attributes | List of all members
ric_interface::RicInterface Class Reference

#include <ric_interface.h>

Public Member Functions

void connect (std::string port)
 
sensors_state getSensorsState ()
 
bool isBoardAlive ()
 
void loop ()
 
 RicInterface ()
 
void writeCmd (const protocol::actuator &actu_pkg, size_t size, protocol::Type type)
 

Private Member Functions

void checkKeepAliveFromRic ()
 
void clearBuffer ()
 
void readAndHandlePkg ()
 
void sendKeepAlive ()
 

Private Attributes

Communicator comm_
 
const int GET_KA_TIMEOUT = 1500
 
Timer get_keepalive_timer_
 
bool got_keepalive_ = false
 
bool is_board_alive_ = true
 
byte pkg_buff_ [protocol::MAX_PKG_SIZE]
 
const int SEND_KA_TIMEOUT = 300
 
Timer send_keepalive_timer_
 
sensors_state sensors_state_
 

Detailed Description

Definition at line 18 of file ric_interface.h.

Constructor & Destructor Documentation

ric_interface::RicInterface::RicInterface ( )

Definition at line 7 of file ric_interface.cpp.

Member Function Documentation

void ric_interface::RicInterface::checkKeepAliveFromRic ( )
private

Definition at line 31 of file ric_interface.cpp.

void ric_interface::RicInterface::clearBuffer ( )
private

Definition at line 19 of file ric_interface.cpp.

void ric_interface::RicInterface::connect ( std::string  port)

Definition at line 14 of file ric_interface.cpp.

sensors_state ric_interface::RicInterface::getSensorsState ( )
inline

Definition at line 41 of file ric_interface.h.

bool ric_interface::RicInterface::isBoardAlive ( )
inline

Definition at line 40 of file ric_interface.h.

void ric_interface::RicInterface::loop ( )

Definition at line 24 of file ric_interface.cpp.

void ric_interface::RicInterface::readAndHandlePkg ( )
private

Definition at line 51 of file ric_interface.cpp.

void ric_interface::RicInterface::sendKeepAlive ( )
private

Definition at line 144 of file ric_interface.cpp.

void ric_interface::RicInterface::writeCmd ( const protocol::actuator actu_pkg,
size_t  size,
protocol::Type  type 
)

Definition at line 156 of file ric_interface.cpp.

Member Data Documentation

Communicator ric_interface::RicInterface::comm_
private

Definition at line 27 of file ric_interface.h.

const int ric_interface::RicInterface::GET_KA_TIMEOUT = 1500
private

Definition at line 22 of file ric_interface.h.

Timer ric_interface::RicInterface::get_keepalive_timer_
private

Definition at line 26 of file ric_interface.h.

bool ric_interface::RicInterface::got_keepalive_ = false
private

Definition at line 25 of file ric_interface.h.

bool ric_interface::RicInterface::is_board_alive_ = true
private

Definition at line 25 of file ric_interface.h.

byte ric_interface::RicInterface::pkg_buff_[protocol::MAX_PKG_SIZE]
private

Definition at line 29 of file ric_interface.h.

const int ric_interface::RicInterface::SEND_KA_TIMEOUT = 300
private

Definition at line 21 of file ric_interface.h.

Timer ric_interface::RicInterface::send_keepalive_timer_
private

Definition at line 26 of file ric_interface.h.

sensors_state ric_interface::RicInterface::sensors_state_
private

Definition at line 28 of file ric_interface.h.


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


ric_interface
Author(s):
autogenerated on Wed Jan 3 2018 03:48:20