Zap'Em Blast'Em Robots
robots that play laser tag!
Loading...
Searching...
No Matches
ADCTask Struct Reference

Structure that represents the ADC task state and configuration. More...

#include <adc_task.h>

Data Fields

int32_t state
int32_t num_states
ControllerTaskred_contr_ptr
ControllerTaskblue_contr_ptr
PhotoresistorTaskred_photor_ptr
PhotoresistorTaskblue_photor_ptr
ADC_HandleTypeDef * hadc
adc_fcn_t state_list []

Detailed Description

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.

Field Documentation

◆ blue_contr_ptr

ControllerTask* blue_contr_ptr

Pointer to blue controller task object

◆ blue_photor_ptr

PhotoresistorTask* blue_photor_ptr

Pointer to blue photo resistor task object

◆ hadc

ADC_HandleTypeDef* hadc

Pointer to the ADC channel handle

◆ num_states

int32_t num_states

Total number of states

◆ red_contr_ptr

ControllerTask* red_contr_ptr

Pointer to red controller task object

◆ red_photor_ptr

PhotoresistorTask* red_photor_ptr

Pointer to red photo resistor task object

◆ state

int32_t state

Current state index

◆ state_list

adc_fcn_t state_list[]

Array of function pointers for states


The documentation for this struct was generated from the following file: