main_ubi_sdk
v 0.1.3
This is UBI4 documentation
custom_receiver.h
Go to the documentation of this file.
1
/*
2
* main_receiver.h
3
*
4
* Created on: 31 янв. 2023 г.
5
* Author: PC
6
*/
7
8
#ifdef example
9
#ifndef INC_CUSTOM_RECEIVER_H_
10
#define INC_CUSTOM_RECEIVER_H_
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
#include "
UBI_SDK.h
"
17
18
#include "
TransportLevel/main_receiver.h
"
19
20
#include "stdint.h"
21
#include "stdbool.h"
22
23
typedef
enum
{
24
GET_EMG_VALUE = 32,
25
GET_EMG_GAIN,
26
SET_EMG_GAIN
27
}CustomCommand_enum;
28
29
typedef
struct
30
{
31
uint8_t ch1:1;
32
uint8_t ch2:1;
33
uint8_t res: 6;
34
35
uint8_t gain_ch1;
36
uint8_t gain_ch2;
37
38
}__attribute__((__packed__)) emg_set_gain_struct;
39
40
41
void
CustomCommandSelector(
ubi4_bus_protocol_obj_struct
* protocol_str,
void
* pInfo, uint8_t command, uint8_t* buf, uint16_t size);
42
43
44
#ifdef __cplusplus
45
}
46
#endif
47
48
#endif
/* INC_MAIN_RECEIVER_H_ */
49
50
#endif
UBI_SDK.h
main_receiver.h
ubi4_bus_protocol_obj_struct
Definition
a_protocol.h:313
example
SDK
Inc
custom_receiver.h
Generated by
1.13.2