Multi Half-Bridge  4.0.0
Library of Infineon's Multi Half-Bridge IC controllers family
tle94112-rpi.hpp
Go to the documentation of this file.
1 
9 #ifndef TLE94112_RPI_HPP_
10 #define TLE94112_RPI_HPP_
11 
12 #include "tle94112.hpp"
13 #include <bcm2835.h>
14 
20 class Tle94112Rpi: virtual public Tle94112
21 {
22  public:
23  Tle94112Rpi(void);
24  Tle94112Rpi(uint8_t csPin);
25 
30  enum TlePinCS{
31  TLE94112_PIN_CS0 = RPI_V2_GPIO_P1_24,
32  TLE94112_PIN_CS1 = RPI_V2_GPIO_P1_26,
33  TLE94112_PIN_CS2 = RPI_V2_GPIO_P1_22,
34  TLE94112_PIN_CS3 = RPI_V2_GPIO_P1_15,
35  TLE94112_PIN_EN = RPI_V2_GPIO_P1_37
36  };
37 };
40 #endif
Tle94112Rpi(void)
Construct a new Tle94112Rpi::Tle94112Rpi object with default pin assignment.
Definition: tle94112-rpi.cpp:20
TlePinCS
This enum is used to expose the CS-Pins of the Raspberry-Pi to the Pybind11 wrapper.
Definition: tle94112-rpi.hpp:30
@ TLE94112_PIN_CS3
Definition: tle94112-rpi.hpp:34
@ TLE94112_PIN_CS0
Definition: tle94112-rpi.hpp:31
@ TLE94112_PIN_EN
Definition: tle94112-rpi.hpp:35
@ TLE94112_PIN_CS2
Definition: tle94112-rpi.hpp:33
@ TLE94112_PIN_CS1
Definition: tle94112-rpi.hpp:32
Definition: tle94112-rpi.hpp:21
represents a basic TLE94112
Definition: tle94112.hpp:67
TLE94112 Core API.