main_ubi_sdk v 0.1.3
This is UBI4 documentation
a_protocol_struct.h
Go to the documentation of this file.
1/*
2 ******************************************************************************
3 * @file a_protocol_struct.h
4 * @author A.Alborov
5 ******************************************************************************
6 */
7
8#ifndef INC_A_PROTOCOL_STRUCT_H_
9#define INC_A_PROTOCOL_STRUCT_H_
10
11
12
13#include "stdint.h"
14#include "stdbool.h"
15
16
17typedef struct
18{
19 void* pack_info;
20 uint8_t command;
22// bool wait_answer; // [OPTIMIZATION POSSIBLE] объеденить флаги в один байт
23 uint8_t* data_buf;
24 uint16_t size;
26
27
28#endif /* INC_A_PROTOCOL_STRUCT_H_ */
Definition a_protocol_struct.h:18
uint8_t command
Definition a_protocol_struct.h:20
uint8_t * data_buf
Definition a_protocol_struct.h:23
void * pack_info
Definition a_protocol_struct.h:19
uint16_t size
Definition a_protocol_struct.h:24
bool request_type
Definition a_protocol_struct.h:21