SAM I2S - Inter-IC Sound Controller.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "i2s_callback.h"
Functions | |
static void | _i2s_interrupt_handler (const uint8_t instance) |
void | I2S_Handler (void) |
Interrupt handler for the I2S module. More... | |
void | i2s_serializer_abort_job (struct i2s_module *const module_inst, const enum i2s_serializer serializer, const enum i2s_job_type job_type) |
Aborts an ongoing job running on serializer. More... | |
enum status_code | i2s_serializer_get_job_status (const struct i2s_module *const module_inst, const enum i2s_serializer serializer, const enum i2s_job_type job_type) |
Gets the status of a job running on serializer. More... | |
enum status_code | i2s_serializer_read_buffer_job (struct i2s_module *const module_inst, const enum i2s_serializer serializer, void *buffer, const uint32_t size) |
Read from the specified Serializer of I2S module to a buffer. More... | |
enum status_code | i2s_serializer_write_buffer_job (struct i2s_module *const module_inst, const enum i2s_serializer serializer, const void *buffer, const uint32_t size) |
Write buffer to the specified Serializer of I2S module. More... | |
Variables | |
struct i2s_module * | _i2s_instances [I2S_INST_NUM] |
|
static |
References i2s_serializer_module::callback, i2s_serializer_module::data_size, i2s_serializer_module::enabled_callback_mask, i2s_module::hw, I2S_DATA_SIZE_16BIT, I2S_DATA_SIZE_16BIT_COMPACT, I2S_DATA_SIZE_18BIT, I2S_DATA_SIZE_20BIT, I2S_DATA_SIZE_24BIT, I2S_DATA_SIZE_32BIT, I2S_SERIALIZER_CALLBACK_BUFFER_DONE, I2S_SERIALIZER_CALLBACK_OVER_UNDER_RUN, i2s_serializer_module::job_buffer, i2s_serializer_module::job_status, i2s_serializer_module::registered_callback_mask, i2s_serializer_module::requested_words, i2s_module::serializer, STATUS_BUSY, STATUS_OK, and i2s_serializer_module::transferred_words.
Referenced by I2S_Handler().
void I2S_Handler | ( | void | ) |
Interrupt handler for the I2S module.
References _i2s_interrupt_handler().
struct i2s_module* _i2s_instances[I2S_INST_NUM] |
Referenced by i2s_init().