From de0be436946053152e089d55526e0e7f8923140f Mon Sep 17 00:00:00 2001 From: odaki Date: Sat, 25 Apr 2020 23:08:06 +0900 Subject: [PATCH] Comments modified to match actual behavior --- Grbl_Esp32/i2s_ioexpander.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Grbl_Esp32/i2s_ioexpander.h b/Grbl_Esp32/i2s_ioexpander.h index acf9fc23..017180aa 100644 --- a/Grbl_Esp32/i2s_ioexpander.h +++ b/Grbl_Esp32/i2s_ioexpander.h @@ -87,13 +87,15 @@ typedef void (*i2s_ioexpander_pulse_phase_func_t)(void); typedef struct { /* - I2S bitstream (32-bits): Transfers from LSB(bit0) to MSB(bit31) in sequence - LEFT Channel Right Channel LEFT Channel - ws ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~________________________________~~~~... - bck _~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~... - data vutsrqponmlkjihgfedcba9876543210vutsrqponmlkjihgfedcba9876543210____... - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - ^ + I2S bitstream (32-bits): Transfers from MSB(bit31) to LSB(bit0) in sequence + + ------------------time line------------------------> + Right Channel LEFT Channel + ws ________________________________~~~~... + bck _~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~... + data vutsrqponmlkjihgfedcba9876543210vuts... + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + ^ Latches the X bits when ws is switched to High bit0:Extended GPIO 128, 1: Extended GPIO 129, ..., v: Extended GPIO 159