|
ChibiOS
20.3.4
|
I2S Driver macros and structures. More...
#include "hal_i2s_lld.h"Go to the source code of this file.
Data Structures | |
| struct | hal_i2s_driver |
| Structure representing an I2S driver. More... | |
| struct | hal_i2s_config |
| Driver configuration structure. More... | |
Macros | |
I2S modes | |
| #define | I2S_MODE_SLAVE 0 |
| #define | I2S_MODE_MASTER 1 |
Macro Functions | |
| #define | i2sIsBufferComplete(i2sp) ((bool)((i2sp)->state == I2S_COMPLETE)) |
| Buffer state. More... | |
| #define | i2sStartExchangeI(i2sp) |
| Starts a I2S data exchange. More... | |
| #define | i2sStopExchangeI(i2sp) |
| Stops the ongoing data exchange. More... | |
| #define | _i2s_isr_half_code(i2sp) |
| Common ISR code, half buffer event. More... | |
| #define | _i2s_isr_full_code(i2sp) |
| Common ISR code. More... | |
Typedefs | |
| typedef struct hal_i2s_driver | I2SDriver |
| Type of a structure representing an I2S driver. More... | |
| typedef struct hal_i2s_config | I2SConfig |
| Type of a structure representing an I2S driver configuration. More... | |
| typedef void(* | i2scallback_t) (I2SDriver *i2sp) |
| I2S notification callback type. More... | |
Enumerations | |
| enum | i2sstate_t { I2S_UNINIT = 0, I2S_STOP = 1, I2S_READY = 2, I2S_ACTIVE = 3, I2S_COMPLETE = 4 } |
| Driver state machine possible states. More... | |
Functions | |
| void | i2sInit (void) |
| I2S Driver initialization. More... | |
| void | i2sObjectInit (I2SDriver *i2sp) |
Initializes the standard part of a I2SDriver structure. More... | |
| void | i2sStart (I2SDriver *i2sp, const I2SConfig *config) |
| Configures and activates the I2S peripheral. More... | |
| void | i2sStop (I2SDriver *i2sp) |
| Deactivates the I2S peripheral. More... | |
| void | i2sStartExchange (I2SDriver *i2sp) |
| Starts a I2S data exchange. More... | |
| void | i2sStopExchange (I2SDriver *i2sp) |
| Stops the ongoing data exchange. More... | |
I2S Driver macros and structures.
Definition in file hal_i2s.h.