diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-08-05 03:39:22 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-08-05 03:39:22 +0200 |
commit | cf7c06297d04bade9cd04c056f9ed510e64dd7bd (patch) | |
tree | a3b8cc23574b98e10874b51d33c9fe1bfc012663 /code/fe310/eos/i2s.h | |
parent | 5cd610a07468137066ea4daa5176c3e7045113b0 (diff) |
code -> fw
Diffstat (limited to 'code/fe310/eos/i2s.h')
-rw-r--r-- | code/fe310/eos/i2s.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/code/fe310/eos/i2s.h b/code/fe310/eos/i2s.h deleted file mode 100644 index 744958e..0000000 --- a/code/fe310/eos/i2s.h +++ /dev/null @@ -1,40 +0,0 @@ -#include <stdint.h> - -#define EOS_I2S_FMT_ALAW 0 -#define EOS_I2S_FMT_PCM16 1 - -/* should match i2s_def.h definitions */ -#define EOS_I2S_ETYPE_MIC 1 -#define EOS_I2S_ETYPE_SPK 2 - - -typedef struct EOSABuf { - uint16_t idx_r; - uint16_t idx_w; - uint16_t size; - uint8_t *array; -} EOSABuf; - -typedef void (*eos_i2s_handler_t) (unsigned char); - -void eos_i2s_init(void); -void eos_i2s_start(uint32_t sample_rate, unsigned char fmt); -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_i2s_handler_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_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_handler_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_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); |