KETCube
|
This file contains definitions for the ketCube I2S driver. More...
Go to the source code of this file.
Macros | |
#define | KETCUBE_I2S_NAME "i2s_drv" |
I2S driver name. More... | |
#define | KETCUBE_I2S_HANDLE SPI2 |
#define | KETCUBE_I2S_SAMPLE_RATE I2S_AUDIOFREQ_32K |
Available: 8,11,16,22,32,44,48 kHz. More... | |
#define | KETCUBE_I2S_CLK_ENABLE() __SPI2_CLK_ENABLE() |
#define | KETCUBE_I2S_FORCE_RESET() __SPI2_FORCE_RESET() |
#define | KETCUBE_I2S_RELEASE_RESET() __SPI2_RELEASE_RESET() |
#define | KETCUBE_I2S_WS_CK_SD_GPIO_CLK_ENABLE() __GPIOB_CLK_ENABLE() |
#define | KETCUBE_I2S_WS_CK_SD_AF GPIO_AF0_SPI2 |
#define | KETCUBE_I2S_WS_CK_SD_GPIO_PORT GPIOB |
#define | KETCUBE_I2S_WS_PIN GPIO_PIN_12 |
#define | KETCUBE_I2S_CK_PIN GPIO_PIN_13 |
#define | KETCUBE_I2S_SD_PIN GPIO_PIN_15 |
#define | KETCUBE_I2S_EV_IRQn SPI2_IRQn |
Functions | |
ketCube_cfg_ModError_t | ketCube_I2S_Init (void) |
ketCube_cfg_ModError_t | ketCube_I2S_UnInit (void) |
This file contains definitions for the ketCube I2S driver.
Developed by: The SmartCampus Team Department of Technologies and Measurement www.smartcampus.cz | www.zcu.cz
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.