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