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

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 []

Detailed Description

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.

Field Documentation

◆ chan

uint32_t chan

PWM channel for sound timer

◆ hit_snd

int32_t hit_snd

Flag for playing hit sound

◆ htim

TIM_HandleTypeDef* htim

Timer for sound

◆ laser_snd

int32_t laser_snd

Flag for playing laser sound

◆ num_states

int32_t num_states

Total number of states

◆ start_snd

int32_t start_snd

Flag for playing start sound

◆ state

int32_t state

Current state index

◆ state_list

sound_fcn_t state_list[]

Function pointer list for states

◆ win_snd

int32_t win_snd

Flag for playing win sound


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