|
Chrispy
High-performance multichannel ADC sampling and audio recording.
|
Single ADC channel (pin + metadata). More...
#include <Adc.h>
Public Member Functions | |
| Channel (uint8_t _pin, int8_t _power, bool _active_high) | |
| Channel constructor. | |
| int8_t | mux_mask () |
| Gets bit pattern for mux mask to use with ADC for channel. | |
Data Fields | |
| uint8_t | pin |
| Pin number corresponding to the channel being read. | |
| int8_t | power |
| Power pin. | |
| bool | active_high |
| Boolean for if the power is active high or active high,. | |
Single ADC channel (pin + metadata).
|
inlineexplicit |
Channel constructor.
Assumes no power is required unless otherwise noted.
| _pin | Analog pin number for channel. |
| _power | Pin number for power. |
| _active_high | Flag indicating if channel is active low or high. |
|
inline |
Gets bit pattern for mux mask to use with ADC for channel.
| bool adc::Channel::active_high |
Boolean for if the power is active high or active high,.
| uint8_t adc::Channel::pin |
Pin number corresponding to the channel being read.
| int8_t adc::Channel::power |
Power pin.
If negative, indicates no power is needed.