-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiib_data.c
67 lines (55 loc) · 1.87 KB
/
iib_data.c
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
/******************************************************************************
* 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.c
* @brief Brief description of module
*
* Detailed description
*
* @author allef.silva
* @date 28/08/2018
*
*/
/////////////////////////////////////////////////////////////////////////////////////////////
/**
* TODO: Put here your includes
*/
#include "iib_data.h"
/**
* TODO: Put here your defines. Just what is local. If you don't
* need to access it from other module, consider use a constant (const)
*/
/**
* TODO: Put here your constants and variables. Always use static for
* private members.
*/
/////////////////////////////////////////////////////////////////////////////////////////////
volatile control_framwork_t g_controller_iib;
/**
* TODO: Put here your function prototypes for private functions. Use
* static in declaration.
*/
/////////////////////////////////////////////////////////////////////////////////////////////
/**
* TODO: Put here the implementation for your public functions.
*/
void init_control_framwork(volatile control_framwork_t *p_controller)
{
uint16_t i;
for (i = 0; i < NUM_MAX_IIB_SIGNALS; i++) {
p_controller->iib_signals[i].f = 0.0;
p_controller->iib_itlk[i].u32 = 0;
p_controller->iib_alarm[i].u32 = 0;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////
/**
* TODO: Put here the implementation for your private functions.
*/