Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
canopen::SDOClient Class Reference

#include <canopen.h>

Public Member Functions

void init ()
 
 SDOClient (const can::CommInterfaceSharedPtr interface, const ObjectDictSharedPtr dict, uint8_t node_id)
 

Public Attributes

const ObjectStorageSharedPtr storage_
 

Protected Member Functions

void read (const canopen::ObjectDict::Entry &entry, String &data)
 
void write (const canopen::ObjectDict::Entry &entry, const String &data)
 

Private Member Functions

void abort (uint32_t reason)
 
bool processFrame (const can::Frame &msg)
 
void transmitAndWait (const canopen::ObjectDict::Entry &entry, const String &data, String *result)
 

Private Attributes

String buffer
 
can::Header client_id
 
const canopen::ObjectDict::Entrycurrent_entry
 
bool done
 
const can::CommInterfaceSharedPtr interface_
 
can::Frame last_msg
 
boost::timed_mutex mutex
 
size_t offset
 
can::BufferedReader reader_
 
size_t total
 

Detailed Description

Definition at line 32 of file canopen.h.

Constructor & Destructor Documentation

canopen::SDOClient::SDOClient ( const can::CommInterfaceSharedPtr  interface,
const ObjectDictSharedPtr  dict,
uint8_t  node_id 
)
inline

Definition at line 60 of file canopen.h.

Member Function Documentation

void SDOClient::abort ( uint32_t  reason)
private

Definition at line 292 of file sdo.cpp.

void SDOClient::init ( )

Definition at line 373 of file sdo.cpp.

bool SDOClient::processFrame ( const can::Frame msg)
private

Definition at line 298 of file sdo.cpp.

void SDOClient::read ( const canopen::ObjectDict::Entry entry,
String data 
)
protected

Definition at line 436 of file sdo.cpp.

void SDOClient::transmitAndWait ( const canopen::ObjectDict::Entry entry,
const String data,
String result 
)
private

Definition at line 398 of file sdo.cpp.

void SDOClient::write ( const canopen::ObjectDict::Entry entry,
const String data 
)
protected

Definition at line 444 of file sdo.cpp.

Member Data Documentation

String canopen::SDOClient::buffer
private

Definition at line 41 of file canopen.h.

can::Header canopen::SDOClient::client_id
private

Definition at line 34 of file canopen.h.

const canopen::ObjectDict::Entry* canopen::SDOClient::current_entry
private

Definition at line 46 of file canopen.h.

bool canopen::SDOClient::done
private

Definition at line 44 of file canopen.h.

const can::CommInterfaceSharedPtr canopen::SDOClient::interface_
private

Definition at line 51 of file canopen.h.

can::Frame canopen::SDOClient::last_msg
private

Definition at line 45 of file canopen.h.

boost::timed_mutex canopen::SDOClient::mutex
private

Definition at line 36 of file canopen.h.

size_t canopen::SDOClient::offset
private

Definition at line 42 of file canopen.h.

can::BufferedReader canopen::SDOClient::reader_
private

Definition at line 38 of file canopen.h.

const ObjectStorageSharedPtr canopen::SDOClient::storage_

Definition at line 56 of file canopen.h.

size_t canopen::SDOClient::total
private

Definition at line 43 of file canopen.h.


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


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Sat May 4 2019 02:40:43