# namespace `power-extender-raspberrypi::pypowerextender::ADS1115_Registers` <a id="namespacepower-extender-raspberrypi_1_1pypowerextender_1_1ADS1115__Registers"></a>

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------
`class `[`power-extender-raspberrypi::pypowerextender::ADS1115_Registers::ADS1115_DR`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1ADS1115__Registers_1_1ADS1115__DR) | 
`class `[`power-extender-raspberrypi::pypowerextender::ADS1115_Registers::ADS1115_PGA`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1ADS1115__Registers_1_1ADS1115__PGA) | 

# class `power-extender-raspberrypi::pypowerextender::ADS1115_Registers::ADS1115_DR` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1ADS1115__Registers_1_1ADS1115__DR"></a>

```
class power-extender-raspberrypi::pypowerextender::ADS1115_Registers::ADS1115_DR
  : public IntEnum
```  

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------

## Members

# class `power-extender-raspberrypi::pypowerextender::ADS1115_Registers::ADS1115_PGA` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1ADS1115__Registers_1_1ADS1115__PGA"></a>

```
class power-extender-raspberrypi::pypowerextender::ADS1115_Registers::ADS1115_PGA
  : public IntEnum
```  

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------

## Members

# namespace `power-extender-raspberrypi::pypowerextender::PowerExtender` <a id="namespacepower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender"></a>

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------
`class `[`power-extender-raspberrypi::pypowerextender::PowerExtender::PEPIN_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__A) | Existing analog pins.
`class `[`power-extender-raspberrypi::pypowerextender::PowerExtender::PEPIN_D_IN`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__IN) | Existing GPIO pins for input.
`class `[`power-extender-raspberrypi::pypowerextender::PowerExtender::PEPIN_D_OUT`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__OUT) | Existing GPIO pins for output.
`class `[`power-extender-raspberrypi::pypowerextender::PowerExtender::PEPORT_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPORT__A) | Existing analog ports (separate ADC ICs)
`class `[`power-extender-raspberrypi::pypowerextender::PowerExtender::PINMODE`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINMODE) | Pinmode definitions.
`class `[`power-extender-raspberrypi::pypowerextender::PowerExtender::PINSTATE`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINSTATE) | Pinstate definitions.
`class `[`power-extender-raspberrypi::pypowerextender::PowerExtender::PowerExtender`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender) | Class to interface the power-extender.

# class `power-extender-raspberrypi::pypowerextender::PowerExtender::PEPIN_A` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__A"></a>

```
class power-extender-raspberrypi::pypowerextender::PowerExtender::PEPIN_A
  : public IntEnum
```  

Existing analog pins.

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------

## Members

# class `power-extender-raspberrypi::pypowerextender::PowerExtender::PEPIN_D_IN` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__IN"></a>

```
class power-extender-raspberrypi::pypowerextender::PowerExtender::PEPIN_D_IN
  : public IntEnum
```  

Existing GPIO pins for input.

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------

## Members

# class `power-extender-raspberrypi::pypowerextender::PowerExtender::PEPIN_D_OUT` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__OUT"></a>

```
class power-extender-raspberrypi::pypowerextender::PowerExtender::PEPIN_D_OUT
  : public IntEnum
```  

Existing GPIO pins for output.

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------

## Members

# class `power-extender-raspberrypi::pypowerextender::PowerExtender::PEPORT_A` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPORT__A"></a>

```
class power-extender-raspberrypi::pypowerextender::PowerExtender::PEPORT_A
  : public IntEnum
```  

Existing analog ports (separate ADC ICs)

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------

## Members

# class `power-extender-raspberrypi::pypowerextender::PowerExtender::PINMODE` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINMODE"></a>

```
class power-extender-raspberrypi::pypowerextender::PowerExtender::PINMODE
  : public IntEnum
```  

Pinmode definitions.

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------

## Members

# class `power-extender-raspberrypi::pypowerextender::PowerExtender::PINSTATE` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINSTATE"></a>

```
class power-extender-raspberrypi::pypowerextender::PowerExtender::PINSTATE
  : public IntEnum
```  

Pinstate definitions.

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------

## Members

# class `power-extender-raspberrypi::pypowerextender::PowerExtender::PowerExtender` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender"></a>

Class to interface the power-extender.

## Summary

 Members                        | Descriptions                                
