diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-12-19 16:37:33 +0000 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-12-19 17:05:29 +0000 |
commit | 2ea46232a15aaf7600f1b92314612f4aa2fc6cd2 (patch) | |
tree | 7c05c514c3bbe932a067067b719d46ff16e5c2e7 /scripts/py/templates/AudioClips.hpp.template | |
parent | 9a97134ee00125c7a406cbf57c3ba8360df8f980 (diff) | |
download | ml-embedded-evaluation-kit-2ea46232a15aaf7600f1b92314612f4aa2fc6cd2.tar.gz |
MLECO-3611: Formatting fixes for generated files.
Template files updated for generated files to adhere to
coding guidelines and clang format configuration. There
will still be unavoidable violations, but most of the
others have been fixed.
Change-Id: Ia03db40f8c62a369f2b07fe02eea65e41993a523
Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
Diffstat (limited to 'scripts/py/templates/AudioClips.hpp.template')
-rw-r--r-- | scripts/py/templates/AudioClips.hpp.template | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/scripts/py/templates/AudioClips.hpp.template b/scripts/py/templates/AudioClips.hpp.template index dfe435c..12a7ae5 100644 --- a/scripts/py/templates/AudioClips.hpp.template +++ b/scripts/py/templates/AudioClips.hpp.template @@ -22,14 +22,31 @@ #include <cstdint> #include <stddef.h> -#define NUMBER_OF_FILES ({{clips_count}}U) +#define NUMBER_OF_FILES ({{clips_count}}U) {% for var_name, size in varname_size %} extern const int16_t {{var_name}}[{{size}}]; {% endfor %} -const char* get_filename(const uint32_t idx); -const int16_t* get_audio_array(const uint32_t idx); -uint32_t get_audio_array_size(const uint32_t idx); +/** + * @brief Gets the filename for the baked-in input array + * @param[in] idx Index of the input. + * @return const C string pointer to the name. + **/ +const char* GetFilename(const uint32_t idx); + +/** + * @brief Gets the pointer to audio data. + * @param[in] idx Index of the input. + * @return Pointer to 16-bit signed integer data. + **/ +const int16_t* GetAudioArray(const uint32_t idx); + +/** + * @brief Gets the size of the input array. + * @param[in] idx Index of the input. + * @return Size of the input array in bytes. + **/ +uint32_t GetAudioArraySize(const uint32_t idx); #endif /* GENERATED_AUDIOCLIPS_H */ |