Multi Half-Bridge  4.0.0
Library of Infineon's Multi Half-Bridge IC controllers family
gpio-mtb.hpp
Go to the documentation of this file.
1 
9 #ifndef GPIO_MTB_HPP_
10 #define GPIO_MTB_HPP_
11 
12 #include <stdint.h>
13 #include "cyhal_system.h"
14 #include "cyhal_gpio.h"
15 #include "gpio.hpp"
16 
17 using namespace tle94112;
18 
27 class GPIOMtb : virtual public GPIOC
28 {
29  private:
30  cyhal_gpio_t pin;
31  cyhal_gpio_direction_t dir;
32  cyhal_gpio_drive_mode_t driveMode;
33  VLogic_t logic;
35  public:
36  static const cyhal_gpio_t unusedPin = CYHAL_NC_PIN_VALUE;
38  GPIOMtb (cyhal_gpio_t pin, cyhal_gpio_direction_t dir, cyhal_gpio_drive_mode_t driveMode, VLogic_t logic);
39  ~GPIOMtb ();
40  Error_t init ();
41  Error_t deinit ();
42  VLevel_t read ();
43  Error_t write (VLevel_t level);
44  Error_t enable ();
45  Error_t disable ();
46 };
47 
50 #endif
TLE94112 GPIO Platform Abstraction Layer.
ModusToolbox GPIO wrapper class.
Definition: gpio-mtb.hpp:28
VLevel_t
Definition: gpio.hpp:43
VLogic_t
Definition: gpio.hpp:54
Definition: gpio.hpp:24
Error_t
Definition: tle94112-types.hpp:26
Definition: tle94112-types.hpp:14