Propeller Activity Board A/D Signal Library  v0.8
Take AC signal measurements with A/D 0, 1, 2, and/or 3.
adcACpropab.h
Go to the documentation of this file.
1 
14 #ifndef PROPAB_ADC_AC_H
15 #define PROPAB_ADC_AC_H
16 
17 #if defined(__cplusplus)
18 extern "C" {
19 #endif
20 
21 #include <stdint.h>
22 
26 typedef struct AdcMailbox
27 {
28  unsigned int* addr;
29  int dout;
30  int din;
31  int clk;
32  int cs;
33  int mask;
34  int stidx;
35 } volatile AdcMailbox_st;
36 
40 typedef struct AdcBox
41 {
42  // uint32_t stack[ADCBOX_STACK];
43  AdcMailbox_st mailbox;
44 } volatile AdcBox_st;
45 
118 int adc_start(int doPin, int diPin, int clkPin, int csPin,
119  int pattern, int* arrayAddr);
120 
124 void adc_stop(void);
125 
126 
127 #if defined(__cplusplus)
128 }
129 #endif
130 /* __cplusplus */
131 #endif
132 /* PROPAB_ADC_AC_H */
133