summaryrefslogtreecommitdiff
path: root/src/core/ao_data.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-18 02:54:30 -0700
committerKeith Packard <keithp@keithp.com>2013-05-18 02:54:30 -0700
commit52063c2679752033135fff928c7686e368d2a825 (patch)
tree107c2e87375416463562e7670b771cbd4b156ead /src/core/ao_data.h
parente4385d29fc1b233b3ad56d4af68a175e760c1751 (diff)
altos: ao_data_get is in ao_data.c now, not ao_adc.c
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_data.h')
-rw-r--r--src/core/ao_data.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ao_data.h b/src/core/ao_data.h
index 7e2f85d8..b0f086f8 100644
--- a/src/core/ao_data.h
+++ b/src/core/ao_data.h
@@ -82,6 +82,10 @@ struct ao_data {
#define ao_data_ring_next(n) (((n) + 1) & (AO_DATA_RING - 1))
#define ao_data_ring_prev(n) (((n) - 1) & (AO_DATA_RING - 1))
+/* Get a copy of the last complete sample set */
+void
+ao_data_get(__xdata struct ao_data *packet);
+
extern volatile __xdata struct ao_data ao_data_ring[AO_DATA_RING];
extern volatile __data uint8_t ao_data_head;
extern volatile __data uint8_t ao_data_present;