A library to interface to the MCP3208 SPI-based ADC from Microchip. This chip provides eight analogue inputs, providing converted 12-bit values via SPI.

Dependents:   Nucleo_MCP3208_Test Nucleo_MCP3208_Ticker_Test BBMv2_eps ref_BBMv2_eps ... more

Embed: (wiki syntax)

« Back to documentation index

mcp3208.h File Reference

mcp3208.h File Reference

Go to the source code of this file.

Data Structures

class  MCP3208
 Class for interfacing to the MCP3208 SPI-based ADC. More...

Enumerations

enum  Polarity
 

Polarity setting for differential inputs.

More...

Detailed Description

Definition in file mcp3208.h.


Enumeration Type Documentation

enum Polarity

Polarity setting for differential inputs.

POL_EVEN_POSITIVE sets channel [0|2|4|6] as the positive side and channel [1|3|5|7] as the negative side. POL_EVEN_NEGATIVE sets the opposite.

Definition at line 17 of file mcp3208.h.