@@ -23,26 +23,36 @@ public enum DeviceTypes
23
23
/// GPIO Device type
24
24
/// </summary>
25
25
GPIO = 0 * ValueTypes . DeviceType ,
26
+
26
27
/// <summary>
27
28
/// SPI Device type
28
29
/// </summary>
29
30
SPI = 1 * ValueTypes . DeviceType ,
31
+
30
32
/// <summary>
31
33
/// I2C Device type
32
34
/// </summary>
33
35
I2C = 2 * ValueTypes . DeviceType ,
36
+
34
37
/// <summary>
35
38
/// SERIAL Device type
36
39
/// </summary>
37
40
SERIAL = 3 * ValueTypes . DeviceType ,
41
+
38
42
/// <summary>
39
43
/// PWM Device type
40
44
/// </summary>
41
45
PWM = 4 * ValueTypes . DeviceType ,
46
+
42
47
/// <summary>
43
48
/// ADC Device type
44
49
/// </summary>
45
50
ADC = 5 * ValueTypes . DeviceType ,
51
+
52
+ /// <summary>
53
+ /// I2S Device type
54
+ /// </summary>
55
+ I2S = 6 * ValueTypes . DeviceType ,
46
56
} ;
47
57
48
58
/// <summary>
@@ -305,5 +315,56 @@ public enum DeviceFunction
305
315
/// </summary>
306
316
ADC1_CH19 = DeviceTypes . ADC + ( 1 * ValueTypes . DeviceIndex ) + 19 ,
307
317
318
+ /// <summary>
319
+ /// I2S1 function Master Clock.
320
+ /// Used only in master mode.
321
+ /// </summary>
322
+ I2S1_MCK = DeviceTypes . I2S + ( 1 * ValueTypes . DeviceIndex ) + 0 ,
323
+ /// <summary>
324
+ /// I2S1 function Bit Clock.
325
+ /// Used for general purpose read and write on the I2S bus.
326
+ /// </summary>
327
+ I2S1_BCK = DeviceTypes . I2S + ( 1 * ValueTypes . DeviceIndex ) + 1 ,
328
+ /// <summary>
329
+ /// I2S1 function WS.
330
+ /// Used if your have stereo.
331
+ /// </summary>
332
+ I2S1_WS = DeviceTypes . I2S + ( 1 * ValueTypes . DeviceIndex ) + 2 ,
333
+ /// <summary>
334
+ /// I2S1 function DATA_OUT.
335
+ /// Used for output data typically on a speaker.
336
+ /// </summary>
337
+ I2S1_DATA_OUT = DeviceTypes . I2S + ( 1 * ValueTypes . DeviceIndex ) + 3 ,
338
+ /// <summary>
339
+ /// I2S1 function MDATA_IN.
340
+ /// Used for input data typically from a microphone.
341
+ /// </summary>
342
+ I2S1_MDATA_IN = DeviceTypes . I2S + ( 1 * ValueTypes . DeviceIndex ) + 4 ,
343
+
344
+ /// <summary>
345
+ /// I2S2 function Master Clock.
346
+ /// Used only in master mode.
347
+ /// </summary>
348
+ I2S2_MCK = DeviceTypes . I2S + ( 2 * ValueTypes . DeviceIndex ) + 0 ,
349
+ /// <summary>
350
+ /// I2S2 function Bit Clock.
351
+ /// Used for general purpose read and write on the I2S bus.
352
+ /// </summary>
353
+ I2S2_BCK = DeviceTypes . I2S + ( 2 * ValueTypes . DeviceIndex ) + 1 ,
354
+ /// <summary>
355
+ /// I2S2 function WS.
356
+ /// Used if your have stereo.
357
+ /// </summary>
358
+ I2S2_WS = DeviceTypes . I2S + ( 2 * ValueTypes . DeviceIndex ) + 2 ,
359
+ /// <summary>
360
+ /// I2S2 function DATA_OUT.
361
+ /// Used for output data typically on a speaker.
362
+ /// </summary>
363
+ I2S2_DATA_OUT = DeviceTypes . I2S + ( 2 * ValueTypes . DeviceIndex ) + 3 ,
364
+ /// <summary>
365
+ /// I2S2 function MDATA_IN.
366
+ /// Used for input data typically from a microphone.
367
+ /// </summary>
368
+ I2S2_MDATA_IN = DeviceTypes . I2S + ( 2 * ValueTypes . DeviceIndex ) + 4 ,
308
369
} ;
309
370
}
0 commit comments