DAC revised
This commit is contained in:
parent
2298c2a783
commit
dfa761ca08
5 changed files with 15 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue