SFBPower.h File Reference

The ADC (including power monitoring) handling routines for the SFB. More...

#include "SFBTypes.h"
#include "SFBConstants.h"

Include dependency graph for SFBPower.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define RAIL_SAMPLE_INDEX   (FACE_COUNT)
#define ADC_SAMPLE_COUNT   (RAIL_SAMPLE_INDEX+1)

Functions

void initADC ()
 Setup the ADC converters.
int powerDraw ()
int powerDraw (u32 face)
int rawPower (u32 face)
int railVoltage ()
int rawVoltage ()
void powerOut (u32 face, int on)
 Turn on (on != 0) or off (on == 0) the outbound power on face.
void powerIn (u32 face, int on)
 Control inbound power -- NOTE THIS CODE IS UNTESTED!
void initPowerOuts ()

Variables

uv32 adcSamples [ADC_SAMPLE_COUNT]
uv16 adcSmooth [ADC_SAMPLE_COUNT] = { 556, 556, 556, 556, 556 }
uv16 adcSmoother [ADC_SAMPLE_COUNT] = { 556, 556, 556, 556, 556 }


Detailed Description

The ADC (including power monitoring) handling routines for the SFB.

Author:
David H. Ackley.
Date:
(C) 2009 All rights reserved.
Code License:
The GNU Lesser General Public License
License Note:
All code samples shown in documentation are placed into the public domain.

Generated on Mon Sep 28 03:31:27 2009 for SFB by doxygen 1.5.9