AEM
Board Class Reference

#include <board.h>

Public Member Functions

 Board (uint8_t numberADC, const uint8_t nbChannelVec[])
 
boardID getGUID () const
 
float getValue (uint8_t adcID, uint8_t channelID) const
 
uint8_t getMgrNbChannels (uint8_t mgrId) const
 

Data Fields

const uint8_t nbADCs
 

Protected Attributes

ADCMgr ** adcMgrVec
 

Detailed Description

Class encapsulates board functionality, eg number of ADCS, etc.

Constructor & Destructor Documentation

Board::Board ( uint8_t  numberADC,
const uint8_t  nbChannelVec[] 
)

constructor

Parameters
numberADChow many adcs are on the board
nbChannelVecan array containing the numer of channels that each ADC has

Member Function Documentation

boardID Board::getGUID ( ) const

get the board id

Returns
the board's GUID
uint8_t Board::getMgrNbChannels ( uint8_t  mgrId) const

for a given adc mgr id, get the number of channels available

Parameters
mgrIdan index for the adcMgrVec array
Returns
the number of adc channels for the selected adc
float Board::getValue ( uint8_t  adcID,
uint8_t  channelID 
) const

get a value for an ADC and Channel pair

Parameters
adcIDthe adc in question
channelIDthe channel in question
Returns
the value returned by the adc

Field Documentation

ADCMgr** Board::adcMgrVec
protected

vector of pointers to ADC Mgr instances that the board has

const uint8_t Board::nbADCs

how many ADCs are connected on this board


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