@@ -257,7 +257,7 @@ void I2SClass::setInvertedPdm(bool clk){
257
257
_rx_clk_inv = clk;
258
258
}
259
259
260
- bool initSTD (uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch){
260
+ bool I2SClass:: initSTD (uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch){
261
261
// Peripheral manager deinit previous peripheral if pin was used
262
262
if (!perimanSetPinBus (_mclk, ESP32_BUS_TYPE_INIT, NULL )){ return false ; }
263
263
if (!perimanSetPinBus (_bclk, ESP32_BUS_TYPE_INIT, NULL )){ return false ; }
@@ -305,7 +305,7 @@ bool initSTD(uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch){
305
305
return false ;
306
306
}
307
307
308
- bool initTDM (uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch, i2s_tdm_slot_mask_t slot_mask){
308
+ bool I2SClass:: initTDM (uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch, i2s_tdm_slot_mask_t slot_mask){
309
309
// Peripheral manager deinit previous peripheral if pin was used
310
310
if (!perimanSetPinBus (_mclk, ESP32_BUS_TYPE_INIT, NULL )){ return false ; }
311
311
if (!perimanSetPinBus (_bclk, ESP32_BUS_TYPE_INIT, NULL )){ return false ; }
@@ -353,7 +353,7 @@ bool initTDM(uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch, i
353
353
return false ;
354
354
}
355
355
356
- bool initPDMtx (uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch){
356
+ bool I2SClass:: initPDMtx (uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch){
357
357
// Peripheral manager deinit previous peripheral if pin was used
358
358
if (!perimanSetPinBus (_tx_clk, ESP32_BUS_TYPE_INIT, NULL )){ return false ; }
359
359
if (_tx_dout0 >= 0 ) if (!perimanSetPinBus (_tx_dout0, ESP32_BUS_TYPE_INIT, NULL )){ return false ; }
@@ -384,7 +384,7 @@ bool initPDMtx(uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch)
384
384
return false ;
385
385
}
386
386
387
- bool initPDMrx (uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch){
387
+ bool I2SClass:: initPDMrx (uint32_t rate, i2s_data_bit_width_t bits_cfg, i2s_slot_mode_t ch){
388
388
// Peripheral manager deinit previous peripheral if pin was used
389
389
if (!perimanSetPinBus (_rx_clk, ESP32_BUS_TYPE_INIT, NULL )){ return false ; }
390
390
if (_rx_din0 >= 0 ) if (!perimanSetPinBus (_rx_din0, ESP32_BUS_TYPE_INIT, NULL )){ return false ; }
0 commit comments