summaryrefslogtreecommitdiff
path: root/code/fe310/eos/i2s.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/fe310/eos/i2s.h')
-rw-r--r--code/fe310/eos/i2s.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/code/fe310/eos/i2s.h b/code/fe310/eos/i2s.h
index 4d65033..b9f2e02 100644
--- a/code/fe310/eos/i2s.h
+++ b/code/fe310/eos/i2s.h
@@ -7,17 +7,19 @@ typedef struct EOSABuf {
uint8_t *array;
} EOSABuf;
+typedef void (*eos_i2s_fptr_t) (unsigned char);
+
void eos_i2s_init(uint32_t sample_rate);
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_handler(eos_i2s_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_handler(eos_i2s_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);