Added javadoc comment to userFunctions

This commit is contained in:
2025-10-23 12:42:33 +02:00
parent 5834530bd1
commit f6452e5009
2 changed files with 65 additions and 0 deletions

View File

@@ -1,6 +1,40 @@
#pragma once
/**
* This function is used to increase the volume
*
* @param userVolume Pointer to the variable used to keep track of the current user volume. It is being passed in so the function can increment it with the potentiometer steps.
* @param oldUserVolume Pointer to the variable used to keep track of the user volume while muted or lowered. It is being passed in so the function can increment it with the potentiometer steps.
* @param maxVolume The highest point that the volume can be set to.
*
*/
void volumeUp(int *userVolume, int *oldUserVolume, int maxVolume);
/**
* This function is used to decrease the volume
*
* @param userVolume Pointer to the variable used to keep track of the current user volume. It is being passed in so the function can increment it with the potentiometer steps.
* @param oldUserVolume Pointer to the variable used to keep track of the user volume while muted or lowered. It is being passed in so the function can increment it with the potentiometer steps.
*
*/
void volumeDown(int *userVolume, int *oldUserVolume);
/**
* This function is used to significantly lower the volume. If the function is called while in a lowered state it will revert the volume to what it previously was.
*
* @param userVolume Pointer to the variable used to keep track of the current user volume. It is being passed in so the function can increment it with the potentiometer steps.
* @param oldUserVolume Pointer to the variable used to keep track of the user volume while muted or lowered. It is being passed in so the function can increment it with the potentiometer steps.
* @param maxVolume The highest point that the volume can be set to.
*
*/
void lowerVolume(int *userVolume, int *oldUserVolume, int maxVolume);
/**
* This function is used to mute the volume. If the function is called while in a muted state it will revert the volume to what it previously was.
*
* @param userVolume Pointer to the variable used to keep track of the current user volume. It is being passed in so the function can increment it with the potentiometer steps.
* @param oldUserVolume Pointer to the variable used to keep track of the user volume while muted or lowered. It is being passed in so the function can increment it with the potentiometer steps.
* @param maxVolume The highest point that the volume can be set to.
*
*/
void mute(int *userVolume, int *oldUserVolume, int maxVolume);