AVR1631 - Energy Meter Reference Design with ATxmega32A4
Rev 1.0
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
meter_calibration.h
Go to the documentation of this file.
1
/* This file has been prepared for Doxygen automatic documentation generation.*/
48
#ifndef METER_CALIBRATION_H
49
#define METER_CALIBRATION_H
50
51
53
#define USART USARTC1
54
56
#define USART_PORT PORTC
57
59
#define UART_BSCALE_VALUE 0
60
61
67
#define UART_BSEL_VALUE 51
68
70
#define UART_CHARACTER_SIZE USART_CHSIZE_8BIT_gc
71
73
#define UART_PARITY_MODE_SIZE USART_PMODE_DISABLED_gc
74
76
#define OMEGA (float)0.07853982
77
78
extern
uint8_t rx_buffer[10];
79
80
81
void
calibrate_current
(
void
);
82
void
calibrate_no_load
(
void
);
83
void
calibrate_phase
(
void
);
84
void
calibrate_time
(
void
);
85
void
calibrate_time_date
(
void
);
86
void
calibrate_date
(
void
);
87
void
calibrate_voltage
(
void
);
88
void
calibrate_watt
(
void
);
89
void
phase_calc
(
float
, uint8_t);
90
void
read_tx_array
(uint8_t cnt);
91
void
uart_getdata
(uint8_t );
92
void
uart_print
(
void
);
93
94
95
#endif
meter_calibration.h
Generated on Fri Sep 14 2012 16:28:34 for AVR1631 - Energy Meter Reference Design with ATxmega32A4 by
1.8.1.2