MCPcopy Create free account
hub / github.com/SmingHub/Sming / i2sCallback

Function i2sCallback

samples/Basic_Audio/app/application.cpp:152–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void IRAM_ATTR i2sCallback(void*, i2s_event_type_t event)
153{
154 // For this sample, process the data in task context
155 switch(event) {
156 case I2S_EVENT_TX_DONE:
157 System.queueCallback(fillBuffers);
158 callbackLatency.start();
159 break;
160 case I2S_EVENT_RX_DONE:
161 System.queueCallback(checkReceive);
162 break;
163 default:; // ignore
164 }
165}
166
167void initialiseI2S()
168{

Callers

nothing calls this directly

Calls 2

queueCallbackMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected