doc update
This commit is contained in:
parent
22c750cc8c
commit
5d7407aded
56 changed files with 131 additions and 3889 deletions
|
@ -11,7 +11,7 @@ int main()
|
|||
B15F& drv = B15F::getInstance();
|
||||
PlottyFile pf;
|
||||
|
||||
uint16_t ba[1024];
|
||||
uint16_t buf[1024];
|
||||
|
||||
const uint16_t sample_count = 1024;
|
||||
const uint16_t delta = 1;
|
||||
|
@ -30,12 +30,12 @@ int main()
|
|||
uint8_t curve = 0;
|
||||
|
||||
|
||||
drv.analogSequence(0, &ba[0], 0, 1, nullptr, 0, 0, delta, sample_count);
|
||||
drv.analogSequence(0, &buf[0], 0, 1, nullptr, 0, 0, delta, sample_count);
|
||||
|
||||
for(uint16_t x = 0; x < sample_count * delta; x += delta)
|
||||
{
|
||||
std::cout << x << " - " << ba[x] << std::endl;
|
||||
pf.addDot(Dot(x, ba[x], curve));
|
||||
std::cout << x << " - " << buf[x] << std::endl;
|
||||
pf.addDot(Dot(x, buf[x], curve));
|
||||
}
|
||||
|
||||
// speichern und plotty starten
|
||||
|
|
|
@ -32,12 +32,6 @@ public:
|
|||
* Grundfunktionen des B15F Treibers *
|
||||
*************************************/
|
||||
|
||||
/**
|
||||
* Initialisiert und testet die Verbindung zum B15
|
||||
* \throws DriverException
|
||||
*/
|
||||
void init(void);
|
||||
|
||||
/**
|
||||
* Versucht die Verbindung zum B15 wiederherzustellen
|
||||
* \throws DriverException
|
||||
|
@ -182,7 +176,6 @@ public:
|
|||
uint16_t analogRead(uint8_t channel);
|
||||
|
||||
/**
|
||||
* \brief Komplexe Analoge Sequenz
|
||||
* DAC 0 wird auf den Startwert gesetzt und dann schrittweise um Delta inkrementiert.
|
||||
* Für jeden eingestelleten DAC-Wert werden zwei ADCs (channel_a und channel_b) angesprochen und die Werte übermittelt.
|
||||
* Die Werte werden in buffer_a für Kanal a und buffer_b für Kanal b gespeichert.
|
||||
|
@ -212,6 +205,12 @@ public:
|
|||
constexpr static uint32_t BAUDRATE = 57600;
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* Initialisiert und testet die Verbindung zum B15
|
||||
* \throws DriverException
|
||||
*/
|
||||
void init(void);
|
||||
|
||||
USART usart;
|
||||
static B15F* instance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue