diff options
Diffstat (limited to 'project/Core/Inc')
| -rw-r--r-- | project/Core/Inc/Activities/activity4.h | 8 | ||||
| -rw-r--r-- | project/Core/Inc/Homework/endian_converters.h | 5 | ||||
| -rw-r--r-- | project/Core/Inc/Project/song_info.h | 19 |
3 files changed, 30 insertions, 2 deletions
diff --git a/project/Core/Inc/Activities/activity4.h b/project/Core/Inc/Activities/activity4.h index 6a1a93f..e3b677a 100644 --- a/project/Core/Inc/Activities/activity4.h +++ b/project/Core/Inc/Activities/activity4.h @@ -8,6 +8,14 @@ #ifndef INC_ACTIVITIES_ACTIVITY4_H_ #define INC_ACTIVITIES_ACTIVITY4_H_ +typedef struct { + char chunk_type[4]; + uint32_t length; + uint16_t format; + uint16_t ntrcks; + uint16_t division; +} header_t; + void activity4_run(); #endif /* INC_ACTIVITIES_ACTIVITY4_H_ */ diff --git a/project/Core/Inc/Homework/endian_converters.h b/project/Core/Inc/Homework/endian_converters.h index 27603ea..a4d959c 100644 --- a/project/Core/Inc/Homework/endian_converters.h +++ b/project/Core/Inc/Homework/endian_converters.h @@ -8,7 +8,8 @@ #ifndef INC_HOMEWORK_ENDIAN_CONVERTERS_H_ #define INC_HOMEWORK_ENDIAN_CONVERTERS_H_ -uint16_t convert_to_uint16 (uint8_t* p_value); -uint32_t convert_to_uint32 (uint8_t* p_value); +uint16_t convert_to_uint16(uint8_t* p_value); +uint32_t convert_to_uint24(uint8_t* p_value); +uint32_t convert_to_uint32(uint8_t* p_value); #endif /* INC_HOMEWORK_ENDIAN_CONVERTERS_H_ */ diff --git a/project/Core/Inc/Project/song_info.h b/project/Core/Inc/Project/song_info.h new file mode 100644 index 0000000..fbc5bc2 --- /dev/null +++ b/project/Core/Inc/Project/song_info.h @@ -0,0 +1,19 @@ +/* + * song_info.h + * + * Created on: Oct 15, 2025 + * Author: sowgro + */ + +#ifndef INC_PROJECT_SONG_INFO_H_ +#define INC_PROJECT_SONG_INFO_H_ + +typedef struct { + char *title; + char *copyright; + int tempo; +} song_info_t; + +song_info_t get_song_info(unsigned char *p_song); + +#endif /* INC_PROJECT_SONG_INFO_H_ */ |
