BusRepeater_NXP_Arduino 1.0.4
PCA9617ADP-ARD_demo code for Arduino
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Pca9617adp_Ard_LDO Class Reference

#include <PCA9617ADP_ARD_LDO.h>

Inheritance diagram for Pca9617adp_Ard_LDO:
Pca9617adp_Ard_LDO1 Pca9617adp_Ard_LDO2

Public Member Functions

 Pca9617adp_Ard_LDO (int ldo_number, int pin0, int pin1, int pin2, float *v_v)
 
 ~Pca9617adp_Ard_LDO ()
 
float voltage (void)
 
float voltage (int v)
 

Static Public Attributes

static constexpr int v1_variation = 5
 
static constexpr int v2_variation = 4
 
static float v1_values [v1_variation] = { 1.8, 2.5, 3.3, 4.96, 0.8 }
 
static float v2_values [v2_variation] = { 2.5, 3.0, 3.3, 4.96 }
 

Private Attributes

int num
 
float * v_values
 

Detailed Description

I2C multiplexer and switch operation library for Arduino

Author
Tedd OKANO

Released under the MIT license License Pca9617adp_Ard_LDO class

Definition at line 21 of file PCA9617ADP_ARD_LDO.h.

Constructor & Destructor Documentation

◆ Pca9617adp_Ard_LDO()

Pca9617adp_Ard_LDO::Pca9617adp_Ard_LDO ( int ldo_number,
int pin0,
int pin1,
int pin2,
float * v_v )

Create a Pca9617adp_Ard_LDO instance with specified pins

Parameters
ldo_number1 or 2 to specify the LDO

Definition at line 3 of file PCA9617ADP_ARD_LDO.cpp.

◆ ~Pca9617adp_Ard_LDO()

Pca9617adp_Ard_LDO::~Pca9617adp_Ard_LDO ( )

Definition at line 8 of file PCA9617ADP_ARD_LDO.cpp.

Member Function Documentation

◆ voltage() [1/2]

float Pca9617adp_Ard_LDO::voltage ( int v)

Get Pca9617adp_Ard_LDO output voltage

Parameters
vsetting value but no output will be changed
Returns
voltage

Definition at line 15 of file PCA9617ADP_ARD_LDO.cpp.

◆ voltage() [2/2]

float Pca9617adp_Ard_LDO::voltage ( void )

Get Pca9617adp_Ard_LDO output voltage

Returns
voltage

Definition at line 10 of file PCA9617ADP_ARD_LDO.cpp.

Member Data Documentation

◆ num

int Pca9617adp_Ard_LDO::num
private

Definition at line 52 of file PCA9617ADP_ARD_LDO.h.

◆ v1_values

float Pca9617adp_Ard_LDO::v1_values = { 1.8, 2.5, 3.3, 4.96, 0.8 }
static

Definition at line 28 of file PCA9617ADP_ARD_LDO.h.

◆ v1_variation

constexpr int Pca9617adp_Ard_LDO::v1_variation = 5
staticconstexpr

Definition at line 45 of file PCA9617ADP_ARD_LDO.h.

◆ v2_values

float Pca9617adp_Ard_LDO::v2_values = { 2.5, 3.0, 3.3, 4.96 }
static

Definition at line 29 of file PCA9617ADP_ARD_LDO.h.

◆ v2_variation

constexpr int Pca9617adp_Ard_LDO::v2_variation = 4
staticconstexpr

Definition at line 46 of file PCA9617ADP_ARD_LDO.h.

◆ v_values

float* Pca9617adp_Ard_LDO::v_values
private

Definition at line 53 of file PCA9617ADP_ARD_LDO.h.

Referenced by voltage(), and voltage().


The documentation for this class was generated from the following files: