![]() |
Zap'Em Blast'Em Robots
robots that play laser tag!
|
Structure that represents the ADC task state and configuration. More...
#include <adc_task.h>
Data Fields | |
| int32_t | state |
| int32_t | num_states |
| ControllerTask * | red_contr_ptr |
| ControllerTask * | blue_contr_ptr |
| PhotoresistorTask * | red_photor_ptr |
| PhotoresistorTask * | blue_photor_ptr |
| ADC_HandleTypeDef * | hadc |
| adc_fcn_t | state_list [] |
Structure that represents the ADC task state and configuration.
This structure holds all the contextual information and function pointers necessary to run ADC operations within a task-based state machine.
| ControllerTask* blue_contr_ptr |
Pointer to blue controller task object
| PhotoresistorTask* blue_photor_ptr |
Pointer to blue photo resistor task object
| ADC_HandleTypeDef* hadc |
Pointer to the ADC channel handle
| int32_t num_states |
Total number of states
| ControllerTask* red_contr_ptr |
Pointer to red controller task object
| PhotoresistorTask* red_photor_ptr |
Pointer to red photo resistor task object
| int32_t state |
Current state index
| adc_fcn_t state_list[] |
Array of function pointers for states