spandsp 3.0.0
private/power_meter.h
1/*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * private/power_meter.h
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2003 Steve Underwood
9 *
10 * All rights reserved.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 2.1,
14 * as published by the Free Software Foundation.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 */
25
26#if !defined(_SPANDSP_PRIVATE_POWER_METER_H_)
27#define _SPANDSP_PRIVATE_POWER_METER_H_
28
29/*!
30 Power meter descriptor. This defines the working state for a
31 single instance of a power measurement device.
32*/
34{
35 /*! The shift factor, which controls the damping of the power meter. */
36 int shift;
37
38 /*! The current power reading. */
39 int32_t reading;
40};
41
43{
44 power_meter_t short_term;
45 power_meter_t medium_term;
46 int signal_present;
47 int32_t surge;
48 int32_t sag;
49 int32_t min;
50};
51
52#endif
53/*- End of file ------------------------------------------------------------*/
Definition private/power_meter.h:34
int32_t reading
Definition private/power_meter.h:39
int shift
Definition private/power_meter.h:36
Definition private/power_meter.h:43