diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:22:50 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:22:50 +0200 |
commit | 838c430635b146a545033bf4f4552c02958508f2 (patch) | |
tree | f305dbe0d6757453cdfd42b25de8097070787ff3 /fw/fe310/eos/soc/i2s.h | |
parent | 4c96cd2d5f7cb8de7d48b5dbd728af7fda572d9d (diff) |
new stereo audio driver
Diffstat (limited to 'fw/fe310/eos/soc/i2s.h')
-rw-r--r-- | fw/fe310/eos/soc/i2s.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fw/fe310/eos/soc/i2s.h b/fw/fe310/eos/soc/i2s.h index f53e183..a5a67df 100644 --- a/fw/fe310/eos/soc/i2s.h +++ b/fw/fe310/eos/soc/i2s.h @@ -13,9 +13,11 @@ typedef void (*eos_i2s_handler_t) (unsigned char); int eos_i2s_init(uint8_t wakeup_cause); void eos_i2s_init_mux(void); -void eos_i2s_start(uint32_t sample_rate, unsigned char fmt); +void eos_i2s_start(uint32_t sample_rate); void eos_i2s_stop(void); int eos_i2s_running(void); +void eos_i2s_set_fmt(unsigned char fmt); +void eos_i2s_set_mode(unsigned char mode); void eos_i2s_mic_init(uint8_t *mic_arr, uint16_t mic_arr_size); void eos_i2s_mic_set_handler(eos_i2s_handler_t wm_handler); void eos_i2s_mic_set_wm(uint16_t wm); @@ -23,8 +25,8 @@ uint16_t eos_i2s_mic_len(void); uint16_t eos_i2s_mic_read(uint8_t *sample, uint16_t ssize); int eos_i2s_mic_pop8(uint8_t *sample); int eos_i2s_mic_pop16(uint16_t *sample); -int eos_i2s_mic_vol_get(void); -void eos_i2s_mic_vol_set(int vol); +int eos_i2s_mic_get_vol(void); +void eos_i2s_mic_set_vol(int vol); void eos_i2s_spk_init(uint8_t *mic_arr, uint16_t mic_arr_size); void eos_i2s_spk_set_handler(eos_i2s_handler_t wm_handler); void eos_i2s_spk_set_wm(uint16_t wm); @@ -32,5 +34,5 @@ uint16_t eos_i2s_spk_len(void); uint16_t eos_i2s_spk_write(uint8_t *sample, uint16_t ssize); int eos_i2s_spk_push8(uint8_t sample); int eos_i2s_spk_push16(uint16_t sample); -int eos_i2s_spk_vol_get(void); -void eos_i2s_spk_vol_set(int vol); +int eos_i2s_spk_get_vol(void); +void eos_i2s_spk_set_vol(int vol); |