diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-03-27 04:37:16 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-03-27 04:37:16 +0200 |
commit | 45ffefd8a79598900ea288c726a29aa145d46bb2 (patch) | |
tree | 7af167320d576dfb37a57017f1487fa310183712 /code/fe310/eos/i2s.h | |
parent | 9ed7686b336eed7672d91ec4b2180e5d48a3fe80 (diff) |
fixed wm param for spi; added cond compile for spi handlers in asm; refactored i2s
Diffstat (limited to 'code/fe310/eos/i2s.h')
-rw-r--r-- | code/fe310/eos/i2s.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/code/fe310/eos/i2s.h b/code/fe310/eos/i2s.h index 7b267ec..4d65033 100644 --- a/code/fe310/eos/i2s.h +++ b/code/fe310/eos/i2s.h @@ -8,13 +8,17 @@ typedef struct EOSABuf { } EOSABuf; void eos_i2s_init(uint32_t sample_rate); -void eos_i2s_init_mic(uint8_t *mic_arr, uint16_t mic_arr_size, eos_evt_fptr_t mic_wm_handler, uint16_t mic_wm); -void eos_i2s_init_spk(uint8_t *spk_arr, uint16_t spk_arr_size, eos_evt_fptr_t spk_wm_handler, uint16_t spk_wm); void eos_i2s_start(void); void eos_i2s_stop(void); +void eos_i2s_mic_init(uint8_t *mic_arr, uint16_t mic_arr_size); +void eos_i2s_mic_set_handler(eos_evt_fptr_t wm_handler); +void eos_i2s_mic_set_wm(uint16_t wm); uint16_t eos_i2s_mic_len(void); uint16_t eos_i2s_mic_read(uint8_t *sample, uint16_t ssize); int eos_i2s_mic_pop(uint8_t *sample); +void eos_i2s_spk_init(uint8_t *mic_arr, uint16_t mic_arr_size); +void eos_i2s_spk_set_handler(eos_evt_fptr_t wm_handler); +void eos_i2s_spk_set_wm(uint16_t wm); uint16_t eos_i2s_spk_len(void); uint16_t eos_i2s_spk_write(uint8_t *sample, uint16_t ssize); int eos_i2s_spk_push(uint8_t sample); |