Atmel Software Framework

reader_id3.h File Reference
#include <stddef.h>
#include "compiler.h"

Data Structures

struct  St_id3size
 
struct  St_id3ver
 

Functions

bool reader_id3_album (FS_STRING sz_album, uint8_t u8_size_max)
 Return album from ID3 of current file selected. More...
 
bool reader_id3_artist (FS_STRING sz_artist, uint8_t u8_size_max)
 Return artist from ID3 of current file selected. More...
 
uint32_t reader_id3_duration (void)
 Return the length of the audiofile in milliseconds. More...
 
bool reader_id3_genre (FS_STRING sz_genre, uint8_t u8_size_max)
 Return genre from ID3 of current file selected. More...
 
bool reader_id3_picture (FS_STRING mime_type, uint8_t u8_size_max, uint8_t *picture_type, uint32_t *offset)
 Return embedded image mime type, image type and offset into the file. More...
 
St_id3size reader_id3_size (void)
 Return ID3 size from ID3 of current file selected. More...
 
bool reader_id3_title (FS_STRING sz_title, uint8_t u8_size_max)
 Return title from ID3 of current file selected. More...
 
uint32_t reader_id3_track (void)
 Return track from ID3 of current file selected. More...
 
St_id3ver reader_id3_version (void)
 Return ID3 version from ID3 of current file selected. More...
 
uint16_t reader_id3_year (void)
 Return year from ID3 of current file selected. More...
 

bool reader_id3_album ( FS_STRING  sz_album,
uint8_t  u8_size_max 
)

Return album from ID3 of current file selected.

References file_close(), reader_id3_getver(), reader_id3_v1_album(), reader_id3_v2_album(), status, St_id3ver::ver1, and St_id3ver::ver10.

bool reader_id3_artist ( FS_STRING  sz_artist,
uint8_t  u8_size_max 
)

Return artist from ID3 of current file selected.

References file_close(), reader_id3_getver(), reader_id3_v1_artist(), reader_id3_v2_artist(), status, St_id3ver::ver1, and St_id3ver::ver10.

uint32_t reader_id3_duration ( void  )
bool reader_id3_genre ( FS_STRING  sz_genre,
uint8_t  u8_size_max 
)

Return genre from ID3 of current file selected.

References file_close(), reader_id3_getver(), reader_id3_v1_genre(), reader_id3_v2_genre(), status, St_id3ver::ver1, and St_id3ver::ver10.

bool reader_id3_picture ( FS_STRING  mime_type,
uint8_t  u8_size_max,
uint8_t *  picture_type,
uint32_t *  offset 
)

Return embedded image mime type, image type and offset into the file.

References file_close(), reader_id3_getver(), reader_id3_v2_picture(), status, and St_id3ver::ver1.

Referenced by ai_usb_ms_support_info_image().

St_id3size reader_id3_size ( void  )

Return ID3 size from ID3 of current file selected.

References St_id3size::appended_tag, file_close(), file_getc(), file_open(), file_seek(), FOPEN_MODE_R, FS_SEEK_CUR_FW, FS_SEEK_END, and St_id3size::prepended_tag.

Referenced by play_mp3().

bool reader_id3_title ( FS_STRING  sz_title,
uint8_t  u8_size_max 
)

Return title from ID3 of current file selected.

References file_close(), reader_id3_getver(), reader_id3_v1_title(), reader_id3_v2_title(), status, St_id3ver::ver1, and St_id3ver::ver10.

uint32_t reader_id3_track ( void  )
St_id3ver reader_id3_version ( void  )

Return ID3 version from ID3 of current file selected.

References file_close(), reader_id3_getver(), St_id3ver::ver1, and St_id3ver::ver10.

Referenced by ai_usb_ms_mp3_support_get_metadata_version().

uint16_t reader_id3_year ( void  )