Account
| ArmsysApi 0.12.18 |
BAdc Class Reference
#include <BAdc.h>
Public Member Functions | |
| BAdc () | |
| BError | init (BUInt8 dev) |
| Initialises the ADC. Devices 1 to 3. More... | |
| BError | initChannel (BUInt8 channel) |
| Initialise a channel and pin for use. More... | |
| BUInt16 | getValue (BUInt8 channel) |
| Sample the data, retunrs a value 0 - 4095. More... | |
| void | enableTempAndRefInput (Bool on) |
| Enable temperatue sensor (chan 16) and voltage ref sensor (chan 17) More... | |
| void | enableBatteryInput (Bool on) |
| Enable RTC battery input (chan 18) More... | |
Protected Attributes | |
| int | odev |
| ADC_TypeDef * | oadc |
Constructor & Destructor Documentation
◆ BAdc()
| BAdc::BAdc | ( | ) |
Member Function Documentation
◆ enableBatteryInput()
| void BAdc::enableBatteryInput | ( | Bool | on | ) |
Enable RTC battery input (chan 18)
◆ enableTempAndRefInput()
| void BAdc::enableTempAndRefInput | ( | Bool | on | ) |
Enable temperatue sensor (chan 16) and voltage ref sensor (chan 17)
◆ getValue()
◆ init()
◆ initChannel()
Member Data Documentation
◆ oadc
| protected |
◆ odev
| protected |
The documentation for this class was generated from the following files:
Generated by
1.8.15 