Cortex configuration.
More...
#include "ch.h"
#include "hal.h"
#include "vex.h"
void vexDigitalConfigure |
( |
vexDigiCfg * |
cfg, |
|
|
int16_t |
cfg_num |
|
) |
| |
Configure digital ports.
- Parameters
-
[in] | cfg | pointer to vexDigiCfg structure |
[in] | cfg_num | number of entries in the cfg structure |
Configure digital ports based on a configuration structure
- Examples:
- clawbot.c, vexdefault.c, and vexuser.c.
Get the sensor type given pin number.
- Parameters
-
- Returns
- The sensor type
Get the sensor name given pin number.
- Parameters
-
- Returns
- A char pointer to the text name of the sensor
Get the sensor channel given pin number.
- Parameters
-
- Returns
- The channel number
Get the sensor config given pin number.
- Parameters
-
- Returns
- The pin configuration
The configuration is sensor dependent, eg. sonar output or input
void vexMotorConfigure |
( |
vexMotorCfg * |
cfg, |
|
|
int16_t |
cfg_num |
|
) |
| |
Configure motors based on a configuration structure.
Configure motors based on a configuration structure. This is primarily to link a motor with a position sensor such as an IME
- Examples:
- clawbot.c, vexdefault.c, and vexuser.c.