Analog port driver macros and prototypes. More...
Go to the source code of this file.
Enumerations | |
enum | tVexAnalogPin { kVexAnalog_None = -1, kVexAnalog_1 = 0, kVexAnalog_2, kVexAnalog_3, kVexAnalog_4, kVexAnalog_5, kVexAnalog_6, kVexAnalog_7, kVexAnalog_8, kVexAnalog_Num } |
enumeration for the 8 analog ports More... | |
Functions | |
void | vexAdcInit (void) |
Initialize the ADC1 sub system. More... | |
int16_t | vexAdcGet (int16_t index) |
Return ADC sample from sample buffer. More... | |
void | vexAdcDebug (vexStream *chp, int argc, char *argv[]) |
Dump all analog values to console for debug. More... | |
Analog port driver macros and prototypes.
enum tVexAnalogPin |
void vexAdcInit | ( | void | ) |
Initialize the ADC1 sub system.
int16_t vexAdcGet | ( | int16_t | index) |
Return ADC sample from sample buffer.
[in] | index | The index of the adc channel (0 through 7) |
void vexAdcDebug | ( | vexStream * | chp, |
int | argc, | ||
char * | argv[] | ||
) |
Dump all analog values to console for debug.
[in] | chp | A pointer to a vexStream object |
[in] | argc | The number of command line arguments |
[in] | argv | An array of pointers to the command line args |