|
mp32 2.2.0
|
Functions | |
| void | mp32_cfg_setup (mp32_cfg_t *cfg) |
| Config Object Initialization function. | |
| MP32_RETVAL | mp32_init (mp32_t *ctx, mp32_cfg_t *cfg) |
| Initialization function. | |
| void | mp32_generic_write (mp32_t *ctx, char *data_buf, uint16_t len) |
| Generic write function. | |
| int32_t | mp32_generic_read (mp32_t *ctx, char *data_buf, uint16_t max_len) |
| Generic read function. | |
| void | mp32_hw_reset (mp32_t *ctx) |
| Reset the device function. | |
| void | mp32_rx_cmd (mp32_t *ctx, uint8_t *rd_data, uint8_t len) |
| Received response data function. | |
| void | mp32_tx_cmd (mp32_t *ctx, uint8_t cmd, uint16_t spec_data) |
| Write command function. | |
| void | mp32_sw_reset (mp32_t *ctx) |
| Software reset function. | |
| void | mp32_play_specific (mp32_t *ctx, uint16_t track_index) |
| Play specific function. | |
| void | mp32_play_mode (mp32_t *ctx) |
| Play mode function. | |
| void | mp32_pause_mode (mp32_t *ctx) |
| Pause mode function. | |
| void | mp32_stop_mode (mp32_t *ctx) |
| Stop mode function. | |
| void | mp32_set_volume (mp32_t *ctx, uint8_t perc) |
| Set Volume function. | |
| void | mp32_volume_up (mp32_t *ctx) |
| Volume up function. | |
| void | mp32_volume_down (mp32_t *ctx) |
| Play next command function. | |
| void | mp32_play_next (mp32_t *ctx) |
| Play previous command function. | |
| void | mp32_play_previous (mp32_t *ctx) |
| Play previous command function. | |
| void | mp32_set_eq (mp32_t *ctx, uint8_t eq) |
| Set equalizer mode function. | |
| void | mp32_repeat_current (mp32_t *ctx) |
| Repeat current mode function. | |
| void | mp32_set_device (mp32_t *ctx, uint8_t device) |
| Set device function. | |
| void | mp32_set_low_power_mode (mp32_t *ctx) |
| Set Low power mode function. | |
| void | mp32_play_spec_in_fol (mp32_t *ctx, uint8_t fol_inx, uint8_t track_inx) |
| Specify a certain folder and play tracks inside function. | |
| void | mp32_loop_all (mp32_t *ctx, uint8_t loop_mode) |
| Play specific in loop mode function. | |
| void | mp32_play_fol (mp32_t *ctx, uint8_t fol_inx) |
| Play folder function. | |
| void | mp32_loop_fol (mp32_t *ctx, uint8_t fol_inx) |
| Loop folder function. | |
| void | mp32_random_all (mp32_t *ctx) |
| Random Play function. | |
| void | mp32_loop (mp32_t *ctx, uint8_t state) |
| Repeat a current song function. | |
| void mp32_cfg_setup | ( | mp32_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| int32_t mp32_generic_read | ( | mp32_t * | ctx, |
| char * | data_buf, | ||
| uint16_t | max_len ) |
Generic read function.
| ctx | Click object. |
| data_buf | Data buffer for read data. |
| max_len | The maximum length of data that can be read. |
| void mp32_generic_write | ( | mp32_t * | ctx, |
| char * | data_buf, | ||
| uint16_t | len ) |
Generic write function.
| ctx | Click object. |
| data_buf | Data buffer for sends. |
| len | Number of bytes for sends. |
| void mp32_hw_reset | ( | mp32_t * | ctx | ) |
Reset the device function.
| ctx | Click object. |
@description Function reset the device by set state high of the RST pin.
| MP32_RETVAL mp32_init | ( | mp32_t * | ctx, |
| mp32_cfg_t * | cfg ) |
Initialization function.
| ctx | Click object. |
| cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this Click.
| void mp32_loop | ( | mp32_t * | ctx, |
| uint8_t | state ) |
Repeat a current song function.
| ctx | Click object. |
| loop_mode | Loop mode:
|
@description The function set repeat a current song device mode.
| void mp32_loop_all | ( | mp32_t * | ctx, |
| uint8_t | loop_mode ) |
Play specific in loop mode function.
| ctx | Click object. |
| loop_mode | Loop mode:
|
@description The function play specific in loop mode.
| void mp32_loop_fol | ( | mp32_t * | ctx, |
| uint8_t | fol_inx ) |
Loop folder function.
| ctx | Click object. |
| fol_inx | Certain folder index. |
@description The function specify a folder for looping tracks inside.
| void mp32_pause_mode | ( | mp32_t * | ctx | ) |
Pause mode function.
| ctx | Click object. |
@description The function set Pause mode command.
| void mp32_play_fol | ( | mp32_t * | ctx, |
| uint8_t | fol_inx ) |
Play folder function.
| ctx | Click object. |
| fol_inx | Certain folder index. |
@description The function specify a folder named MP3 and paly tracks inside.
| void mp32_play_mode | ( | mp32_t * | ctx | ) |
Play mode function.
| ctx | Click object. |
@description The function set Play mode command.
| void mp32_play_next | ( | mp32_t * | ctx | ) |
Play previous command function.
| ctx | Click object. |
@description The function command for Play previous song.
| void mp32_play_previous | ( | mp32_t * | ctx | ) |
Play previous command function.
| ctx | Click object. |
@description The function command for Play previous song.
| void mp32_play_spec_in_fol | ( | mp32_t * | ctx, |
| uint8_t | fol_inx, | ||
| uint8_t | track_inx ) |
Specify a certain folder and play tracks inside function.
| ctx | Click object. |
| fol_inx | Certain folder index. |
| track_inx | Track index. |
@description The function specify a certain folder and play tracks inside.
| void mp32_play_specific | ( | mp32_t * | ctx, |
| uint16_t | track_index ) |
Play specific function.
| ctx | Click object. |
| track_index | Track index. |
@description The function set instructions for specifying a track to play.
| void mp32_random_all | ( | mp32_t * | ctx | ) |
Random Play function.
| ctx | Click object. |
@description The function set random play command.
| void mp32_repeat_current | ( | mp32_t * | ctx | ) |
Repeat current mode function.
| ctx | Click object. |
@description The function set command for Repeat current song.
| void mp32_rx_cmd | ( | mp32_t * | ctx, |
| uint8_t * | rd_data, | ||
| uint8_t | len ) |
Received response data function.
| ctx | Click object. |
| rd_data | Response. |
| len | Response length. |
@description The function received response from the device.
| void mp32_set_device | ( | mp32_t * | ctx, |
| uint8_t | device ) |
Set device function.
| ctx | Click object. |
@description The function set specify a device play tracks inside.
| void mp32_set_eq | ( | mp32_t * | ctx, |
| uint8_t | eq ) |
Set equalizer mode function.
| ctx | Click object. |
| eq | Equalizer mode ( from 0 to 4 ). |
@description The function set equalizer mode of the device.
| void mp32_set_low_power_mode | ( | mp32_t * | ctx | ) |
Set Low power mode function.
| ctx | Click object. |
@description The function set Low power mode of the device.
| void mp32_set_volume | ( | mp32_t * | ctx, |
| uint8_t | perc ) |
Set Volume function.
| ctx | Click object. |
| perc | Volume percentage. |
@description The function adjust the volume of the device.
| void mp32_stop_mode | ( | mp32_t * | ctx | ) |
Stop mode function.
| ctx | Click object. |
@description The function set Stop mode command.
| void mp32_sw_reset | ( | mp32_t * | ctx | ) |
Software reset function.
| ctx | Click object. |
@description Function set software reset of device.
| void mp32_tx_cmd | ( | mp32_t * | ctx, |
| uint8_t | cmd, | ||
| uint16_t | spec_data ) |
Write command function.
| ctx | Click object. |
| cmd | Command. |
| spec_data | 16-bit specific data ( such as song name ). |
@description The function write command specific data to the device.
| void mp32_volume_down | ( | mp32_t * | ctx | ) |
Play next command function.
| ctx | Click object. |
@description The function command for Play next song.
| void mp32_volume_up | ( | mp32_t * | ctx | ) |
Volume up function.
| ctx | Click object. |
@description The function increase the volume of the device.