BusRepeater_NXP_Arduino 1.0.1
Temperature sensor device operation sample code for Arduino
Loading...
Searching...
No Matches
PCA9617ADP_ARD_LDO.h
Go to the documentation of this file.
1
8#ifndef ARDUINO_PCA9617ADP_ARD_LDO_H
9#define ARDUINO_PCA9617ADP_ARD_LDO_H
10
11#include <Arduino.h>
12#include <stdint.h>
13
14#include <I2C_device.h>
15
25public:
26 LDO_control( int s0, int s1, int en );
27 void set( int v );
28 virtual float voltage( void ) = 0;
29
30protected:
32
33private:
34 int _s0;
35 int _s1;
36 int _en;
37};
38
46class LDO1 : public LDO_control
47{
48public:
49 LDO1();
50
51 float voltage( void );
52
61
62private:
63 enum pin_num {
64 EN_B = 3,
66 S0
67 };
68 static float voltage_values[ VOLTAGES ];
69};
70
78class LDO2 : public LDO_control
79{
80public:
81 LDO2();
82
83 float voltage( void );
84
92
93private:
94 enum pin_num {
95 S1 = 1,
97 EN_B = 0xFF
98 };
99 static float voltage_values[ VOLTAGES ];
100};
101
102#endif // ARDUINO_PCA9617ADP_ARD_LDO_H
float voltage(void)
static float voltage_values[VOLTAGES]
static float voltage_values[VOLTAGES]
float voltage(void)
virtual float voltage(void)=0
LDO_control(int s0, int s1, int en)