22 #ifndef LELY_CO_SSDO_H_
23 #define LELY_CO_SSDO_H_
32 void *__co_ssdo_alloc(
void);
33 void __co_ssdo_free(
void *ptr);
36 void __co_ssdo_fini(
struct __co_ssdo *sdo);
This header file is part of the CANopen library; it contains the Service Data Object (SDO) declaratio...
This header file is part of the CAN library; it contains the CAN network interface declarations.
co_dev_t * co_ssdo_get_dev(const co_ssdo_t *sdo)
Returns a pointer to the CANopen device of a Server-SDO.
int co_ssdo_start(co_ssdo_t *sdo)
Starts a Server-SDO service.
void co_ssdo_stop(co_ssdo_t *sdo)
Stops a Server-SDO service.
co_unsigned8_t co_ssdo_get_num(const co_ssdo_t *sdo)
Returns the SDO number of a Server-SDO.
void co_ssdo_destroy(co_ssdo_t *sdo)
Destroys a CANopen Server-SDO service.
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.
int co_ssdo_is_stopped(const co_ssdo_t *sdo)
Retuns 1 if the specified Server-SDO service is stopped, and 0 if not.
co_ssdo_t * co_ssdo_create(can_net_t *net, co_dev_t *dev, co_unsigned8_t num)
Creates a new CANopen Server-SDO service.
can_net_t * net
A pointer to a CAN network interface.
co_dev_t * dev
A pointer to a CANopen device.
co_unsigned8_t num
The SDO number.