mp3 2.0.0.0
|
Functions | |
void | mp3_cfg_setup (mp3_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | mp3_init (mp3_t *ctx, mp3_cfg_t *cfg) |
Initialization function. | |
void | mp3_reset (mp3_t *ctx) |
Functions for reset MP3 module. | |
uint8_t | mp3_is_busy (mp3_t *ctx) |
Function that checks whether busy mp3. | |
void | mp3_cmd_write (mp3_t *ctx, uint8_t address, uint16_t input) |
Function writes one byte (command) to MP3. | |
uint16_t | mp3_cmd_read (mp3_t *ctx, uint8_t address) |
Function reads command from MP3. | |
err_t | mp3_data_write (mp3_t *ctx, uint8_t input) |
Function writes one byte ( data ) to MP3. | |
err_t | mp3_data_write_32 (mp3_t *ctx, uint8_t *input32) |
Function Write 32 bytes ( data ) to MP3. | |
void | mp3_set_volume (mp3_t *ctx, uint8_t vol_left, uint8_t vol_right) |
Function set volume to MP3 click for left and right channels. | |
void mp3_cfg_setup | ( | mp3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
uint16_t mp3_cmd_read | ( | mp3_t * | ctx, |
uint8_t | address ) |
Function reads command from MP3.
ctx | Click object. |
void mp3_cmd_write | ( | mp3_t * | ctx, |
uint8_t | address, | ||
uint16_t | input ) |
Function writes one byte (command) to MP3.
ctx | Click object. |
address | adddress of register whitch be written |
input | command which be written |
err_t mp3_data_write | ( | mp3_t * | ctx, |
uint8_t | input ) |
Function writes one byte ( data ) to MP3.
ctx | Click object. |
input | data which be written |
err_t mp3_data_write_32 | ( | mp3_t * | ctx, |
uint8_t * | input32 ) |
Function Write 32 bytes ( data ) to MP3.
ctx | Click object. |
input32 | buffer of 32 bytes which be written |
Initialization function.
mp3 | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
uint8_t mp3_is_busy | ( | mp3_t * | ctx | ) |
Function that checks whether busy mp3.
ctx | Click object. |
void mp3_reset | ( | mp3_t * | ctx | ) |
Functions for reset MP3 module.
void mp3_set_volume | ( | mp3_t * | ctx, |
uint8_t | vol_left, | ||
uint8_t | vol_right ) |
Function set volume to MP3 click for left and right channels.
ctx | Click object. |
vol_left | Volume level for left channel. |
vol_right | Volume level for right channel. |