diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-12-13 03:35:30 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-12-13 03:35:30 +0100 |
commit | 6c891c9ffb491146e991e7936f6bb8408bcf2a9a (patch) | |
tree | baef7ca657cb829af43f7d0fc7f8bffa07aca644 /code/fe310/eos/i2s.h | |
parent | fe0d3263d058808feb4355ac3aebba7196cb7bcc (diff) |
fixed and verified audio driver
Diffstat (limited to 'code/fe310/eos/i2s.h')
-rw-r--r-- | code/fe310/eos/i2s.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/code/fe310/eos/i2s.h b/code/fe310/eos/i2s.h index af91dd3..83c39b3 100644 --- a/code/fe310/eos/i2s.h +++ b/code/fe310/eos/i2s.h @@ -22,6 +22,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); void eos_i2s_spk_init(uint8_t *mic_arr, uint16_t mic_arr_size); void eos_i2s_spk_set_handler(eos_i2s_fptr_t wm_handler, uint8_t flags); void eos_i2s_spk_set_wm(uint16_t wm); @@ -29,3 +31,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); |