Struct adc_mcp3008::Mcp3004 [] [src]

pub struct Mcp3004<SPI, CS> { /* fields omitted */ }

MCP3004 driver

Methods

impl<SPI, CS, E> Mcp3004<SPI, CS> where
    SPI: Transfer<u8, Error = E>,
    CS: OutputPin
[src]

[src]

Creates a new driver from an SPI peripheral and a chip select digital I/O pin.

[src]

Read a MCP3004 ADC channel and return the 10 bit value as a u16