STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
usbd_audio_if_template.c
Go to the documentation of this file.
1 
28 /* Includes ------------------------------------------------------------------*/
29 #include "usbd_audio_if_template.h"
30 
70 static int8_t TEMPLATE_Init (uint32_t AudioFreq, uint32_t Volume, uint32_t options);
71 static int8_t TEMPLATE_DeInit (uint32_t options);
72 static int8_t TEMPLATE_AudioCmd (uint8_t* pbuf, uint32_t size, uint8_t cmd);
73 static int8_t TEMPLATE_VolumeCtl (uint8_t vol);
74 static int8_t TEMPLATE_MuteCtl (uint8_t cmd);
75 static int8_t TEMPLATE_PeriodicTC (uint8_t cmd);
76 static int8_t TEMPLATE_GetState (void);
77 
79 {
80  TEMPLATE_Init,
81  TEMPLATE_DeInit,
82  TEMPLATE_AudioCmd,
83  TEMPLATE_VolumeCtl,
84  TEMPLATE_MuteCtl,
85  TEMPLATE_PeriodicTC,
86  TEMPLATE_GetState,
87 };
88 
89 /* Private functions ---------------------------------------------------------*/
90 
97 static int8_t TEMPLATE_Init(uint32_t AudioFreq, uint32_t Volume, uint32_t options)
98 {
99  /*
100  Add your initialization code here
101  */
102  return (0);
103 }
104 
111 static int8_t TEMPLATE_DeInit(uint32_t options)
112 {
113  /*
114  Add your deinitialization code here
115  */
116  return (0);
117 }
118 
119 
128 static int8_t TEMPLATE_AudioCmd (uint8_t* pbuf, uint32_t size, uint8_t cmd)
129 {
130 
131  return (0);
132 }
133 
139 static int8_t TEMPLATE_VolumeCtl (uint8_t vol)
140 {
141 
142  return (0);
143 }
144 
150 static int8_t TEMPLATE_MuteCtl (uint8_t cmd)
151 {
152 
153  return (0);
154 }
155 
161 static int8_t TEMPLATE_PeriodicTC (uint8_t cmd)
162 {
163 
164  return (0);
165 }
166 
172 static int8_t TEMPLATE_GetState (void)
173 {
174 
175  return (0);
176 }
189 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
190 
USBD_AUDIO_ItfTypeDef USBD_AUDIO_Template_fops
Header for usbd_audio_if_template.c file.
Definition: pbuf.h:108