blob: 19285e09f1b47dd5dada0fbe77a2e567e45b7aa7 [file] [log] [blame]
Kevin Zeng62683b62021-03-18 12:22:08 -07001.. _module-pw_analog:
2
3---------
4pw_analog
5---------
6
7.. warning::
8 This module is under construction and may not be ready for use.
9
10pw_analog contains interfaces and utility functions for using the ADC.
11
12Features
13========
14
15pw::analog::AnalogInput
16-----------------------
17The common interface for obtaining ADC samples. This interface represents
18a single analog input or channel. Users will need to supply their own ADC
19driver implementation in order to configure and enable the ADC peripheral.
20Users are responsible for managing multithreaded access to the ADC driver if the
21ADC services multiple channels.
Kevin Zengc24e3322021-05-04 20:20:53 -070022
23pw::analog::MicrovoltInput
24--------------------------
25The common interface for obtaining voltage samples in microvolts. This interface
26represents a single voltage input or channel. Users will need to supply their
27own ADC driver implementation in order to configure and enable the ADC
28peripheral in order to provide the reference voltages and to configure and
29enable the ADC peripheral where needed. Users are responsible for managing
30multithreaded access to the ADC driver if the ADC services multiple channels.
Kevin Zengfb888872021-06-08 10:39:06 -070031
32pw::analog::GmockAnalogInput
33-------------------------------
34gMock of AnalogInput used for testing and mocking out the AnalogInput.
35
36pw::analog::GmockMicrovoltInput
37-------------------------------
38gMock of MicrovoltInput used for testing and mocking out the MicrovoltInput.