OSDN Git Service

Moved to ntlogger directory.
[kozos-expbrd/kozos_expbrd.git] / firm / sample / simple_mp3_player / os / vs1011e.h
1 #ifndef VS1011_H
2 #define VS1011_H
3
4 #include "defines.h"
5
6 void vs1011e_init(void);
7 void vs1011e_reset_by_hardware(void);
8 void vs1011e_reset_by_software(void);
9 void vs1011e_cancel_data(void);
10 void vs1011e_set_enhancer(uint8 st_amp, uint8 st_freq, uint8 sb_amp, uint8 sb_freq);
11 void vs1011e_get_enhancer(uint8 * st_amp, uint8 * st_freq, uint8 * sb_amp, uint8 * sb_freq);
12 void vs1011e_volume_read(uint8 * left, uint8 * right);
13 void vs1011e_volume_write(const uint8 left, const uint8 right);
14 void vs1011e_play(
15         void *buf, int siz,
16         int (*waitfunc)(void),
17         int (*readfunc)(void * buf, const int len));
18 void vs1011e_play_with_data(
19         void *buf, int siz,
20         int (*waitfunc)(void));
21 void vs1011e_decodetime_read(uint16 * sec);
22 void vs1011e_decodetime_write(const uint16 sec);
23 void vs1011e_register_print(void);
24
25 void vs1011e_sinetest_init(void);
26 void vs1011e_sinetest_fini(void);
27
28 #endif
29