main_ubi_sdk
v 0.1.3
This is UBI4 documentation
device_info.h
Go to the documentation of this file.
1
/*
2
******************************************************************************
3
* @file device_info.h
4
* @author A.Alborov
5
******************************************************************************
6
*/
7
8
/*
9
10
#ifdef example
11
12
#ifndef INC_DEVICE_INFO_H_
13
#define INC_DEVICE_INFO_H_
14
15
#ifdef __cplusplus
16
extern "C" {
17
#endif
18
19
#include "stdint.h"
20
#include "stdbool.h"
21
#include "Data/data_table.h"
22
#include "Data/device_info_structs.h"
23
#include "Data/base_device_info.h"
24
#include "Devices/base_virtual_device.h"
25
#include "Data/base_parameter.h"
26
27
28
29
typedef enum {
30
DSE_BOOTLOADER_INFO_TYPE,
31
DSE_FW_INFO_TYPE,
32
DSE_DEVICE_INFO_TYPE,
33
DSE_BOARD_INFO_TYPE,
34
DSE_PRODUCT_INFO_TYPE,
35
DSE_SERVICE_INFO,
36
DSE_SYSTEM_DEVICES,
37
DSE_REO_SETTINGS,
38
DSE_NUM
39
}device_slots_enum ;
40
41
42
43
44
typedef enum {
45
PCE_REO_SETTINGS = 0,
46
PCE_REO_SIGNALS_0_5,
47
PCE_REO_SIGNALS_6_11,
48
PCE_REO_SIGNALS_12_17,
49
PCE_REO_SIGNALS_18_23,
50
PCE_NUM
51
}this_device_parametrs_code_enum;
52
53
54
typedef struct{
55
uint8_t REO_ch_settings_byte_0;
56
uint8_t REO_ch_settings_byte_N;
57
}__attribute__((__packed__))ROM_REO_ch_settings_struct;
58
59
60
typedef struct{
61
uint8_t REO_settings_byte_0;
62
uint8_t REO_settings_byte_N;
63
64
ROM_REO_ch_settings_struct REO_settings[N];
65
66
}__attribute__((__packed__))ROM_REO_settings_struct;
67
68
69
typedef struct{
70
uint8_t REO_settings_byte_0;
71
uint8_t REO_settings_byte_N;
72
73
}__attribute__((__packed__))USER_REO_settings_struct;
74
75
76
77
78
extern base_parameter_info_struct this_device_parametrs[PCE_NUM];
79
80
extern base_device_information_struct* device_info;
81
82
void init_device_info();
83
84
85
86
87
88
#ifdef __cplusplus
89
}
90
#endif
91
92
#endif /* INC_DEVICE_INFO_H_ */
93
94
95
96
#endif
97
example
device_info.h
Generated by
1.13.2