-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiib_data.h
71 lines (50 loc) · 1.94 KB
/
iib_data.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/******************************************************************************
* Copyright (C) 2017 by LNLS - Brazilian Synchrotron Light Laboratory
*
* Redistribution, modification or use of this software in source or binary
* forms is permitted as long as the files maintain this copyright. LNLS and
* the Brazilian Center for Research in Energy and Materials (CNPEM) are not
* liable for any misuse of this material.
*
*****************************************************************************/
/**
* @file iib_data.h
* @brief Brief description of module
*
* Detailed description
*
* @author allef.silva
* @date 28 de ago de 2018
*
*/
/////////////////////////////////////////////////////////////////////////////////////////////
#ifndef IIB_DATA_H_
#define IIB_DATA_H_
/////////////////////////////////////////////////////////////////////////////////////////////
#include <stdint.h>
#define NUM_MAX_IIB_SIGNALS 32
/////////////////////////////////////////////////////////////////////////////////////////////
typedef volatile struct
{
union
{
volatile uint32_t u32;
volatile uint8_t u8[4];
volatile float f;
} iib_signals[NUM_MAX_IIB_SIGNALS];
} control_framwork_t;
/////////////////////////////////////////////////////////////////////////////////////////////
extern volatile control_framwork_t g_controller_iib;
extern void init_control_framwork(volatile control_framwork_t *p_controller);
/////////////////////////////////////////////////////////////////////////////////////////////
/**
* TODO: Put here your defines. Just what need
* to be accessed by other modules.
*/
/**
* TODO: Put here your functions prototypes. Just what need
* to be accessed by other modules.
*/
/////////////////////////////////////////////////////////////////////////////////////////////
#endif /* IIB_DATA_H_ */
/////////////////////////////////////////////////////////////////////////////////////////////