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 
24 #ifndef PROPAB_ADC_AC_H
25 #define PROPAB_ADC_AC_H
26 
27 #if defined(__cplusplus)
28 extern "C" {
29 #endif
30 
31 #include <stdint.h>
32 
36 typedef struct AdcMailbox
37 {
38  unsigned int* addr;
39  int dout;
40  int din;
41  int clk;
42  int cs;
43  int mask;
44  int stidx;
45 } volatile AdcMailbox_st;
46 
50 typedef struct AdcBox
51 {
52  // uint32_t stack[ADCBOX_STACK];
53  AdcMailbox_st mailbox;
54 } volatile AdcBox_st;
55 
128 int adc_start(int doPin, int diPin, int clkPin, int csPin,
129  int pattern, int* arrayAddr);
130 
134 void adc_stop(void);
135 
136 
137 #if defined(__cplusplus)
138 }
139 #endif
140 /* __cplusplus */
141 #endif
142 /* PROPAB_ADC_AC_H */
143