--------------------------------|---------------------------------------------
`public def `[`__init__`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1ad7f74c05e4f81fff44294663b4eea909)`(self)` | Construct a new Power Extender object.
`public def `[`begin`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a77635c29b3e975602f4de08570c5ab66)`(self,int bus)` | Begin I2C communication.
`public def `[`setPinMode`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a28935d2fa3f4e8e0b9178cc93a20c7da)`(self,`[`PEPIN_D_IN`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__IN)` pin,`[`PINMODE`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINMODE)` mode)` | Configure the IO direction of a GPIO pin.
`public def `[`digitalWrite`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1ab420235d8b39cf3ac0c35061d8b65c75)`(self,`[`PEPIN_D_OUT`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__OUT)` pin,`[`PINSTATE`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINSTATE)` val)` | Change the state of a GPIO output pin.
`public `[`PINSTATE`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINSTATE)` `[`digitalRead`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a331cdf53cb1d2a52321073b417b7b7f9)`(self,`[`PEPIN_D_IN`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__IN)` pin)` | Reads the state of a digital input pin.
`public def `[`setAnalogDataRate`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1afaa7bde6af7c3c3387ab650a0db28946)`(self,`[`PEPORT_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPORT__A)` port,`[`ADS1115_Registers.ADS1115_DR`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1ADS1115__Registers_1_1ADS1115__DR)` data_rate)` | Set the data rate for a whole ADC.
`public def `[`setAnalogGain`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1aebfcff18640a7b7a253666d899e245f7)`(self,`[`PEPORT_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPORT__A)` port,`[`ADS1115_Registers.ADS1115_PGA`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1ADS1115__Registers_1_1ADS1115__PGA)` gain)` | Set the gain for a whole ADC.
`public float `[`analogReadAsVoltage`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a7926271bf71a0f24b47373fe16b307e5)`(self,`[`PEPIN_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__A)` pin)` | Reads from an ADC, convert to input voltage.
`public float `[`analogReadAsCurrent`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a526f8b8f57397ae1fa46358c1610d534)`(self,`[`PEPIN_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__A)` pin)` | Reads from an ADC, convert to output from current sensor.

## Members

#### `public def `[`__init__`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1ad7f74c05e4f81fff44294663b4eea909)`(self)` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1ad7f74c05e4f81fff44294663b4eea909"></a>

Construct a new Power Extender object.

#### `public def `[`begin`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a77635c29b3e975602f4de08570c5ab66)`(self,int bus)` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a77635c29b3e975602f4de08570c5ab66"></a>

Begin I2C communication.

#### `public def `[`setPinMode`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a28935d2fa3f4e8e0b9178cc93a20c7da)`(self,`[`PEPIN_D_IN`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__IN)` pin,`[`PINMODE`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINMODE)` mode)` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a28935d2fa3f4e8e0b9178cc93a20c7da"></a>

Configure the IO direction of a GPIO pin.

#### Parameters
* `pin` Which pin to configure 

* `mode` INPUT or OUTPUT

#### `public def `[`digitalWrite`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1ab420235d8b39cf3ac0c35061d8b65c75)`(self,`[`PEPIN_D_OUT`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__OUT)` pin,`[`PINSTATE`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINSTATE)` val)` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1ab420235d8b39cf3ac0c35061d8b65c75"></a>

Change the state of a GPIO output pin.

#### Parameters
* `pin` Which pin to change 

* `val` HIGH or LOW

#### `public `[`PINSTATE`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PINSTATE)` `[`digitalRead`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a331cdf53cb1d2a52321073b417b7b7f9)`(self,`[`PEPIN_D_IN`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__D__IN)` pin)` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a331cdf53cb1d2a52321073b417b7b7f9"></a>

Reads the state of a digital input pin.

#### Parameters
* `pin` Which pin to read 

#### Returns
HIGH or LOW

#### `public def `[`setAnalogDataRate`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1afaa7bde6af7c3c3387ab650a0db28946)`(self,`[`PEPORT_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPORT__A)` port,`[`ADS1115_Registers.ADS1115_DR`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1ADS1115__Registers_1_1ADS1115__DR)` data_rate)` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1afaa7bde6af7c3c3387ab650a0db28946"></a>

Set the data rate for a whole ADC.

#### Parameters
* `port` Which ADC port to configure 

* `data_rate` The new data rate

#### `public def `[`setAnalogGain`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1aebfcff18640a7b7a253666d899e245f7)`(self,`[`PEPORT_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPORT__A)` port,`[`ADS1115_Registers.ADS1115_PGA`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1ADS1115__Registers_1_1ADS1115__PGA)` gain)` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1aebfcff18640a7b7a253666d899e245f7"></a>

Set the gain for a whole ADC.

#### Parameters
* `port` Which ADC to configure 

* `gain` The new gain

#### `public float `[`analogReadAsVoltage`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a7926271bf71a0f24b47373fe16b307e5)`(self,`[`PEPIN_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__A)` pin)` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a7926271bf71a0f24b47373fe16b307e5"></a>

Reads from an ADC, convert to input voltage.

#### Parameters
* `pin` Which pin to read 

#### Returns
The resulting value in volt

#### `public float `[`analogReadAsCurrent`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a526f8b8f57397ae1fa46358c1610d534)`(self,`[`PEPIN_A`](#classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PEPIN__A)` pin)` <a id="classpower-extender-raspberrypi_1_1pypowerextender_1_1PowerExtender_1_1PowerExtender_1a526f8b8f57397ae1fa46358c1610d534"></a>

Reads from an ADC, convert to output from current sensor.

#### Parameters
* `pin` Which pin to read 

#### Returns
The resulting value in ampere

Generated by [Moxygen](https://sourcey.com/moxygen)