![]() |
Zap'Em Blast'Em Robots
robots that play laser tag!
|
Structure that represents the sound task state and configuration. More...
#include <sound_task.h>
Data Fields | |
int32_t | state |
int32_t | num_states |
int32_t | laser_snd |
int32_t | hit_snd |
int32_t | start_snd |
int32_t | win_snd |
uint32_t | chan |
TIM_HandleTypeDef * | htim |
sound_fcn_t | state_list [] |
Structure that represents the sound task state and configuration.
This structure holds all the contextual information and function pointers necessary to play sounds in the task-based state machine.
uint32_t chan |
PWM channel for sound timer
int32_t hit_snd |
Flag for playing hit sound
TIM_HandleTypeDef* htim |
Timer for sound
int32_t laser_snd |
Flag for playing laser sound
int32_t num_states |
Total number of states
int32_t start_snd |
Flag for playing start sound
int32_t state |
Current state index
sound_fcn_t state_list[] |
Function pointer list for states
int32_t win_snd |
Flag for playing win sound