-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAOloopControl_time_param.c
80 lines (53 loc) · 1.97 KB
/
AOloopControl_time_param.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
68
69
70
71
72
73
74
75
76
77
78
79
/**
* @file AOloopControl_time_param.c
* @brief AO loop control - Timing Parameter
*
* REAL TIME COMPUTING ROUTINES
*
* @bug No known bugs.
*
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include "CommandLineInterface/CLIcore.h"
#include "AOloopControl/AOloopControl.h"
#include "AOloopControl_perfTest/AOloopControl_perfTest.h"
#include "00CORE/00CORE.h"
#include "COREMOD_memory/COREMOD_memory.h"
// defined in AOloopControl.c
extern AOLOOPCONTROL_CONF *AOconf; // configuration - this can be an array
// defined in AOloopControl.c
extern AOloopControl_var aoloopcontrol_var;
int_fast8_t AOloopControl_set_loopfrequ(float loopfrequ)
{
if(aoloopcontrol_var.AOloopcontrol_meminit==0)
AOloopControl_InitializeMemory(1);
AOconf[aoloopcontrol_var.LOOPNUMBER].AOtiminginfo.loopfrequ = loopfrequ;
AOloopControl_perfTest_showparams(aoloopcontrol_var.LOOPNUMBER);
return 0;
}
int_fast8_t AOloopControl_set_hardwlatency_frame(float hardwlatency_frame)
{
if(aoloopcontrol_var.AOloopcontrol_meminit==0)
AOloopControl_InitializeMemory(1);
AOconf[aoloopcontrol_var.LOOPNUMBER].AOtiminginfo.hardwlatency_frame = hardwlatency_frame;
AOloopControl_perfTest_showparams(aoloopcontrol_var.LOOPNUMBER);
return 0;
}
int_fast8_t AOloopControl_set_complatency_frame(float complatency_frame)
{
if(aoloopcontrol_var.AOloopcontrol_meminit==0)
AOloopControl_InitializeMemory(1);
AOconf[aoloopcontrol_var.LOOPNUMBER].AOtiminginfo.complatency_frame = complatency_frame;
AOloopControl_perfTest_showparams(aoloopcontrol_var.LOOPNUMBER);
return 0;
}
int_fast8_t AOloopControl_set_wfsmextrlatency_frame(float wfsmextrlatency_frame)
{
if(aoloopcontrol_var.AOloopcontrol_meminit==0)
AOloopControl_InitializeMemory(1);
AOconf[aoloopcontrol_var.LOOPNUMBER].AOtiminginfo.wfsmextrlatency_frame = wfsmextrlatency_frame;
AOloopControl_perfTest_showparams(aoloopcontrol_var.LOOPNUMBER);
return 0;
}