File tree 2 files changed +17
-2
lines changed 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,28 @@ Tle94112Ino::Tle94112Ino(void):Tle94112()
25
25
}
26
26
27
27
/* *
28
- * @brief constructor with individual pin assignment
28
+ * @brief constructor with individual pin assignment for CS pin
29
29
*
30
- * @param csPin pin number of the CS pin
30
+ * @param csPin pin number of the CS (chip select) pin
31
31
*/
32
32
Tle94112Ino::Tle94112Ino (uint8_t csPin):Tle94112()
33
33
{
34
34
Tle94112::en = new GPIOIno ( TLE94112_PIN_EN, OUTPUT, GPIOIno::POSITIVE );
35
35
Tle94112::cs = new GPIOIno ( csPin, OUTPUT, GPIOIno::POSITIVE );
36
36
Tle94112::timer = new TimerIno ();
37
37
Tle94112::sBus = new SPICIno ();
38
+ }
39
+
40
+ /* *
41
+ * @brief constructor with individual pin assignment for CS and EN pin.
42
+ *
43
+ * @param csPin pin number of the CS (chip select) pin
44
+ * @param enPin pin number of the EN (enable) pin
45
+ */
46
+ Tle94112Ino::Tle94112Ino (uint8_t csPin, uint8_t enPin):Tle94112()
47
+ {
48
+ Tle94112::en = new GPIOIno ( enPin, OUTPUT, GPIOIno::POSITIVE );
49
+ Tle94112::cs = new GPIOIno ( csPin, OUTPUT, GPIOIno::POSITIVE );
50
+ Tle94112::timer = new TimerIno ();
51
+ Tle94112::sBus = new SPICIno ();
38
52
}
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class Tle94112Ino: virtual public Tle94112
26
26
public:
27
27
Tle94112Ino (void );
28
28
Tle94112Ino (uint8_t csPin);
29
+ Tle94112Ino (uint8_t csPin, uint8_t enPin);
29
30
};
30
31
/* * @} */
31
32
You can’t perform that action at this time.
0 commit comments