DAC revised
This commit is contained in:
parent
2298c2a783
commit
dfa761ca08
Binary file not shown.
|
@ -483,6 +483,6 @@
|
|||
:101E2000FF1F0024001C0BBE0790F691E02D0994C3
|
||||
:041E3000F894FFCF54
|
||||
:101E34000102010301020201010103030209626FAD
|
||||
:101E4400617264696E666F2E680031333A33303ADA
|
||||
:101E54003339004170722020332032303139000090
|
||||
:101E4400617264696E666F2E680031333A33343AD6
|
||||
:101E54003535004170722020332032303139000092
|
||||
:00000001FF
|
||||
|
|
|
@ -60,7 +60,7 @@ void SPI::transfer(SPIADR adr) volatile
|
|||
handleTransfer();
|
||||
}
|
||||
|
||||
void SPI::wait() volatile
|
||||
void SPI::wait() const volatile
|
||||
{
|
||||
while(active);
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
* Blockiert, bis laufende SPI Vorgänge beendet sind
|
||||
* Ist SPI gerade inaktiv, wird die Methode sofort beendet
|
||||
*/
|
||||
void wait(void) volatile;
|
||||
void wait(void) const volatile;
|
||||
|
||||
/**
|
||||
* SPI Puffer Größe
|
||||
|
|
|
@ -6,12 +6,22 @@
|
|||
class TLC5615
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Erzeugt ein neues DAC Objekt mit fester Referenz zur SPI Verbindung
|
||||
* und fester SPI-'Adresse'
|
||||
*/
|
||||
TLC5615(volatile SPI&, SPIADR adr);
|
||||
|
||||
/**
|
||||
* Setzt den 10 Bit Wert dieses DACs via SPI
|
||||
*/
|
||||
void setValue(uint16_t) const volatile;
|
||||
|
||||
|
||||
private:
|
||||
// Referenz zur SPI Verbindung
|
||||
volatile SPI& spi;
|
||||
|
||||
// SPI-'Adresse' dieses DACs
|
||||
const SPIADR adr;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue