ArmSys Support
ArmsysApi  0.12.18

#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()

BUInt16 BAdc::getValue ( BUInt8  channel)

Sample the data, retunrs a value 0 - 4095.

◆ init()

BError BAdc::init ( BUInt8  dev)

Initialises the ADC. Devices 1 to 3.

◆ initChannel()

BError BAdc::initChannel ( BUInt8  channel)

Initialise a channel and pin for use.

Member Data Documentation

◆ oadc

ADC_TypeDef* BAdc::oadc
protected

◆ odev

int BAdc::odev
protected

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