Analog port driver.
More...
#include "ch.h"
#include "hal.h"
#include "vex.h"
Initialize the ADC1 sub system.
int16_t vexAdcGet |
( |
int16_t |
index) | |
|
Return ADC sample from sample buffer.
- Parameters
-
[in] | index | The index of the adc channel (0 through 7) |
- Returns
- The ADC value in the range 0 to 4095
- Examples:
- clawbot.c, and vexdefault.c.
void vexAdcDebug |
( |
vexStream * |
chp, |
|
|
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Dump all analog values to console for debug.
- Parameters
-
[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 |