TURAG-Feldbus
feldbus_stellantriebe.h
Go to the documentation of this file.
59#ifndef TINA_FELDBUS_SLAVE_FELDBUS_STELLANTRIEBE_H_
60#define TINA_FELDBUS_SLAVE_FELDBUS_STELLANTRIEBE_H_
61
62#include <feldbus/device/feldbus_base.h>
63#include <feldbus/device/feldbus_config_check.h>
64
65
66#ifdef __cplusplus
67extern "C" {
68#endif
69
70
71
72
73
74// do not change this structure!!! Otherwise the device will send
75// corrupted command info packages.
76typedef struct __attribute__ ((packed)) {
78 void* value;
80 uint8_t write_access;
82 uint8_t length;
85 float factor;
86} feldbus_stellantriebe_command_t;
87
88
89typedef union {
90 int8_t char_buffer;
91 int16_t short_buffer;
92 int32_t long_buffer;
93 uint8_t raw_buffer[4];
95
98
112 feldbus_stellantriebe_command_t* command_set,
113 const char** command_names,
114 uint8_t command_set_length,
115 TuragFeldbusPacketProcessor package_processor);
116
129
130
131
132FeldbusSize_t turag_feldbus_stellantriebe_process_package(const uint8_t* message, FeldbusSize_t message_length, uint8_t* response);
133
134
135
136
137
138#ifdef __cplusplus
139}
140#endif
141
142#endif /* TINA_FELDBUS_SLAVE_FELDBUS_STELLANTRIEBE_H_ */
void turag_feldbus_stellantriebe_value_changed(uint8_t key)
This function is called after a value was changed.
feldbus_stellantriebe_value_buffer_t feldbus_stellantriebe_old_value
Buffers the old value of a changed entry of the command set.
Definition: feldbus_stellantriebe.c:22
struct __attribute__((packed))
Definition: feldbus_stellantriebe.h:76
void turag_feldbus_stellantriebe_init(feldbus_stellantriebe_command_t *command_set, const char **command_names, uint8_t command_set_length, TuragFeldbusPacketProcessor package_processor)
Sets up this module.
Definition: feldbus_stellantriebe.c:27
Definition: feldbus_stellantriebe.h:89