ChibiOS/HAL  7.0.3
hal_i2s.h File Reference

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

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...
 

Detailed Description

I2S Driver macros and structures.

Definition in file hal_i2s.h.