Public Member Functions | Public Attributes | Private Attributes | List of all members
canopen::PDOMapper::Buffer Class Reference

Public Member Functions

 Buffer (const size_t sz)
 
void clean ()
 
void read (const canopen::ObjectDict::Entry &entry, String &data)
 
bool read (uint8_t *b, const size_t len)
 
void write (const canopen::ObjectDict::Entry &, const String &data)
 
void write (const uint8_t *b, const size_t len)
 

Public Attributes

const size_t size
 

Private Attributes

std::vector< char > buffer
 
bool dirty
 
bool empty
 
boost::mutex mutex
 

Detailed Description

Definition at line 74 of file canopen.h.

Constructor & Destructor Documentation

◆ Buffer()

canopen::PDOMapper::Buffer::Buffer ( const size_t  sz)
inline

Definition at line 82 of file canopen.h.

Member Function Documentation

◆ clean()

void canopen::PDOMapper::Buffer::clean ( )
inline

Definition at line 80 of file canopen.h.

◆ read() [1/2]

void PDOMapper::Buffer::read ( const canopen::ObjectDict::Entry entry,
String data 
)

Definition at line 361 of file pdo.cpp.

◆ read() [2/2]

bool PDOMapper::Buffer::read ( uint8_t *  b,
const size_t  len 
)

Definition at line 340 of file pdo.cpp.

◆ write() [1/2]

void PDOMapper::Buffer::write ( const canopen::ObjectDict::Entry entry,
const String data 
)

Definition at line 375 of file pdo.cpp.

◆ write() [2/2]

void PDOMapper::Buffer::write ( const uint8_t *  b,
const size_t  len 
)

Definition at line 352 of file pdo.cpp.

Member Data Documentation

◆ buffer

std::vector<char> canopen::PDOMapper::Buffer::buffer
private

Definition at line 88 of file canopen.h.

◆ dirty

bool canopen::PDOMapper::Buffer::dirty
private

Definition at line 86 of file canopen.h.

◆ empty

bool canopen::PDOMapper::Buffer::empty
private

Definition at line 87 of file canopen.h.

◆ mutex

boost::mutex canopen::PDOMapper::Buffer::mutex
private

Definition at line 85 of file canopen.h.

◆ size

const size_t canopen::PDOMapper::Buffer::size

Definition at line 81 of file canopen.h.


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


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Wed Mar 2 2022 00:52:26