Commit Graph

10 Commits

Author SHA1 Message Date
Milind fd1e9cf8f1
1. Changed attenuation from ADC_ATTEN_DB_0 to ADC_ATTEN_DB_11
2. Scaling the 12-bit values received from DMA engine to 16-bit value
2023-04-19 21:46:08 +05:30
Dan Halbert 8996fda049
"an array" -> "array" 2023-02-23 13:55:52 -05:00
Dan Halbert 9058beb573
"a array" to "an array" 2023-02-23 13:41:49 -05:00
Milind 9e73e8351a
Calling stop_dma function while retruning errors from start_dma after configuring dma 2023-02-23 14:47:05 +05:30
Milind 09f84e3513
Changed the code structure to start and stop dma from readinto function as per review comment to support one shot conversion mode for analogbufio
Added check for verifying the buffer type passed to readinto is H
2023-02-23 13:32:48 +05:30
Milind Movasha f1b6deacda
Yet another formatting change related to whitespaces 2023-02-18 14:49:11 +05:30
Milind Movasha b2c6fad713
Additional formatting change related to whitespaces 2023-02-18 14:45:37 +05:30
Milind Movasha 4683e48337
Further formatting changes related to whitespaces 2023-02-18 14:40:12 +05:30
Milind Movasha ead5751803
Pre-commit: Done the formatting changes
Pre-commit: Fixed compilation error for other ESP32C3/ESP32S3/ESP32H2 boards
Review comment: Removed the self->pin NULL check
Review comment: Using raise_ValueError_invalid_pin when adc_index is not ADC_UNIT1 for ESP32
Review comment: Optimized the code to set data in buffer from DMA results
Fix: For ESP32C3 boards continuing collecting samples after channel mismatch as DMA runs in alternating UNIT mode
Fix: For ESP32S3 and ESP32H2 setting conversion mode to type2
2023-02-18 14:26:50 +05:30
Milind Movasha 5635077853
Espressif analogbufio implementation 2023-02-17 19:19:15 +05:30