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


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 } |