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

◆ SDOClient()

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

◆ abort()

void SDOClient::abort ( uint32_t  reason)
private

Definition at line 292 of file sdo.cpp.

◆ init()

void SDOClient::init ( )

Definition at line 373 of file sdo.cpp.

◆ processFrame()

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

Definition at line 298 of file sdo.cpp.

◆ read()

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

Definition at line 436 of file sdo.cpp.

◆ transmitAndWait()

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

Definition at line 398 of file sdo.cpp.

◆ write()

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

Definition at line 444 of file sdo.cpp.

Member Data Documentation

◆ buffer

String canopen::SDOClient::buffer
private

Definition at line 41 of file canopen.h.

◆ client_id

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

Definition at line 34 of file canopen.h.

◆ current_entry

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

Definition at line 46 of file canopen.h.

◆ done

bool canopen::SDOClient::done
private

Definition at line 44 of file canopen.h.

◆ interface_

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

Definition at line 51 of file canopen.h.

◆ last_msg

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

Definition at line 45 of file canopen.h.

◆ mutex

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

Definition at line 36 of file canopen.h.

◆ offset

size_t canopen::SDOClient::offset
private

Definition at line 42 of file canopen.h.

◆ reader_

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

Definition at line 38 of file canopen.h.

◆ storage_

const ObjectStorageSharedPtr canopen::SDOClient::storage_

Definition at line 56 of file canopen.h.

◆ total

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 Mon Feb 28 2022 23:28:03