LMA
Lightweight Metrology for AC
Loading...
Searching...
No Matches
LMA_Port.h
Go to the documentation of this file.
1
17
18#ifndef _LMA_PORT_H
19#define _LMA_PORT_H
20
21#include "LMA_Types.h"
22
26#define LMA_CRITICAL_SECTION_PREPARE()
27
31#define LMA_CRITICAL_SECTION_ENTER()
32
36#define LMA_CRITICAL_SECTION_EXIT()
37
47void LMA_AccPhaseRun(LMA_Phase *const p_phase);
48
58void LMA_AccPhaseReset(LMA_Phase *const p_phase);
59
66void LMA_AccPhaseLoad(LMA_Phase *const p_phase);
67
68/******************
69 * DRIVERS
70 ******************/
74void LMA_ADC_Init(void);
75
80void LMA_ADC_Start(void);
81
86void LMA_ADC_Stop(void);
87
91void LMA_TMR_Init(void);
92
97void LMA_TMR_Start(void);
98
103void LMA_TMR_Stop(void);
104
108void LMA_RTC_Init(void);
109
114void LMA_RTC_Start(void);
115
120void LMA_RTC_Stop(void);
121
125void LMA_IMP_ActiveOn(void);
126
130void LMA_IMP_ActiveOff(void);
131
135void LMA_IMP_ReactiveOn(void);
136
140void LMA_IMP_ReactiveOff(void);
141
145void LMA_IMP_ApparentOn(void);
146
150void LMA_IMP_ApparentOff(void);
151
153
154#endif /* _LMA_PORT_H */
Type definitions for LMA.
void LMA_TMR_Start(void)
Starts the TMR running.
Definition LMA_Port.c:80
void LMA_ADC_Start(void)
Starts the ADC running.
Definition LMA_Port.c:65
void LMA_TMR_Stop(void)
Stops the TMR running.
Definition LMA_Port.c:85
void LMA_AccPhaseReset(LMA_Phase *const p_phase)
handles sample reset between cycles for a phase
Definition LMA_Port.c:31
void LMA_RTC_Init(void)
Initialises RTC.
Definition LMA_Port.c:90
void LMA_RTC_Start(void)
Starts the RTC running.
Definition LMA_Port.c:95
void LMA_ADC_Stop(void)
Stops the ADC running.
Definition LMA_Port.c:70
void LMA_AccPhaseLoad(LMA_Phase *const p_phase)
Move accumulators from temp to snapshot.
Definition LMA_Port.c:47
void LMA_TMR_Init(void)
Initialises TMR.
Definition LMA_Port.c:75
void LMA_IMP_ActiveOff(void)
Callback to turn off active impulse LED.
Definition LMA_Port.c:110
void LMA_IMP_ReactiveOn(void)
Callback to turn on reactive impulse LED.
Definition LMA_Port.c:115
void LMA_IMP_ApparentOn(void)
Callback to turn on apparent impulse LED.
Definition LMA_Port.c:125
void LMA_AccPhaseRun(LMA_Phase *const p_phase)
handles sample accumulation for a phase
Definition LMA_Port.c:15
void LMA_IMP_ActiveOn(void)
Callback to turn on active impulse LED.
Definition LMA_Port.c:105
void LMA_IMP_ApparentOff(void)
Callback to turn off apparent impulse LED.
Definition LMA_Port.c:130
void LMA_RTC_Stop(void)
Stops the RTC running.
Definition LMA_Port.c:100
void LMA_IMP_ReactiveOff(void)
Callback to turn off reactive impulse LED.
Definition LMA_Port.c:120
void LMA_ADC_Init(void)
Initialises ADC.
Definition LMA_Port.c:60
Phase data.
Definition LMA_Types.h:271