brazos-trapezoidal
drivers_sim
Beagle_prm.h
1
/**********************************************************************************************************************
2
* @file Beagle_prm.h
3
* @brief Beagle module sends high speed data through SPI port with DMA operation.
4
*
5
* @details The protocol does not implement handshake.
6
*
7
*---------------------------------------------------------------------------------------------------------------------
8
*------------------- Copyright 2013. Whirlpool Corporation. All rights reserved - CONFIDENTIAL ---------------------
9
*---------------------------------------------------------------------------------------------------------------------
10
*/
11
12
#ifndef BEAGLE_PRM_H_
13
#define BEAGLE_PRM_H_
14
15
#define BEAGLE_PORT PORT2
16
#define BEAGLE_PIN _02_Pm1_OUTPUT_1
//1
17
#define BEAGLE_SPI_PORT SPI0
18
#define BEAGLE_BUFFER_SIZE 5
//8/*12*/ // Number of elements sized in 32-bit
19
#define BEAGLE_SKIP_CALLS 2
// Number of skipping calls when sending (TX) beagle data
20
21
22
extern
float
Beagle_Vector[BEAGLE_BUFFER_SIZE];
23
#define BEAGLE_VECTOR_SELECTED Beagle_Vector
24
extern
unsigned
short
Beagle_Counter;
25
/*
26
* Definitions of the variables to be outputted to beagle
27
* */
28
29
// CAPRO SETTINGS
30
#define BEAGLE_CHANNEL_0 0.0f;
//(float)(Beagle_Counter);
31
#define BEAGLE_CHANNEL_1 0.0f;
//(float)Aprofile_Util__IsSamplingActive()*2000;
32
#define BEAGLE_CHANNEL_2 0.0f;
//IQ_TO_RPM_F(ctrlParm.omegaRef);
33
#define BEAGLE_CHANNEL_3 0.0f;
//IQ_TO_RPM_F(ctrlParm.omega);
34
#define BEAGLE_CHANNEL_4 0.0f;
//(float)(Speed_Filter_BPF_4K);
35
#define BEAGLE_CHANNEL_5 0.0f;
//IQ_TO_TORQUE_F(ctrlParm.te) * 1000.0f;
36
#define BEAGLE_CHANNEL_6 0.0f;
//(float)(Torque_Filter_BPF_4K * 1000.0f);
37
#define BEAGLE_CHANNEL_7 0.0f;
//IQ_TO_TORQUE_F(ctrlParm.TeRef) * 1000.0f;
38
//
39
//#define BEAGLE_CHANNEL_0 SRLsi__GetVrms();
40
//#define BEAGLE_CHANNEL_1 SRLsi__GetDCBus();
41
//#define BEAGLE_CHANNEL_2 AppStateManager__ITool__GetRunningState();
42
//#define BEAGLE_CHANNEL_3 SRDoorLock__ITool_InternalState();
43
//#define BEAGLE_CHANNEL_4 SRDoorLock__GetFbkState();
44
//#define BEAGLE_CHANNEL_5 AppState_Execution__iTool_GetState();
45
//#define BEAGLE_CHANNEL_6 IQ_TO_RPM_F(ctrlParm.omega);
46
//#define BEAGLE_CHANNEL_7 (float)(Beagle_Counter);
47
48
//#define BEAGLE_CHANNEL_0 SR_Pump__GetPumpState();
49
//#define BEAGLE_CHANNEL_1 SR_MR_Retry_Counter;
50
//#define BEAGLE_CHANNEL_2 SR_Pump_FB;
51
//#define BEAGLE_CHANNEL_3 SR_MainRelay_FB;
52
//#define BEAGLE_CHANNEL_4 SR_MR_Tested;
53
//#define BEAGLE_CHANNEL_5 DrainPump__MRGetActivationStatus();
54
//#define BEAGLE_CHANNEL_6 DrainPump__GetMRSettingState();
55
//#define BEAGLE_CHANNEL_7 AppStateManager__ITool__GetRunningState();
56
57
58
59
#endif
// BEAGLE_PRM_H_
Generated by
1.9.3