Extract data from SPI data received from master processor. More...
Functions | |
int16_t | vexControllerCompetitionStateSet (uint16_t ctl, int16_t mask) |
Set competition state, a simulation of the competition modes. More... | |
uint16_t | vexControllerCompetitonState () |
Get competition state word (and controller status) More... | |
int16_t | vexControllerGet (tCtlIndex index) |
Get controller data. More... | |
void | vexControllerReleaseWait (tCtlIndex index) |
Wait for button release. More... | |
Extract data from SPI data received from master processor.
int16_t vexControllerCompetitionStateSet | ( | uint16_t | ctl, |
int16_t | mask | ||
) |
Set competition state, a simulation of the competition modes.
[in] | ctl | The control byte |
[in] | mask | bit to change |
uint16_t vexControllerCompetitonState | ( | void | ) |
Get competition state word (and controller status)
int16_t vexControllerGet | ( | tCtlIndex | index) |
Get controller data.
[in] | index | The required controller variable eg. Btn8U |
void vexControllerReleaseWait | ( | tCtlIndex | index) |
Wait for button release.