main_ubi_sdk v 0.1.3
This is UBI4 documentation
hand_parameter_description.h
Go to the documentation of this file.
1/*
2 ******************************************************************************
3 * @file hand_parameter_description.h
4 * @author A.Alborov
5 ******************************************************************************
6*/
7
8#ifndef DATA_HAND_PARAMETER_DESCRIPTION_H_
9#define DATA_HAND_PARAMETER_DESCRIPTION_H_
10
11
12#include "stdint.h"
13#include "stdbool.h"
14
15
16
17
21typedef enum {
22
24
26
33
36
40
44
50
57
62
66
75
80
84
90
102
104
105typedef struct {
106 uint8_t bat_level;
109} __attribute__((__packed__)) bms_status_combined_parameter_struct;
110
111typedef struct {
112 uint8_t open_signal;
114}__attribute__((__packed__)) open_close_signal_param_struct;
115
116typedef struct {
117 uint16_t year;
118 uint8_t month;
119 uint8_t date;
120 uint8_t week_day;
121 uint8_t hours;
122 uint8_t minutes;
123 uint8_t seconds;
124} __attribute__((__packed__)) rtc_date_time_param_struct;
125
126
136
157typedef struct
158{
159 uint8_t data_code;
162 uint8_t action_type;
163 uint8_t action_args[2];
164}__attribute__((__packed__))action_request_param_struct;
165
166typedef struct
167{
168 uint8_t open_upper;
169 uint8_t open_lower;
170 uint8_t close_upper;
171 uint8_t close_lower;
172}__attribute__((__packed__))open_close_threshold_param_struct;
173
174typedef struct
175{
176 uint8_t gesture_id;
177 uint8_t drive_num;
178
179 uint8_t OpenPosition[6];
180 uint8_t ClosePosition[6];
183
184}__attribute__((__packed__))editable_gesture_param_struct;
185
186
187typedef struct
188{
189 uint8_t gesture_id;
191}__attribute__((__packed__))gesture_group_param_item_struct;
192
193
194typedef struct
195{
196 uint8_t dms_state;
197 uint8_t gesture_id;
198}__attribute__((__packed__))optic_binding_data_item_struct;
199
200
201
202
203#define GESTURE_GROUP_SIZE 8
204
211
212#define OPTIC_BINDING_DATA_GROUP_SIZE 13
213
220
221
222#endif /* DATA_BASE_PARAMETER_H_ */
request_action_type_enum
Definition hand_parameter_description.h:127
@ RATE_DECREASE
Definition hand_parameter_description.h:130
@ RATE_SET_VALUE
Definition hand_parameter_description.h:132
@ RATE_IN_DE_CREASE
Definition hand_parameter_description.h:131
@ RATE_REQUEST_VALUE
Definition hand_parameter_description.h:133
@ RATE_NO_CHANGE
Definition hand_parameter_description.h:128
@ RATE_ENABLE_TRANSFER
Definition hand_parameter_description.h:134
@ RATE_INCREASE
Definition hand_parameter_description.h:129
#define OPTIC_BINDING_DATA_GROUP_SIZE
Definition hand_parameter_description.h:212
parameter_data_code_enum
Enumeration of parameter data codes.
Definition hand_parameter_description.h:21
@ PDCE_SELECT_PROFILE
Definition hand_parameter_description.h:29
@ PDCE_VIBRO_MOTOR_ACTION
Definition hand_parameter_description.h:88
@ PDCE_LEFT_RIGHT_HAND_MODE
Definition hand_parameter_description.h:78
@ PDCE_EMG_CH_7_9_GAIN
Definition hand_parameter_description.h:43
@ PDCE_GLOBAL_FORCE
Definition hand_parameter_description.h:30
@ PDCE_CURRENT_DRIVE_CURRENT_UINT8
Definition hand_parameter_description.h:53
@ PDCE_SWITCH_SENSORS
Definition hand_parameter_description.h:79
@ PDCE_GENERIC_3
Definition hand_parameter_description.h:98
@ PDCE_OPTIC_ENABLE
Definition hand_parameter_description.h:83
@ PDCE_OPTIC_SELECT_GESTURE_STATE
Definition hand_parameter_description.h:87
@ PDCE_GESTURES_CHANGE_SETTINGS
Definition hand_parameter_description.h:58
@ PDCE_EMG_CH_1_3_VAL
Definition hand_parameter_description.h:37
@ PDCE_EMG_CH_1_3_GAIN
Definition hand_parameter_description.h:41
@ PDCE_EMG_CH_4_6_GAIN
Definition hand_parameter_description.h:42
@ PDCE_GENERIC_6
Definition hand_parameter_description.h:95
@ PDCE_OPEN_CLOSE_THRESHOLD
Definition hand_parameter_description.h:61
@ PDCE_GENERIC_8
Definition hand_parameter_description.h:93
@ PDCE_OPTIC_SELECT_GESTURE_TIMEOUT
Definition hand_parameter_description.h:85
@ PDCE_GLOBAL_SENSITIVITY
Definition hand_parameter_description.h:31
@ PDCE_CALIBRATION_CURRENT_PERCENT
Definition hand_parameter_description.h:74
@ PDCE_CURRENT_DRIVE_POSITION
Definition hand_parameter_description.h:52
@ PDCE_DISABLE_MOTORS_FLAG
Definition hand_parameter_description.h:86
@ PDCE_TARGET_DRIVE_FORCE_PERCENT
Definition hand_parameter_description.h:49
@ PDCE_EMG_CH_4_6_VAL
Definition hand_parameter_description.h:38
@ PDCE_DRIVE_SETTINGS
Definition hand_parameter_description.h:60
@ PDCE_GESTURE_SETTINGS
Definition hand_parameter_description.h:67
@ PDCE_CURRENT_DRIVE_CURRENT_UINT16
Definition hand_parameter_description.h:54
@ PDCE_INTERFECE_ERROR_COUNTER
Definition hand_parameter_description.h:73
@ PDCE_OPTIC_BINDING_DATA
Definition hand_parameter_description.h:82
@ PDCE_VIBRO_MOTOR_CPNTROL
Definition hand_parameter_description.h:89
@ PDCE_CURRENT_DRIVE_FORCE_UINT16
Definition hand_parameter_description.h:56
@ PDCE_NO_CODE
Definition hand_parameter_description.h:101
@ PDCE_GENERIC_7
Definition hand_parameter_description.h:94
@ PDCE_GENERIC_9
Definition hand_parameter_description.h:92
@ PDCE_DMS_OUTPUT
Definition hand_parameter_description.h:71
@ PDCE_SELECT_GESTURE
Definition hand_parameter_description.h:28
@ PDCE_GENERIC_5
Definition hand_parameter_description.h:96
@ PDCE_UNIVERSAL_CONTROL_INPUT
Definition hand_parameter_description.h:34
@ PDCE_DATE_AND_TIME
Definition hand_parameter_description.h:72
@ PDCE_GENERIC_1
Definition hand_parameter_description.h:100
@ PDCE_GENERIC_2
Definition hand_parameter_description.h:99
@ PDCE_GESTURE_GROUP
Definition hand_parameter_description.h:68
@ PDCE_OPEN_CLOSE_SIGNAL
Definition hand_parameter_description.h:35
@ PDCE_CALIB_STATUS
Definition hand_parameter_description.h:63
@ PDCE_CURRENT_DRIVE_FORCE_UINT8
Definition hand_parameter_description.h:55
@ PDCE_ACTION_REQUEST
Definition hand_parameter_description.h:25
@ PDCE_GLOBAL_THRESHOLD
Definition hand_parameter_description.h:32
@ PDCE_BMS_STATUS_COMBINED_PARAM
Definition hand_parameter_description.h:65
@ PDCE_OPTIC_LEARNING_DATA
Definition hand_parameter_description.h:69
@ PDCE_TARGET_DRIVE_POSITION_PERCENT
Definition hand_parameter_description.h:47
@ PDCE_ENERGY_SAVE_MODE
Definition hand_parameter_description.h:77
@ PDCE_TARGET_DRIVE_SPEED_PERCENT
Definition hand_parameter_description.h:48
@ PDCE_OPTIC_CHECKPOINT_DATA_RECEIVER
Definition hand_parameter_description.h:81
@ PDCE_EMG_CH_7_9_VAL
Definition hand_parameter_description.h:39
@ PDCE_CONTROL_MODE_SETTINGS
Definition hand_parameter_description.h:59
@ PDCE_SIMPLE_COMMAND
Definition hand_parameter_description.h:23
@ PDCE_EMG_ENV_E_VAL
Definition hand_parameter_description.h:70
@ PDCE_GENERIC_4
Definition hand_parameter_description.h:97
@ PDCE_CURRENT_LIMITS
Definition hand_parameter_description.h:64
@ PDCE_MOVE_DRIVE_PERCENT
Definition hand_parameter_description.h:46
#define GESTURE_GROUP_SIZE
Definition hand_parameter_description.h:203
Структура стандартного параметра для изменения другого параметра
Definition hand_parameter_description.h:158
uint8_t data_code
Definition hand_parameter_description.h:159
uint8_t action_args[2]
Definition hand_parameter_description.h:163
uint8_t action_priority
Definition hand_parameter_description.h:161
uint8_t data_instance
Definition hand_parameter_description.h:160
uint8_t action_type
Definition hand_parameter_description.h:162
Definition hand_parameter_description.h:105
uint8_t bat_level
Definition hand_parameter_description.h:106
uint8_t charge_status
Definition hand_parameter_description.h:107
uint16_t charge_current
Definition hand_parameter_description.h:108
Definition hand_parameter_description.h:175
uint8_t CloseToOpenTimeShift[6]
Definition hand_parameter_description.h:182
uint8_t ClosePosition[6]
Definition hand_parameter_description.h:180
uint8_t OpenToCloseTimeShift[6]
Definition hand_parameter_description.h:181
uint8_t OpenPosition[6]
Definition hand_parameter_description.h:179
uint8_t gesture_id
Definition hand_parameter_description.h:176
uint8_t drive_num
Definition hand_parameter_description.h:177
Definition hand_parameter_description.h:188
uint8_t gesture_id
Definition hand_parameter_description.h:189
uint8_t gesture_image_code
Definition hand_parameter_description.h:190
Definition hand_parameter_description.h:206
gesture_group_param_item_struct gestures_description[GESTURE_GROUP_SIZE]
Definition hand_parameter_description.h:208
Definition hand_parameter_description.h:111
uint8_t close_signal
Definition hand_parameter_description.h:113
uint8_t open_signal
Definition hand_parameter_description.h:112
Definition hand_parameter_description.h:167
uint8_t open_upper
Definition hand_parameter_description.h:168
uint8_t open_lower
Definition hand_parameter_description.h:169
uint8_t close_lower
Definition hand_parameter_description.h:171
uint8_t close_upper
Definition hand_parameter_description.h:170
Definition hand_parameter_description.h:195
uint8_t dms_state
Definition hand_parameter_description.h:196
uint8_t gesture_id
Definition hand_parameter_description.h:197
Definition hand_parameter_description.h:215
optic_binding_data_item_struct sate_bind[OPTIC_BINDING_DATA_GROUP_SIZE]
Definition hand_parameter_description.h:217
Definition hand_parameter_description.h:116
uint8_t hours
Definition hand_parameter_description.h:121
uint8_t week_day
Definition hand_parameter_description.h:120
uint8_t date
Definition hand_parameter_description.h:119
uint8_t month
Definition hand_parameter_description.h:118
uint8_t seconds
Definition hand_parameter_description.h:123
uint16_t year
Definition hand_parameter_description.h:117
uint8_t minutes
Definition hand_parameter_description.h:122