#include <MHV_ADC.h>
List of all members.
Detailed Description
Definition at line 57 of file MHV_ADC.h.
Constructor & Destructor Documentation
An event manager for ADC events
- Parameters:
-
adcs | ADC event handles |
adcCount | The number of ADC events we can handle (must match adcs) |
Definition at line 35 of file MHV_ADC.cpp.
Member Function Documentation
Interrupt handler to read the ADC
Definition at line 47 of file MHV_ADC.cpp.
void MHV_ADC::asyncRead |
( |
uint8_t |
channel, |
|
|
uint8_t |
reference |
|
) |
| |
Trigger an ADC channel event
- Parameters:
-
channel | the channel to read |
reference | the voltage reference to use |
Definition at line 107 of file MHV_ADC.cpp.
uint16_t MHV_ADC::busyRead |
( |
uint8_t |
channel, |
|
|
uint8_t |
reference |
|
) |
| |
Read an ADC channel
- Parameters:
-
channel | the channel to read |
reference | the voltage reference to use |
Definition at line 87 of file MHV_ADC.cpp.
void MHV_ADC::deregisterListener |
( |
uint8_t |
channel | ) |
|
Deregister interest for an ADC channel
- Parameters:
-
Definition at line 73 of file MHV_ADC.cpp.
void MHV_ADC::disable |
( |
| ) |
|
void MHV_ADC::handleEvents |
( |
| ) |
|
Call from the main loop to handle any events
Definition at line 132 of file MHV_ADC.cpp.
void MHV_ADC::registerListener |
( |
uint8_t |
channel, |
|
|
MHV_ADCListener * |
listener |
|
) |
| |
Register interest for an ADC channel
- Parameters:
-
channel | the ADC channel |
listener | an MHV_ADCListener to notify when an ADC reading has been completed |
Definition at line 59 of file MHV_ADC.cpp.
Set the ADC clock prescaler
- Parameters:
-
prescaler | the prescaler to use |
Definition at line 124 of file MHV_ADC.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: