ros2_canopen  master
C++ ROS CANopen Library
Public Member Functions | List of all members
ros2_canopen::WordAccessor< MASK > Class Template Reference

#include <word_accessor.hpp>

Public Member Functions

 WordAccessor (uint16_t &word)
 
bool set (uint8_t bit)
 
bool reset (uint8_t bit)
 
bool get (uint8_t bit) const
 
uint16_t get () const
 
WordAccessoroperator= (const uint16_t &val)
 

Constructor & Destructor Documentation

◆ WordAccessor()

template<uint16_t MASK>
ros2_canopen::WordAccessor< MASK >::WordAccessor ( uint16_t &  word)
inline

Member Function Documentation

◆ set()

template<uint16_t MASK>
bool ros2_canopen::WordAccessor< MASK >::set ( uint8_t  bit)
inline

◆ reset()

template<uint16_t MASK>
bool ros2_canopen::WordAccessor< MASK >::reset ( uint8_t  bit)
inline

◆ get() [1/2]

template<uint16_t MASK>
bool ros2_canopen::WordAccessor< MASK >::get ( uint8_t  bit) const
inline

◆ get() [2/2]

template<uint16_t MASK>
uint16_t ros2_canopen::WordAccessor< MASK >::get ( ) const
inline

◆ operator=()

template<uint16_t MASK>
WordAccessor& ros2_canopen::WordAccessor< MASK >::operator= ( const uint16_t &  val)
inline

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