1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-04-21 12:27:27 +03:00

Adding dual channel to scope example, fixing logic and QT source code.

This commit is contained in:
Juan64Bits
2010-04-09 10:39:15 -05:00
parent 168c584b06
commit beca2e0bd3
36 changed files with 220 additions and 717 deletions

View File

@@ -0,0 +1,30 @@
#ifndef ADCW_H
#define ADCW_H
#include "jz_adc_peripheral.h"
#include <stdio.h>
#include <unistd.h>
class ADCw
{
public:
ADCw();
~ADCw(){}
void testADC();
void powerDownADC();
JZ_REG * takeSamplesADC(int CHANNEL);
void setClockDiv(uchar value){ ADC_SPI_CLKDIV = value;}
void setBufferLen(int value){ BUFFER_LEN = value;}
private:
void adcConfig(uchar CMD);
int adcCheckBufferFull();
JZ_REG * ADCBuffer;
uchar ADC_SPI_CLKDIV;
int BUFFER_LEN;
int BUFFER_OFFSET;
};
#endif // ADCW_H