23 #ifndef LELY_CO_SSDO_HPP_
24 #define LELY_CO_SSDO_HPP_
27 #error "include <lely/co/ssdo.h> for the C interface"
46 return __co_ssdo_alloc();
49 free(
void* ptr) noexcept {
55 return __co_ssdo_init(p, net, dev, num);
72 getNet()
const noexcept {
76 getDev()
const noexcept {
80 getNum()
const noexcept {
85 getPar()
const noexcept {
90 getTimeout()
const noexcept {
95 setTimeout(
int timeout) noexcept {
An opaque CAN network interface type.
An opaque CANopen device type.
An opaque CANopen Server-SDO service type.
The base class for a C++ interface to an incomplete C type.
This header file is part of the CAN library; it contains the C++ interface of the CAN network interfa...
This header file is part of the CANopen library; it contains the Server-SDO declarations.
co_dev_t * co_ssdo_get_dev(const co_ssdo_t *sdo)
Returns a pointer to the CANopen device of a Server-SDO.
co_unsigned8_t co_ssdo_get_num(const co_ssdo_t *sdo)
Returns the SDO number of a Server-SDO.
void co_ssdo_set_timeout(co_ssdo_t *sdo, int timeout)
Sets the timeout of a Server-SDO.
int co_ssdo_get_timeout(const co_ssdo_t *sdo)
Returns the timeout (in milliseconds) of a Server-SDO.
const struct co_sdo_par * co_ssdo_get_par(const co_ssdo_t *sdo)
Returns a pointer to the SDO parameter record of a Server-SDO.
can_net_t * co_ssdo_get_net(const co_ssdo_t *sdo)
Returns a pointer to the CAN network of a Server-SDO.
A class template supplying a uniform interface to certain attributes of C types.